To launch the project on a Linux OS you must have Conan installed on your machine as well as the conan settings configured for you machine. Of course the Packages mentionned in the conanfile.txt have to be installed.
- Go to the project root and create a
build
directory :mkdir build
- Then go in that folder :
cd build
- Launch the Conan build command :
conan install .. --build=missing
- Then launch the CMake building command :
cmake .. -G "Unix Makefiles"
- Finally build the project :
cmake --build .
- After that you will find the
r-type-client
andr-type-server
To launch the project on a Windows 10 OS you must have the following tools installed : (check links in the doc section of the README)
- Visual Studio 16 2019 (version used: 16.8.1)
- Conan Package Manager (version used: 1.31.2)
Conan will install for you the following packages (refer to conafile.txt in root)
- Boost (1.69)
- SFML (2.5.1)
- ZLib (1.2.11)
- BZip2 (1.0.6)
Before compiling and launching the project you might want to take a look at the CMakeList.txt file :
25 # WINDOWS USERNAME AND PATH VARIABLE TO BE SET
26 set(USERS "R-TYPE-USER")
27 set(SFML_WIN_INCLUDE_DIR "PATH/TO/SFML/INCLUDE")
28 set(SFML_WIN_DIR "PATH/TO/SFML/FOLDER")
29 set(CONAN_SFML_DIR "PATH/TO/SFML/CONAN")
Take a look at these paths and adjust them according to your environnement Then everything should be ready for you to launch this project !
- First of all you might want to install all packages required by launching the following commad :
conan install .. --build=missing
- After that create a build folder and get into it :
mkdir build && cd build
- Then launch the CMake build :
cmake .. -G "Visual Studio 16 2019"
- Finally, build the solution file with that command :
cmake --build . --config Release
- After that you will find the
r-type-client.exe
andr-type-server.exe
in thebin
folder.
- Conan Windows Install : https://docs.conan.io/en/latest/installation.html
- Windows SFML install : https://www.sfml-dev.org/download/sfml/2.5.1/index-fr.php
- Windows Visual Studio C++ install : https://docs.microsoft.com/fr-fr/cpp/build/vscpp-step-0-installation?view=msvc-160