Difference between revisions of "Development on Linux"
|  (Marked this version for translation) | |||
| Line 1: | Line 1: | ||
| <languages /> | <languages /> | ||
| − | <translate>This wiki explains how to compile GIMX from a Linux terminal. | + | <translate><!--T:1--> | 
| + | This wiki explains how to compile GIMX from a Linux terminal. | ||
| − | ==Install development packages== | + | ==Install development packages== <!--T:2--> | 
| − |      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 | + |      <!--T:3--> | 
| + | 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 | ||
| + | <!--T:4--> | ||
| On Fedora: yum -y install wxGTK-devel bluez-libs-devel glib2-devel libxml2-devel libXi-devel libusb-devel | On Fedora: yum -y install wxGTK-devel bluez-libs-devel glib2-devel libxml2-devel libXi-devel libusb-devel | ||
| − | ==Compile a patched SDL library== | + | ==Compile a patched SDL library== <!--T:5--> | 
| − |      wget http://www.libsdl.org/release/SDL-1.2.14.tar.gz | + |      <!--T:6--> | 
| + | wget http://www.libsdl.org/release/SDL-1.2.14.tar.gz | ||
|      tar xzvf SDL-1.2.14.tar.gz |      tar xzvf SDL-1.2.14.tar.gz | ||
|      svn export http://diyps3controller.googlecode.com/svn/trunk/libsdl/patch |      svn export http://diyps3controller.googlecode.com/svn/trunk/libsdl/patch | ||
| Line 18: | Line 22: | ||
|      cd .. |      cd .. | ||
| − | ==Copy SDL headers and .so== | + | ==Copy SDL headers and .so== <!--T:7--> | 
| − |      mkdir -p libsdl/lib | + |      <!--T:8--> | 
| + | mkdir -p libsdl/lib | ||
|      mkdir -p libsdl/include/SDL |      mkdir -p libsdl/include/SDL | ||
|      cp SDL-1.2.14/build/.libs/libSDL.so libsdl/lib |      cp SDL-1.2.14/build/.libs/libSDL.so libsdl/lib | ||
|      cp SDL-1.2.14/include/* libsdl/include/SDL |      cp SDL-1.2.14/include/* libsdl/include/SDL | ||
| − | ==Download GIMX sources== | + | ==Download GIMX sources== <!--T:9--> | 
| − |      svn checkout http://diyps3controller.googlecode.com/svn/trunk/GIMX | + |      <!--T:10--> | 
| + | svn checkout http://diyps3controller.googlecode.com/svn/trunk/GIMX | ||
| − | ==Compile== | + | ==Compile== <!--T:11--> | 
| − |      cd GIMX | + |      <!--T:12--> | 
| + | cd GIMX | ||
|      make -j 2 |      make -j 2 | ||
| + | <!--T:13--> | ||
| Replace "2" with your number of CPU cores. | Replace "2" with your number of CPU cores. | ||
| − | ==Install== | + | ==Install== <!--T:14--> | 
| − |      sudo make install | + |      <!--T:15--> | 
| + | sudo make install | ||
| </translate> | </translate> | ||
Revision as of 13:10, 27 June 2012
This wiki explains how to compile GIMX from a Linux terminal.
Contents
Install development packages
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
On Fedora: yum -y install wxGTK-devel bluez-libs-devel glib2-devel libxml2-devel libXi-devel libusb-devel
Compile a patched SDL library
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 ..
Copy SDL headers and .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
Download GIMX sources
svn checkout http://diyps3controller.googlecode.com/svn/trunk/GIMX
Compile
cd GIMX make -j 2
Replace "2" with your number of CPU cores.
Install
sudo make install
