-
Notifications
You must be signed in to change notification settings - Fork 31
Build Infrastructure
Robosturm edited this page Mar 1, 2020
·
24 revisions
- CMake at least version 3.1.0
- Download Qt 5.14.1 (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.14.1 from Qt
-
- Select MingW 7.3.0 32 bit or higher
-
- minimum setup for Commander Wars see picutre below
- Restart the PC after installing CMake and Qt.
- Select CMake in the Kits-Menu reachable via the Extras -> Settings in Qt-Creator
- You may need to add CMake to your Kit
- Open the CMake-File of Commander Wars using Open -> File or Project
- Next select as Kit Qt 5.14.1 MingW 7.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 has 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 executable 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
- For Debugging and Programming with Qt-Creator -> Please check out the Qt-Wiki\Documentation pages. Qt has a very good documentation covering nearly everything required to work with Qt and\or Qt-Creator
Commander Wars should be buildable for Mac OS, Android and Linux, since Qt and Oxygine 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. :)