Développement sous Windows

From GIMX

Revision as of 23:30, 27 June 2012 by Matlo (talk | contribs) (Created page with "Cette partie explique comment faire un checkout et comment compiler GIMX depuis la ligne de commande.<br /> Lancer C:\MinGW\msys\1.0\msys.bat<br /> Télécharger et exécuter ...")

Jump to: navigation, search
Other languages:
English • ‎français

Cette page explique comment installer un environnement de compilation (basé sur MinGW) pour construire GIMX.
Elle explique aussi comment installer Eclipse CDT (avec SVN) et comment effectuer un checkout.
Sauf cas contraire, effectuer une installation par défaut (répertoires par défaut, etc...).

MinGW/MSYS

Cette partie explique comment installer les outils de compilation.
Télécharger et lancer Mingw 20120426.
Durant l'installation, dans le panneau "Select Components", ajouter "C++ Compiler" et "MSYS Basic System".

Ajouter ";C:\MinGW\bin;C:\MinGW\msys\1.0\bin" (sans guillemets, ne pas oublier le point virgule au début) à votre system PATH (Control Panel > System > Advanced > Environment Variables > System variables > Path > Edit).

Librairies

Cette partie explique comment installer les librairies (libiconv, SDL, wxWidgets, libxml, zlib).
Exécuter C:\MinGW\msys\1.0\msys.bat
Installer wget:

   mingw-get install msys-wget

Télécharger et lancer le script install.sh :

   wget http://diyps3controller.googlecode.com/svn/trunk/build/win/install.sh
   ./install.sh

Compilation

Cette partie explique comment faire un checkout et comment compiler GIMX depuis la ligne de commande.
Lancer C:\MinGW\msys\1.0\msys.bat
Télécharger et exécuter build.sh :

   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.