Installation
Note
We currently do not offer any binaries. Instead, the source code has to be compiled manually. We are working on simplifying the installation of the framework.
Windows
Using command-line:
First lets clone the repository and change the directory to Stratega.
git clone https://github.com/GAIGResearch/Stratega.git cd StrategaIf you want to check the last updated (not stable) branch checkout dev.
git checkout dev
Lets configure cmake by running the following code.
cmake . -B out
Finally change the directory to the output and build the project with
cd out cmake --build .
Using Visual Studio 2019:
Stratega is compiled using CMake. Luckily Visual Studio already provides a simple way to do this.
Install Visual Studio 2019 Community from here
Clone Stratega from here (use the master/dev branch)
In Visual Studio open the folder (not project) containing the Stratega source code
Execute Project->Generate Cache, Visual Studio may automatically do this when opening the folder
Execute Build->Build All to generate the executables
Under Select Startup Item… choose GUI.exe and press F5 to run it
Mac OS
First lets clone the repository and change the directory to Stratega.
git clone https://github.com/GAIGResearch/Stratega.git cd StrategaIf you want to check the last updated (not stable) branch checkout dev.
git checkout dev
Go to the main CMakeLists.txt in the root folder, comment like 2 and uncomment lines 5,6,7
#project(Stratega LANGUAGES C CXX) #Uncomment if building for Apple project(Stratega LANGUAGES C CXX OBJCXX OBJC) enable_language(OBJC) enable_language(OBJCXX)
In the same CMakeLists.txt change option BUILD_SHARED_LIBS (Line 38) to ON
# options option(BUILD_SHARED_LIBS "Enable compilation of shared libraries" ON)
Lets configure cmake by running the following code.
cmake . -B out -DCMAKE_BUILD_TYPE=ReleaseFinally change the directory to the output and build the project with
cd out makeAfter the generation you will need to copy all the dlls(dylib files in mac) from the output folder /_deps/sfml-build/lib to /usr/local/lib folder
Copy the content of /_deps/sfml-build/include to /usr/local/include.
Copy the framework files from your output folder/_deps/sfml-src/extlibs/libs-osx/Frameworks to /Library/Frameworks (need root access)
Now you can execute the gui/arena
If you have a Mac with the new M1 arm architecture there is two steps that you will need to do additionaly before configure the cmake:
Go to cmake/targets/settings/conan.cmake, open the file and uncomment line 18 (ARCH armv8)
Go to the main CMakeLists.txt in the root folder and switch on the option SGA_BUILD_SFML_FROM_SOURCE (The new SFML 2.6.x version allows the M1 compilation).
Linux
Note
Coming Soon
Compiling with documentation (Advanced)
Stratega generates documentation using Doxygen (and some other related dependencies). By default, the generation of documentation is disabled (see CMakeLists.txt, STRATEGA_BUILD_DOCS set to OFF).
If you wish to generate documentation, you must:
Install Doxygen manually.
If, despite installing Doxygen, the Generate Cache process still gives any error, follow these complete installation instructions for potentially missing dependencies.
Finally, set ENABLE_BUILD_DOCS to ON compile the framework starting from the Project->Generate Cache step.