Difference between revisions of "Development on Windows"

From GIMX
Jump to: navigation, search
(Marked this version for translation)
Line 1: Line 1:
 
<languages />
 
<languages />
<translate>This wiki explains how to install a compilation environment (based on MinGW) to build GIMX.<br/>
+
<translate><!--T:1-->
 +
This wiki explains how to install a compilation environment (based on MinGW) 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 (with SVN) 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==
+
==MinGW/MSYS== <!--T:2-->
  
 +
<!--T:3-->
 
This part explains how to install the compilation toolchain.<br/>
 
This part explains how to install the compilation toolchain.<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/>
 
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/>
 
The only thing to configure during the installation process: in the "Select Components" panel, select "C++ Compiler" and "MSYS Basic System".
 
The only thing to configure during the installation process: in the "Select Components" panel, select "C++ Compiler" and "MSYS Basic System".
  
 +
<!--T:4-->
 
<div class="image200px">[http://www.gimx.fr/img/wiki/MinGW.jpg http://www.gimx.fr/img/wiki/MinGW.jpg]</div>
 
<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).
 
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>
 
<div class="image200px">[http://www.gimx.fr/img/wiki/System.jpg http://www.gimx.fr/img/wiki/System.jpg]</div>
  
 +
<!--T:7-->
 
<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/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>
 
<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>
 
<div class="image200px">[http://www.gimx.fr/img/wiki/Path.jpg http://www.gimx.fr/img/wiki/Path.jpg]</div>
  
==Libraries==
+
==Libraries== <!--T:10-->
  
 +
<!--T:11-->
 
This part explains how to install the required libraries (libiconv, SDL, wxWidgets, libxml, zlib).<br/>
 
This part explains how to install the required libraries (libiconv, SDL, wxWidgets, libxml, zlib).<br/>
 
Run C:\MinGW\msys\1.0\msys.bat<br/>
 
Run C:\MinGW\msys\1.0\msys.bat<br/>
 
Install wget:
 
Install wget:
  
     mingw-get install msys-wget
+
     <!--T:12-->
 +
mingw-get install msys-wget
  
 +
<!--T:13-->
 
Download and run the install.sh script:
 
Download and run the install.sh script:
  
     wget http://diyps3controller.googlecode.com/svn/trunk/build/win/install.sh
+
     <!--T:14-->
 +
wget http://diyps3controller.googlecode.com/svn/trunk/build/win/install.sh
 
     ./install.sh
 
     ./install.sh
  
==Automated command-line build==
+
==Automated command-line build== <!--T:15-->
  
 +
<!--T:16-->
 
This part explains how to checkout and build GIMX from the command-line.<br/>
 
This part explains how to checkout and build GIMX from the command-line.<br/>
 
Run C:\MinGW\msys\1.0\msys.bat<br/>
 
Run C:\MinGW\msys\1.0\msys.bat<br/>
 
Download and run the build.sh script:
 
Download and run the build.sh script:
  
     wget http://diyps3controller.googlecode.com/svn/trunk/build/win/build.sh
+
     <!--T:17-->
 +
wget http://diyps3controller.googlecode.com/svn/trunk/build/win/build.sh
 
     ./build.sh
 
     ./build.sh
  
 +
<!--T:18-->
 
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 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.
  
==Eclipse IDE==
+
==Eclipse IDE== <!--T:19-->
  
 +
<!--T:20-->
 
Eclipse is an IDE that can be stacked onto the MinGW/MSYS compilation toolchain.<br/>
 
Eclipse is an IDE that can be stacked onto the MinGW/MSYS compilation toolchain.<br/>
 
Be sure to have a [http://www.oracle.com/technetwork/java/javase/downloads/index.html java JRE] installed on your system.<br/>
 
Be sure to have a [http://www.oracle.com/technetwork/java/javase/downloads/index.html java JRE] installed on your system.<br/>
Line 53: Line 69:
 
Run eclipse.exe.
 
Run eclipse.exe.
  
===SVN Plugin===
+
===SVN Plugin=== <!--T:21-->
  
 +
<!--T:22-->
 
Help>Install New Software<br/>
 
Help>Install New Software<br/>
 
Work with: select your eclipse release name (as of this writing, Indigo).<br/>
 
Work with: select your eclipse release name (as of this writing, Indigo).<br/>
Line 61: Line 78:
 
Proceed to installation (select latest SVN Kit - as of this writing, 1.3.5), and restart eclipse.
 
Proceed to installation (select latest SVN Kit - as of this writing, 1.3.5), and restart eclipse.
  
===Project checkout===
+
===Project checkout=== <!--T:23-->
  
 +
<!--T:24-->
 
Project Explorer view, right click, New>Other.<br/>
 
Project Explorer view, right click, New>Other.<br/>
 
Select SVN>Project from SVN, click next.<br/>
 
Select SVN>Project from SVN, click next.<br/>

Revision as of 14:10, 27 June 2012

Other languages:
English • ‎français

This wiki explains how to install a compilation environment (based on MinGW) to build GIMX.
It also explains how to install Eclipse CDT (with SVN) and perform a checkout.
Unless otherwise specified, perform a default installation (default directories, etc).

MinGW/MSYS

This part explains how to install the compilation toolchain.
Download and run Mingw 20120426.
The only thing to configure during the installation process: in the "Select Components" panel, select "C++ Compiler" and "MSYS Basic System".

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

Libraries

This part explains how to install the required libraries (libiconv, SDL, wxWidgets, libxml, zlib).
Run C:\MinGW\msys\1.0\msys.bat
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

This part explains how to checkout and build GIMX from the command-line.
Run C:\MinGW\msys\1.0\msys.bat
Download and run the build.sh script:

   wget http://diyps3controller.googlecode.com/svn/trunk/build/win/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.

Eclipse IDE

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.

SVN Plugin

Help>Install New Software
Work with: select your eclipse release name (as of this writing, Indigo).
type filter text: svn
Select "Subversive SVN Integration for the Mylyn Project" and "Subversive SVN Team Provider".
Proceed to installation (select latest SVN Kit - as of this writing, 1.3.5), and restart eclipse.

Project checkout

Project Explorer view, right click, New>Other.
Select SVN>Project from SVN, click next.
Enter URL: https://diyps3controller.googlecode.com/svn/trunk/sixaxis-emu
Click next, Click no (do not nomalize URL), and click "Trust Always" (googlecode certificate).
Click Head Revision, and click Finish.
Check out as: Select "Check out as a project configured using the New Project Wizard", select "Head Revision", and click finish.
Select a wizard: Select "C project" and click next.
Enter a Project name, and select "Makefile Project > Empty Project", and click next.
Click on "Advanced Settings", click on "C/C++ build", uncheck "Use default build command", and write "make -f Makefile.win" as "Build command".
Click on the "Behaviour" panel, check "Use parallel build" and set the "Use parallel jobs" to the right number of CPU cores.
Click Finish.
Check out is performed, and the new project appears in the Project Explorer view. The project is build automatically.