-
Notifications
You must be signed in to change notification settings - Fork 31
Build Infrastructure
Robosturm edited this page Dec 14, 2022
·
24 revisions
- CMake at least version 3.1.0
- Download Qt normally latest Version (with mingw32 or mingw64 or msvc) and Qt-Creator
- Open the CmakeLists-Project with Qt-Creator.
- Select the 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
Disclaimer: The Screenshots are taken from an older version of CoW. So please use the information given in the texts. For Version and Tools.
- Download and Install from Qt
-
- Select the latest MingW version 32bit or 64bit or higher or msvc
-
- Select CMake in the Tools
-
- minimum setup for Commander Wars see picutre below
-
- you'll need to select the multimedia plugin as well, since Beta 20
- 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 Mingw + Version number. 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. :)