Update README.md

This commit is contained in:
Mario Zechner 2017-10-06 15:26:07 +02:00 committed by GitHub
parent 3dbab2122d
commit d61782201f

View File

@ -44,13 +44,13 @@ The Spine SFML example works on Windows, Linux and Mac OS X.
The entire example code is contained in [main.cpp](example/main.cpp#L61) The entire example code is contained in [main.cpp](example/main.cpp#L61)
### Linux ### Linux
1. Install the SFML dependencies, e.g. on Ubuntu/Debian via `sudo apt-get install -y libpthread-stubs0-dev libgl1-mesa-dev libx11-dev libxrandr-dev libfreetype6-dev libglew1.5-dev libjpeg8-dev libsndfile1-dev libopenal-dev libudev-dev libxcb-image0-dev libjpeg-dev libflac-dev` 1. Install the SFML dependencies, e.g. on Ubuntu/Debian via `sudo apt install libsfml-dev`
2. Install CMake, e.g. on Ubuntu/Debian via `sudo apt-get install -y cmake` 2. Install CMake, e.g. on Ubuntu/Debian via `sudo apt-get install -y cmake`
3. Download the Spine Runtimes repository using git (`git clone https://github.com/esotericsoftware/spine-runtimes`) or download it as a zip via the download button above. 3. Download the Spine Runtimes repository using git (`git clone https://github.com/esotericsoftware/spine-runtimes`) or download it as a zip via the download button above.
4. Open a terminal, and `cd` into the `spine-runtimes/spine-sfml` folder 4. Open a terminal, and `cd` into the `spine-runtimes/spine-sfml` folder
5. Type `mkdir build && cd build && cmake ../..` to generate Make files 5. Type `mkdir build && cd build && cmake ../..` to generate Make files
6. Type `make` to compile the example 6. Type `make` to compile the example
7. Run the example by `cd spine-sfml-example && ./spine-sfml-example` 7. Run the example by `cd spine-sfml && ./spine-sfml-example`
### Mac OS X ### Mac OS X
1. Install [Xcode](https://developer.apple.com/xcode/) 1. Install [Xcode](https://developer.apple.com/xcode/)