Difference between revisions of "Development on Windows"

From GIMX
Jump to: navigation, search
(Marked this version for translation)

(3 intermediate revisions by the same user not shown)

Line 12: Line 12:
  
 
<!--T:29-->
 
<!--T:29-->
If you are running a 32-bit Windows, install the i686 of Msys2.<br />
+
If you are running a 32-bit Windows, install the i686 version.<br />
If you are running a 64-bit Windows, you can choose either the x86_64 version or the i686 version.<br />
+
If you are running a 64-bit Windows, install the x84_64 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== <!--T:33-->
 
==Checkout installation and build tools== <!--T:33-->
Line 25: Line 24:
  
 
<!--T:31-->
 
<!--T:31-->
Run mingwXY_shell.bat (XY=32 or 64) and type:
+
Run mingwXY.exe (XY=32 or 64) and type:
  
 
  <!--T:32-->
 
  <!--T:32-->
Line 39: Line 38:
  
 
<!--T:16-->
 
<!--T:16-->
Run mingwXY_shell.bat (XY=32 or 64) and type:  
+
Run mingwXY.exe (XY=32 or 64) and type:  
  
 
  <!--T:17-->
 
  <!--T:17-->
cd GIMX-build
+
cd GIMX-build/windows
 
  ./build.sh
 
  ./build.sh
  

Revision as of 20:58, 11 April 2018

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 version.
If you are running a 64-bit Windows, install the x84_64 version.

Checkout installation and build tools

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

Development tools

Run mingwXY.exe (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.exe (XY=32 or 64) and type:

cd GIMX-build/windows
./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.