Development on Windows

From GIMX
Jump to: navigation, search
Other languages:
English • ‎français

This wiki explains how to install a compilation environment (based on Msys2/mingw64) to build GIMX.
It also explains how to install Eclipse CDT and perform a checkout.
Unless otherwise specified, perform a default installation (default directories, etc).

Msys2/MinGW64

Download and install Msys2.
Make sure to follow the instructions from the Msys2 wiki.

If you are running a 32-bit Windows, install the i686 of Msys2.
If you are running a 64-bit Windows, you can choose either the x86_64 version or the i686 version.
The binaries produced by the x86_64 version can only run on a 64-bit Windows, whereas the binaries produced by the i686 version can run on a 32-bit or a 64-bit Windows.

Checkout installation and build tools

pacman --noconfirm -S git
git clone https://github.com/matlo/GIMX-build.git

Development tools

Run mingwXY_shell.bat (XY=32 or 64) and type:

cd GIMX-build/windows
./install.sh

Inno setup

Download and install Inno setup.

Automated command-line build

Run mingwXY_shell.bat (XY=32 or 64) and type:

cd GIMX-build
./build.sh

All binaries are copied into <path to msys>\home\<username>\GIMX\setup, e.g. C:\msys32\home\matlo\GIMX\setup.
A setup file is also created.

Eclipse IDE

This part is only useful in case you intend to modify the source code. If you only want to build GIMX, you can skip it.
Eclipse is an IDE that can be stacked onto the MinGW/MSYS compilation toolchain.
Be sure to have a java JRE installed on your system.
Download Eclipse IDE for C/C++ Developers. Unzip it to wherever you want.
Run eclipse.exe.

Project checkout

Todo: add instructions.