Difference between revisions of "Development on Windows/fr"

From GIMX
Jump to: navigation, search
(Created page with "===Checkout du projet===")
(Created page with "Vue "Project Explorer", clic droit, New>Other.<br /> Sélectionner "SVN>Project from SVN", cliquer sur next.<br /> Entrer l'URL : https://diyps3controller.googlecode.com/svn/t...")
Line 65: Line 65:
 
===Checkout du projet===
 
===Checkout du projet===
  
Project Explorer view, right click, New>Other.<br/>
+
Vue "Project Explorer", clic droit, New>Other.<br />
Select SVN>Project from SVN, click next.<br/>
+
Sélectionner "SVN>Project from SVN", cliquer sur next.<br />
Enter URL: https://diyps3controller.googlecode.com/svn/trunk/sixaxis-emu<br/>
+
Entrer l'URL : https://diyps3controller.googlecode.com/svn/trunk/GIMX.<br />
Click next, Click no (do not nomalize URL), and click "Trust Always" (googlecode certificate).<br/>
+
Cliquer sur next, cliquer sur no (do not normalize URL), et cliquer sur "Trust Always" (googlecode certificate).<br />
Click Head Revision, and click Finish.<br/>
+
Cliquer sur "Head Revision", et sur Finish.<br />
Check out as: Select "Check out as a project configured using the New Project Wizard", select "Head Revision", and click finish.<br/>
+
Sélectionner "Check out as a project configured using the New Project Wizard", et "Head Revision", puis cliquer sur finish.<br />
Select a wizard: Select "C project" and click next.<br/>
+
Cliquer sur "Advanced Settings", cliquer sur "C/C++ build", déselectionner "Use default build command", et écrire "make -f Makefile.win" dans le champ "Build command".<br />
Enter a Project name, and select "Makefile Project > Empty Project", and click next.<br/>
+
Cliquer sur le panneau "Behaviour", sélectionner "Use parallel build" et régler "Use parallel jobs" au bon nombre de cores CPU.<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/>
+
Cliquer sur Finish.<br />
Click on the "Behaviour" panel, check "Use parallel build" and set the "Use parallel jobs" to the right number of CPU cores.<br/>
+
Le Checkout est effectué, et un nouveau projet apparaît dans la vue "Project Explorer". Le projet est compilé automatiquement.
Click Finish.<br/>
 
Check out is performed, and the new project appears in the Project Explorer view. The project is build automatically.
 

Revision as of 09:54, 28 June 2012

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 (Panneau de configuration > Système > Avancé > Variables d'environnement > Variables systèmes > Path > Éditer).

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

Tous les binaires sont copiés dans C:\MinGW\msys\1.0\home\username\GIMX\setup. Les binaires gimx-config, gimx-fpsconfig et gimx-serial peuvent être lancés depuis ce dossier qui contient toutes les librairies et fichiers de configuration requis.

Eclipse IDE

Eclipse est un IDE qui peut être utilisé avec les outils de compilation MinGW/MSYS.
Assurez vous d'avoir un JRE java installé sur votre système.
Télécharger Eclipse IDE for C/C++ Developers. Le décompresser dans un répertoire quelconque.
Exécuter eclipse.exe.

Plugin SVN

Cliquer sur "Help>Install New Software".
Sélectionner le nom de version (à l'heure de cette écriture, Indigo).
Taper le filtre de recherche : svn.
Sélectionner "Subversive SVN Integration for the Mylyn Project" et "Subversive SVN Team Provider".
Procéder à l'installation (sélectionner le dernier SVN Kit - lors de cette écriture, 1.3.5), et redémarrer eclipse.

Checkout du projet

Vue "Project Explorer", clic droit, New>Other.
Sélectionner "SVN>Project from SVN", cliquer sur next.
Entrer l'URL : https://diyps3controller.googlecode.com/svn/trunk/GIMX.
Cliquer sur next, cliquer sur no (do not normalize URL), et cliquer sur "Trust Always" (googlecode certificate).
Cliquer sur "Head Revision", et sur Finish.
Sélectionner "Check out as a project configured using the New Project Wizard", et "Head Revision", puis cliquer sur finish.
Cliquer sur "Advanced Settings", cliquer sur "C/C++ build", déselectionner "Use default build command", et écrire "make -f Makefile.win" dans le champ "Build command".
Cliquer sur le panneau "Behaviour", sélectionner "Use parallel build" et régler "Use parallel jobs" au bon nombre de cores CPU.
Cliquer sur Finish.
Le Checkout est effectué, et un nouveau projet apparaît dans la vue "Project Explorer". Le projet est compilé automatiquement.