Difference between revisions of "Development on Windows"

From GIMX
Jump to: navigation, search
Line 1: Line 1:
 
<languages />
 
<languages />
 
<translate><!--T:1-->
 
<translate><!--T:1-->
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== <!--T:25-->
+
==Msys2/MinGW64== <!--T:2-->
  
<!--T:26-->
+
Download and install [http://sourceforge.net/p/msys2/wiki/MSYS2%20installation/ Msys2].
[http://msysgit.googlecode.com/files/Git-1.8.4-preview20130916.exe Download] and install Git.
+
Make sure to follow the instructions from the Msys2 wiki.
  
During the installation, the only thing to change is shown in the following screenshot:
+
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.
  
<div class="image200px">[http://www.gimx.fr/img/wiki/GitPath.png http://www.gimx.fr/img/wiki/GitPath.png]</div>
+
==Development tools==
  
==MinGW/MSYS== <!--T:2-->
+
Run the Msys2 shell and type:
  
<!--T:3-->
+
pacman --noconfirm -S man wget git make diffutils patch p7zip unzip
This part explains how to install the compilation toolchain.<br />
 
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".
 
  
<!--T:4-->
+
==Libraries== <!--T:10-->
<div class="image200px">[http://www.gimx.fr/img/wiki/MinGW.jpg http://www.gimx.fr/img/wiki/MinGW.jpg]</div>
 
 
 
<!--T:5-->
 
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).
 
 
 
<!--T:6-->
 
<div class="image200px">[http://www.gimx.fr/img/wiki/System.jpg http://www.gimx.fr/img/wiki/System.jpg]</div>
 
  
<!--T:7-->
+
Run the Msys2 shell and type:
<div class="image200px">[http://www.gimx.fr/img/wiki/SystemProperties.jpg http://www.gimx.fr/img/wiki/SystemProperties.jpg]</div>
 
 
 
<!--T:8-->
 
<div class="image200px">[http://www.gimx.fr/img/wiki/EnvVar.jpg http://www.gimx.fr/img/wiki/EnvVar.jpg]</div>
 
 
 
<!--T:9-->
 
<div class="image200px">[http://www.gimx.fr/img/wiki/Path.jpg http://www.gimx.fr/img/wiki/Path.jpg]</div>
 
 
 
==Libraries== <!--T:10-->
 
  
<!--T:11-->
+
32-bit:
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:
 
  
    <!--T:12-->
+
pacman --noconfirm -S mingw-w64-i686-gcc mingw-w64-i686-SDL2 mingw-w64-i686-libxml2
mingw-get install msys-wget
+
wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-i686-libusb-1.0.18-1-any.pkg.tar.xz
 +
wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-i686-pdcurses-3.4.0-1-any.pkg.tar.xz
 +
wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-i686-wxMSW-2.8.12-1-any.pkg.tar.xz
 +
pacman --noconfirm -U *.pkg.tar.xz
  
<!--T:13-->
+
64-bit:
Download and run the install.sh script:
 
  
    <!--T:14-->
+
pacman --noconfirm -S mingw-w64-x86_64-gcc mingw-w64-x86_64-SDL2 mingw-w64-x86_64-libxml2
wget --no-check-certificate <nowiki>https://raw.github.com/matlo/GIMX-build/master/win/install.sh</nowiki>
+
wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-x86_64-libusb-1.0.18-1-any.pkg.tar.xz
    ./install.sh
+
wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-x86_64-pdcurses-3.4.0-1-any.pkg.tar.xz
 +
wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-x86_64-wxMSW-2.8.12-1-any.pkg.tar.xz
 +
pacman --noconfirm -U *.pkg.tar.xz
  
 
==Automated command-line build== <!--T:15-->
 
==Automated command-line build== <!--T:15-->
  
 
<!--T:16-->
 
<!--T:16-->
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:
 
  
 
     <!--T:17-->
 
     <!--T:17-->

Revision as of 14:56, 7 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 "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 man wget git make diffutils patch p7zip unzip

Libraries

Run the Msys2 shell and type:

32-bit:

pacman --noconfirm -S mingw-w64-i686-gcc mingw-w64-i686-SDL2 mingw-w64-i686-libxml2
wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-i686-libusb-1.0.18-1-any.pkg.tar.xz
wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-i686-pdcurses-3.4.0-1-any.pkg.tar.xz
wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-i686-wxMSW-2.8.12-1-any.pkg.tar.xz
pacman --noconfirm -U *.pkg.tar.xz

64-bit:

pacman --noconfirm -S mingw-w64-x86_64-gcc mingw-w64-x86_64-SDL2 mingw-w64-x86_64-libxml2
wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-x86_64-libusb-1.0.18-1-any.pkg.tar.xz
wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-x86_64-pdcurses-3.4.0-1-any.pkg.tar.xz
wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-x86_64-wxMSW-2.8.12-1-any.pkg.tar.xz
pacman --noconfirm -U *.pkg.tar.xz

Automated command-line build

Run the Msys2 shell and type:

   wget --no-check-certificate 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.