Développement sous Linux

From GIMX

Revision as of 23:04, 27 June 2012 by Matlo (talk | contribs) (Created page with "==Installer==")

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

Cette page explique comment compiler GIMX depuis un terminal Linux.

Installer les paquets de développement

   sudo apt-get install g++ libwxgtk2.8-dev libbluetooth-dev libglib2.0-dev libxml2-dev libxi-dev libusb-dev libusb-1.0-0-dev libncurses5-dev

Sur Fedora: yum -y install wxGTK-devel bluez-libs-devel glib2-devel libxml2-devel libXi-devel libusb-devel

Compiler une librairie SDL patchée

   wget http://www.libsdl.org/release/SDL-1.2.14.tar.gz
   tar xzvf SDL-1.2.14.tar.gz
   svn export http://diyps3controller.googlecode.com/svn/trunk/libsdl/patch
   cd SDL-1.2.14
   patch -p1 < ../patch
   ./configure ; make
   cd ..

Copier les headers et .so

   mkdir -p libsdl/lib
   mkdir -p libsdl/include/SDL
   cp SDL-1.2.14/build/.libs/libSDL.so libsdl/lib
   cp SDL-1.2.14/include/* libsdl/include/SDL

Télécharger les sources de GIMX

   svn checkout http://diyps3controller.googlecode.com/svn/trunk/GIMX

Compiler

   cd GIMX
   make -j 2

Remplacer "2" avec le nombre de cores du CPU.

Installer

   sudo make install