Difference between revisions of "Development on Windows/fr"

From GIMX
Jump to: navigation, search
(Created page with "==Librairies==")
 

(47 intermediate revisions by 2 users not shown)

Line 1: Line 1:
 
<languages />
 
<languages />
Cette page explique comment installer un environnement de compilation (basé sur MinGW) pour construire GIMX.<br />
+
Cette page explique comment installer un environnement de compilation (basé sur Msys2/mingw64) pour construire GIMX.<br />
Elle explique aussi comment installer Eclipse CDT (avec SVN) et comment effectuer un checkout.<br />
+
Elle explique aussi comment installer Eclipse CDT et comment effectuer un checkout.<br />
 
Sauf cas contraire, effectuer une installation par défaut (répertoires par défaut, etc...).
 
Sauf cas contraire, effectuer une installation par défaut (répertoires par défaut, etc...).
  
==MinGW/MSYS==
+
==Msys2/MinGW64==
  
Cette partie explique comment installer les outils de compilation.<br />
+
Télécharger et installer [https://msys2.github.io/ Msys2].
Télécharger et lancer [http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/mingw-get-inst-20120426/mingw-get-inst-20120426.exe/download Mingw 20120426].<br />
+
Bien suivre les instructions du wiki Msys2.
Durant l'installation, dans le panneau "Select Components", ajouter "C++ Compiler" et "MSYS Basic System".
 
  
<div class="image200px">[http://gimx.fr/img/wiki/MinGW.jpg http://gimx.fr/img/wiki/MinGW.jpg]</div>
+
Sur un Windows 32 bits, installer la version i686 de Msys2.<br />
 +
Sur un Windows 64 bits, installer soit la version x86_64 soit la version i686 de Msys2.<br />
 +
Les binaires produits par la version x86_64 ne peuvent s'exécuter que sur un Windows 64 bits, tandis que les binaires produits par la version i686 peuvent s'exécuter aussi bien sur une version 32 bits que sur une version 64 bits.
  
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).
+
==Checkout des outils d'installation et de génération==
  
<div class="image200px">[http://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://gimx.fr/img/wiki/SystemProperties.jpg http://www.gimx.fr/img/wiki/SystemProperties.jpg]</div>
+
==Outils de développement==
  
<div class="image200px">[http://gimx.fr/img/wiki/EnvVar.jpg http://www.gimx.fr/img/wiki/EnvVar.jpg]</div>
+
Exécuter mingwXY_shell.bat (XY=32 ou 64) et taper :
  
<div class="image200px">[http://gimx.fr/img/wiki/Path.jpg http://www.gimx.fr/img/wiki/Path.jpg]</div>
+
cd GIMX-build/windows
 +
./install.sh
  
==Librairies==
+
==Inno setup==
  
This part explains how to install the required libraries (libiconv, SDL, wxWidgets, libxml, zlib).<br/>
+
Télécharger et installer [http://www.jrsoftware.org/isdl.php Inno setup].
Run C:\MinGW\msys\1.0\msys.bat<br/>
 
Install wget:
 
  
    mingw-get install msys-wget
+
==Compilation==
  
Download and run the install.sh script:
+
Exécuter mingwXY_shell.bat (XY=32 ou 64) et taper :  
  
    wget http://diyps3controller.googlecode.com/svn/trunk/build/win/install.sh
+
cd GIMX-build
    ./install.sh
+
./build.sh
  
==Automated command-line build==
+
Tous les binaires sont copiés dans <path to msys>\home\<username>\GIMX\setup, par exemple C:\msys32\home\matlo\GIMX\setup.<br />
 
+
Un fichier setup est aussi créé.
This part explains how to checkout and build GIMX from the command-line.<br/>
 
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
 
    ./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 IDE==
  
Eclipse is an IDE that can be stacked onto the MinGW/MSYS compilation toolchain.<br/>
+
Cette partie n'est utile que si vous avez l'intention de modifier le code source. Si vous voulez seulement compiler GIMX, vous pouvez ignorer ceci.<br />
Be sure to have a [http://www.oracle.com/technetwork/java/javase/downloads/index.html java JRE] installed on your system.<br/>
+
Eclipse est un IDE qui peut être utilisé avec les outils de compilation MinGW/MSYS.<br />
Download [http://www.eclipse.org/downloads/ Eclipse IDE for C/C++ Developers]. Unzip it to wherever you want.<br/>
+
Assurez vous d'avoir un [http://www.oracle.com/technetwork/java/javase/downloads/index.html JRE java] installé sur votre système.<br />
Run eclipse.exe.
+
Télécharger [http://www.eclipse.org/downloads/ Eclipse IDE for C/C++ Developers]. Le décompresser dans un répertoire quelconque.<br />
 
+
Exécuter 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===
+
===Checkout du projet===
  
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:45, 30 September 2015

Other languages:
English • ‎français

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

Msys2/MinGW64

Télécharger et installer Msys2. Bien suivre les instructions du wiki Msys2.

Sur un Windows 32 bits, installer la version i686 de Msys2.
Sur un Windows 64 bits, installer soit la version x86_64 soit la version i686 de Msys2.
Les binaires produits par la version x86_64 ne peuvent s'exécuter que sur un Windows 64 bits, tandis que les binaires produits par la version i686 peuvent s'exécuter aussi bien sur une version 32 bits que sur une version 64 bits.

Checkout des outils d'installation et de génération

pacman --noconfirm -S git
git clone https://github.com/matlo/GIMX-build.git

Outils de développement

Exécuter mingwXY_shell.bat (XY=32 ou 64) et taper :

cd GIMX-build/windows
./install.sh

Inno setup

Télécharger et installer Inno setup.

Compilation

Exécuter mingwXY_shell.bat (XY=32 ou 64) et taper :

cd GIMX-build
./build.sh

Tous les binaires sont copiés dans <path to msys>\home\<username>\GIMX\setup, par exemple C:\msys32\home\matlo\GIMX\setup.
Un fichier setup est aussi créé.

Eclipse IDE

Cette partie n'est utile que si vous avez l'intention de modifier le code source. Si vous voulez seulement compiler GIMX, vous pouvez ignorer ceci.
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.

Checkout du projet

Todo: add instructions.