-
Notifications
You must be signed in to change notification settings - Fork 31
Build Infrastructure
Robosturm edited this page Jul 20, 2019
·
24 revisions
- CMake at leasst version 3.1.0
- Download Qt 5.12.3 (with mingw32) and Qt-Creator
- (Optional) Build SDL2 in the 3rd-Party-Project according to the Oxygine Readme Cmake documentation. Copy the compiled libs to the libs-folder -> not required for windows build normally since i did it before hand.
- Open the CmakeLists-Project with Qt-Creator.
- Select Mingw32 as compiler-toolchain.
- (Optional) Change the Install-Folder in the build settings
- add a build step which builds the target Commander_Wars_translations to auto generate the translation files
- build the project
- Download and Install CMake from CMake
- Download and Install Qt 5.12.3 from Qt
-
- Select MingW 7.3.0 32 bit
-
- minimum setp for Commander Wars see picutre below
- Select CMake in the Kits-Menu reachable via the Extras -> Settings in Qt-Creator
- You may need to add CMake to your Git
- Open the CMake-File of Commander Wars using Open -> File or Project
- Next select as Kit Qt 5.12.3 MingW 5.3.0 32Bit. Select the Builds you want and where Qt should build Commander Wars Afterwars press Configure Project
- Go to the Project Setup in Qt ** Change the Install Path to whereever you want and where a Compiler as write access -> not a windows path ** Add another Build Step and select Commander_Wars_translations as target ** The second Build Step must be install
- Build\Compile Commander Wars by using the Build-Button
- Go back to the Project View
-
- Select Execute
-
- Add a custom executabe as target configuration
-
- Select the created Commander_Wars.exe from the previous step. It should be located in the install directory under your selected build type e.g. "Debug" or "Release
-
- Select the execution folder which is the folder where Commander Wars has been installed
-
- Press Debug Commander Wars
Commander Wars should be buildable for Mac OS, Android and Linux, since Qt, Oxygine and SDL2 support those operating systems. The only thing you need to do modify the CmakeLists-File for those operating systems. Since i don't own a PC with those operating systems i won't do anything for this. However feel free to send me the changes required in the cmake-files. So others can build Commander Wars for other Operating Systems.
E-Mail-Contact: [email protected] ask for help here. :)