Browse Source

[sfml] Update sample instructions

Mario Zechner 1 year ago
parent
commit
072d5f1539
2 changed files with 10 additions and 20 deletions
  1. 5 5
      spine-sfml/c/README.md
  2. 5 15
      spine-sfml/cpp/README.md

+ 5 - 5
spine-sfml/c/README.md

@@ -33,10 +33,10 @@ The Spine SFML example works on Windows, Linux and Mac OS X.
 
 ### Windows
 
-1. Install [Visual Studio 2022 Community](https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx). Make sure you install support for C++, CMake, as well as th Windows SDK for XP/7/8.
-2. 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.
-
-The entire example code is contained in [main.cpp](example/main.cpp#L61)
+1. Install [Visual Studio 2022 Community](https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx). Make sure you install support for C++, CMake as well as th Windows SDK for XP/7/8.
+1. Open Visual Studio and open the `spine-sfml/c` folder via the `Open a local folder` button
+1. Let CMake finish, then select `spine-sfml-cpp-example.exe` as the start-up project
+1. Start debugging to run the example
 
 ### Linux
 
@@ -46,7 +46,7 @@ The entire example code is contained in [main.cpp](example/main.cpp#L61)
 4. Open a terminal, and `cd` into the `spine-runtimes/spine-sfml/c` folder
 5. Type `mkdir build && cd build && cmake ..` to generate Make files
 6. Type `make -j8` to compile the example
-7. Run the example by `./spine-sfml-c-example`
+7. Run the example via `./spine-sfml-c-example`
 
 ### Mac OS X
 

+ 5 - 15
spine-sfml/cpp/README.md

@@ -33,20 +33,10 @@ The Spine SFML example works on Windows, Linux and Mac OS X.
 
 ### Windows
 
-1. Install [Visual Studio 2022 Community](https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx). Make sure you install support for C++ as well as th Windows SDK for XP/7/8.
-2. Install CMake via the [Windows installer package](https://cmake.org/download/).
-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. Run CMake GUI from the start menu
-5. Click `Browse Source` and select the directory `spine-runtimes`
-6. Click `Browse Build` and select the `spine-runtimes/spine-sfml/build` directory. You can create the `build` folder directly in the file dialog via `New Folder`.
-7. Click `Configure`. Check `SPINE_SFML`. Then click `Generate`. This will create a Visual Studio 2015 solution file called `spine.sln` in `spine-runtimes/spine-sfml/build` and also download the SFML dependencies.
-8. Open the `spine.sln` file in Visual Studio 2022
-9. Right click the `spine-sfml-cpp-example` project in the solution explorer and select `Set as Startup Project` from the context menu
-10. Right click the `spine-sfml-cpp-example` project in the solution explorer and select `Properties` from the context menu
-11. Select `Debugging` in the left-hand list, then set `Working Directory` to `$(OutputPath)`
-12. Click `Local Windows Debugger` to run the example
-
-The entire example code is contained in [main.cpp](example/main.cpp)
+1. Install [Visual Studio 2022 Community](https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx). Make sure you install support for C++, CMake as well as th Windows SDK for XP/7/8.
+1. Open Visual Studio and open the `spine-sfml/cpp` folder via the `Open a local folder` button
+1. Let CMake finish, then select `spine-sfml-cpp-example.exe` as the start-up project
+1. Start debugging to run the example
 
 ### Linux
 
@@ -56,7 +46,7 @@ The entire example code is contained in [main.cpp](example/main.cpp)
 4. Open a terminal, and `cd` into the `spine-runtimes/spine-sfml/cpp` folder
 5. Type `mkdir build && cd build && cmake ../..` to generate Make files
 6. Type `make` to compile the example
-7. Run the example by `cd spine-sfml && ./spine-sfml-example`
+7. Run the example via `./spine-sfml-cpp-example`
 
 ### Mac OS X