- 8 GB RAM (4 GB could work, but at least 8 GB are recommended)
- 250 MB disk space + space for all dependencies.
- An internet connection for every build.
- Optional: A gradle 7.0 installation (Download), then
you can replace all
./gradlew
commands bygradle
.
- You need Debian sid as this is the only version with the package
openjdk-16-jdk
. (Alternatively, you can add-Pconquer.localJVM=true
to the gradle commandline arguments.) - These packages are required, too: git, libarchive-dev, libcurl4-openssl-dev, bash, musescore3 (Alternatively you can
add
-Pconquer.download=true
to the commandline arguments), libgtk-3-dev, pkg-config, valac, libgee-0.8-dev, libjson-glib-dev, make JAVA_HOME
has to be set.
Just type:
./gradlew assemble
This will need around 2-3 minutes, (Further builds are faster) and will build these .deb files in debs
:
debs/conquer.deb
debs/conquer-engine.deb
debs/conquer-gui.deb
debs/conquer-default.deb
debs/conquer-sdk.deb
debs/conquer-default-scenarios.deb
debs/conquer-default-music.deb
sudo apt install -y openjdk-16-jdk libarchive-dev git libcurl4-openssl-dev bash musescore3 pkg-config libgtk-3-dev valac libgee-0.8-dev libjson-glib-dev make wget
git clone https://github.com/JCWasmx86/Conquer
cd Conquer
#Add -Pconquer.download=true to improve the build time (or if you don't have enough RAM)
#Add -Pconquer.localJVM=true to download Java 16, in case you don't want to install it.
./gradlew assemble
Only arm64, arm (Although a bit untested), i386 and amd64 are supported.
- MSYS2
- Use the MINGW64 shell and install these packages: git base-devel mingw-w64-x86_64-libarchive mingw-w64-x86_64-curl mingw-w64-x86_64-gcc mingw-w64-x86_64-dlfcn mingw-w64-x86_64-vala mingw-w64-x86_64-headers-git zip unzip mingw-w64-x86_64-gtk3 mingw-w64-x86_64-libgee mingw-w64-x86_64-json-glib mingw-w64-i686-nsis mingw-w64-x86_64-pkg-config
- Install musescore3: You have to download the installer and run it. (Alternatively, you can
add
-Pconquer.download=true
to the gradle commandline arguments.) - Install Java 16: For example AdoptOpenJDK. You must have JAVA_HOME defined and accessible from the MSYS Shell. (
Alternatively you can add
-Pconquer.download=true
to the commandline arguments)
Just type:
./gradlew.bat assemble
This will need around 6-10 minutes, and will build Launcher/Installer.exe
.
pacman -S --noconfirm git base-devel mingw-w64-x86_64-libarchive mingw-w64-x86_64-curl mingw-w64-x86_64-gcc mingw-w64-x86_64-dlfcn mingw-w64-x86_64-headers-git zip unzip
pacman -S --noconfirm mingw-w64-x86_64-wget mingw-w64-x86_64-json-glib mingw-w64-x86_64-libgee mingw-w64-x86_64-gtk3 mingw-w64-i686-nsis mingw-w64-x86_64-vala mingw-w64-x86_64-pkg-config
git clone https://github.com/JCWasmx86/Conquer
cd Conquer
#Add -Pconquer.download=true to improve the build time (or if you don't have enough RAM)
#Add -Pconquer.localJVM=true to download Java 16, in case you don't want to install it.
./gradlew.bat assemble
Only amd64 is supported. i386 support is available, but it seems to crash.
Not supported (Contributions are welcome)
Semi-supported with a bit of manual work. (Contributions are welcome)
Use:
./gradlew idea
#Then either import the gradle project via the GUI or run, if you have idea on your path
idea conquer-parent.ipr
If you prefer using eclipse, then you have to import Conquer as a gradle project!
This means you don't have enough RAM available. Try closing programs that use too much (E.g. MS Teams, Skype, Chrome,...)
Try again. Sometimes the conversion fails, but that's quite rare.
Set QT_QPA_PLATFORM
to offscreen
(export QT_QPA_PLATFORM=offscreen
), otherwise Qt will look for a running X
server.
The build system is currently quite unstable. Because of this, it is possible, that Conquer_frontend_resources.jar
will be packaged before the music is copied. A bugfix would be appreciated. The workaround would be to build again.