Difference between revisions of "Development on Windows/en"

From GIMX
Jump to: navigation, search
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 1: Line 1:
 
<languages />
 
<languages />
This wiki explains how to install a compilation environment (based on MinGW) to build GIMX.<br />
+
This wiki explains how to install a compilation environment (based on Msys2/mingw64) to build GIMX.<br />
 
It also explains how to install Eclipse CDT and perform a checkout.<br />
 
It also explains how to install Eclipse CDT and perform a checkout.<br />
 
Unless otherwise specified, perform a default installation (default directories, etc).
 
Unless otherwise specified, perform a default installation (default directories, etc).
  
==Git==
+
==Msys2/MinGW64==
  
[http://msysgit.googlecode.com/files/Git-1.8.4-preview20130916.exe Download] and install Git.
+
Download and install [http://sourceforge.net/p/msys2/wiki/MSYS2%20installation/ Msys2].
 +
Make sure to follow the instructions from the Msys2 wiki.
  
==MinGW/MSYS==
+
If you are running a 32-bit Windows, install the "32-bit" of Msys2.<br />
 +
If you are running a 64-bit Windows, you can choose either the "64-bit" version or the "32-bit" version.
  
This part explains how to install the compilation toolchain.<br />
+
==Development tools==
Download and run [http://diyps3controller.googlecode.com/files/mingw-get-inst-20120426.exe Mingw 20120426].<br />
 
The only thing to configure during the installation process: in the "Select Components" panel, select "C++ Compiler" and "MSYS Basic System".
 
  
<div class="image200px">[http://www.gimx.fr/img/wiki/MinGW.jpg http://www.gimx.fr/img/wiki/MinGW.jpg]</div>
+
Run the Msys2 shell and type:
  
Append ";C:\MinGW\bin;C:\MinGW\msys\1.0\bin" (without quotes, don't forget the first semicolon) to your system PATH (Control Panel > System > Advanced > Environment Variables > System variables > Path > Edit).
+
pacman --noconfirm -S wget
 
+
wget <nowiki>https://raw.githubusercontent.com/matlo/GIMX-build/master/win/install.sh</nowiki>
<div class="image200px">[http://www.gimx.fr/img/wiki/System.jpg http://www.gimx.fr/img/wiki/System.jpg]</div>
+
./install.sh
 
 
<div class="image200px">[http://www.gimx.fr/img/wiki/SystemProperties.jpg http://www.gimx.fr/img/wiki/SystemProperties.jpg]</div>
 
 
 
<div class="image200px">[http://www.gimx.fr/img/wiki/EnvVar.jpg http://www.gimx.fr/img/wiki/EnvVar.jpg]</div>
 
 
 
<div class="image200px">[http://www.gimx.fr/img/wiki/Path.jpg http://www.gimx.fr/img/wiki/Path.jpg]</div>
 
 
 
==Libraries==
 
 
 
This part explains how to install the required libraries (libiconv, SDL, wxWidgets, libxml, zlib).<br />
 
Run C:\MinGW\msys\1.0\msys.bat<br />
 
Install wget:
 
 
 
    mingw-get install msys-wget
 
 
 
Download and run the install.sh script:
 
 
 
    wget <nowiki>https://raw.github.com/matlo/GIMX-build/master/win/install.sh</nowiki>
 
    ./install.sh
 
  
 
==Automated command-line build==
 
==Automated command-line build==
  
This part explains how to checkout and build GIMX from the command-line.<br />
+
Run the Msys2 shell and type:
Run C:\MinGW\msys\1.0\msys.bat<br />
 
Download and run the build.sh script:
 
  
 
     wget <nowiki>https://raw.github.com/matlo/GIMX-build/master/win/build.sh</nowiki>
 
     wget <nowiki>https://raw.github.com/matlo/GIMX-build/master/win/build.sh</nowiki>

Revision as of 10:40, 10 June 2014

Other languages:

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 "32-bit" of Msys2.
If you are running a 64-bit Windows, you can choose either the "64-bit" version or the "32-bit" version.

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 C:\MinGW\msys\1.0\home\username\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.