Development on Windows
|Other languages:||English • French|
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).
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).
This part explains how to install the required libraries (libiconv, SDL, wxWidgets, libxml, zlib).
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.
Download and run the build.sh script:
All binaries are copied into C:\MinGW\msys\1.0\home\username\GIMX\setup.
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.
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 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.
Check out is performed, and the new project appears in the Project Explorer view. The project is build automatically.