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)
 

(8 intermediate revisions by the same user not shown)

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 (with SVN) 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).
  
==MinGW/MSYS==
+
==Msys2/MinGW64==
  
This part explains how to install the compilation toolchain.<br/>
+
Download and install [https://msys2.github.io/ Msys2].<br />
Download and run [http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/mingw-get-inst-20120426/mingw-get-inst-20120426.exe/download Mingw 20120426].<br/>
+
Make sure to follow the instructions from the Msys2 wiki.
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>
+
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 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.
  
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).
+
==Checkout installation and build tools==
  
<div class="image200px">[http://www.gimx.fr/img/wiki/System.jpg http://www.gimx.fr/img/wiki/System.jpg]</div>
+
pacman --noconfirm -S git
 +
git clone <nowiki>https://github.com/matlo/GIMX-build.git</nowiki>
  
<div class="image200px">[http://www.gimx.fr/img/wiki/SystemProperties.jpg http://www.gimx.fr/img/wiki/SystemProperties.jpg]</div>
+
==Development tools==
  
<div class="image200px">[http://www.gimx.fr/img/wiki/EnvVar.jpg http://www.gimx.fr/img/wiki/EnvVar.jpg]</div>
+
Run mingwXY_shell.bat (XY=32 or 64) and type:
  
<div class="image200px">[http://www.gimx.fr/img/wiki/Path.jpg http://www.gimx.fr/img/wiki/Path.jpg]</div>
+
cd GIMX-build/windows
 +
./install.sh
  
==Libraries==
+
==Inno setup==
  
This part explains how to install the required libraries (libiconv, SDL, wxWidgets, libxml, zlib).<br/>
+
Download and install [http://www.jrsoftware.org/isdl.php Inno setup].
Run C:\MinGW\msys\1.0\msys.bat<br/>
 
Install wget:
 
 
 
    mingw-get install msys-wget
 
 
 
Download and run the install.sh script:
 
 
 
    wget http://diyps3controller.googlecode.com/svn/trunk/build/win/install.sh
 
    ./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 mingwXY_shell.bat (XY=32 or 64) and type:  
Run C:\MinGW\msys\1.0\msys.bat<br/>
 
Download and run the build.sh script:
 
  
    wget http://diyps3controller.googlecode.com/svn/trunk/build/win/build.sh
+
cd GIMX-build
    ./build.sh
+
./build.sh
  
All binaries are copied into C:\MinGW\msys\1.0\home\username\GIMX\setup. Binaries gimx-config, gimx-fpsconfig and gimx-serial can be launched from that folder as it contains all required libraries and configuration files.
+
All binaries are copied into <path to msys>\home\<username>\GIMX\setup, e.g. C:\msys32\home\matlo\GIMX\setup.<br />
 +
A setup file is also created.
  
 
==Eclipse IDE==
 
==Eclipse IDE==
  
Eclipse is an IDE that can be stacked onto the MinGW/MSYS compilation toolchain.<br/>
+
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.<br />
Be sure to have a [http://www.oracle.com/technetwork/java/javase/downloads/index.html java JRE] installed on your system.<br/>
+
Eclipse is an IDE that can be stacked onto the MinGW/MSYS compilation toolchain.<br />
Download [http://www.eclipse.org/downloads/ Eclipse IDE for C/C++ Developers]. Unzip it to wherever you want.<br/>
+
Be sure to have a [http://www.oracle.com/technetwork/java/javase/downloads/index.html java JRE] installed on your system.<br />
 +
Download [http://www.eclipse.org/downloads/ Eclipse IDE for C/C++ Developers]. Unzip it to wherever you want.<br />
 
Run eclipse.exe.
 
Run eclipse.exe.
 
===SVN Plugin===
 
 
Help>Install New Software<br/>
 
Work with: select your eclipse release name (as of this writing, Indigo).<br/>
 
type filter text: svn<br/>
 
Select "Subversive SVN Integration for the Mylyn Project" and "Subversive SVN Team Provider".<br/>
 
Proceed to installation (select latest SVN Kit - as of this writing, 1.3.5), and restart eclipse.
 
  
 
===Project checkout===
 
===Project checkout===
  
Project Explorer view, right click, New>Other.<br/>
+
Todo: add instructions.
Select SVN>Project from SVN, click next.<br/>
 
Enter URL: https://diyps3controller.googlecode.com/svn/trunk/sixaxis-emu<br/>
 
Click next, Click no (do not nomalize URL), and click "Trust Always" (googlecode certificate).<br/>
 
Click Head Revision, and click Finish.<br/>
 
Check out as: Select "Check out as a project configured using the New Project Wizard", select "Head Revision", and click finish.<br/>
 
Select a wizard: Select "C project" and click next.<br/>
 
Enter a Project name, and select "Makefile Project > Empty Project", and click next.<br/>
 
Click on "Advanced Settings", click on "C/C++ build", uncheck "Use default build command", and write "make -f Makefile.win" as "Build command".<br/>
 
Click on the "Behaviour" panel, check "Use parallel build" and set the "Use parallel jobs" to the right number of CPU cores.<br/>
 
Click Finish.<br/>
 
Check out is performed, and the new project appears in the Project Explorer view. The project is build automatically.
 

Latest revision as of 15:06, 30 September 2015

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 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.