Difference between revisions of "Development on Windows"

From GIMX
Jump to: navigation, search
Line 8: Line 8:
  
 
<!--T:28-->
 
<!--T:28-->
Download and install [http://sourceforge.net/p/msys2/wiki/MSYS2%20installation/ Msys2].
+
Download and install [https://msys2.github.io/ Msys2].<br />
 
Make sure to follow the instructions from the Msys2 wiki.
 
Make sure to follow the instructions from the Msys2 wiki.
  
 
<!--T:29-->
 
<!--T:29-->
If you are running a 32-bit Windows, install the "32-bit" of Msys2.<br />
+
If you are running a 32-bit Windows, install the i686 of Msys2.<br />
If you are running a 64-bit Windows, you can choose either the "64-bit" version or the "32-bit" version.
+
If you are running a 64-bit Windows, you can choose either the x86_64 version or the i686 version.<br />
 +
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.
  
 
==Development tools== <!--T:30-->
 
==Development tools== <!--T:30-->

Revision as of 14:54, 30 June 2014

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.

Development tools

Run the Msys2 shell and type:

pacman --noconfirm -S wget
wget https://raw.githubusercontent.com/matlo/GIMX-build/master/win/install.sh
./install.sh

Automated command-line build

Run the Msys2 shell and type:

   wget https://raw.github.com/matlo/GIMX-build/master/win/build.sh
   ./build.sh

All binaries are copied into <path to msys>\home\<username>\GIMX\setup, e.g. C:\msys2\msys32\home\matlo\GIMX\setup.

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.