The old commandline version of installation: | |
Ubuntu and debian: | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get dist-upgrade | |
sudo apt-get install gedit cvs git subversion mercurial gcc g++ build-essential mesa-common-dev libglu1-mesa-dev valgrind filezilla cmake nvidia-cg-toolkit rar libsdl1.2-dev libsdl-image1.2-dev python bison flex libtool autoconf swig mypaint pencil blender curl libjpeg-dev libpng12-dev libdevil-dev libassimp3 libtinyxml-dev libsdl2-dev libsdl2-image-dev openjdk-7-jdk mono-mcs lmms libusb-dev asunder | |
OSX: | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install cvs git subversion mercurial gcc valgrind cmake python bison flex libtool autoconf swig curl | |
cd $HOME | |
curl -O http://www.tommironty.fi/IndieLibX.zip | |
curl -O http://www.tommironty.fi/IndieLib_resources.zip | |
unzip -x ./IndieLibX.zip -d ./IndieLibX | |
unzip -x ./IndieLib_resources.zip -d ./IndieLib_resources | |
On mac you need install at least XCode, ADT-bundle and NDK: | |
NDK: | |
curl -O http://dl.google.com/android/ndk/android-ndk-r9d-darwin-x86_64.tar.bz2 | |
bunzip2 -d ./android-ndk-r9d-darwin-x86_64.tar.bz2 | |
tar -xf ./android-ndk-r9d-darwin-x86_64.tar | |
ADT-bundle: curl -O http://dl.google.com/android/adt/adt-bundle-mac-x86_64-20131030.zip | |
unzip -x ./adt-bundle-mac-x86_64-20131030.zip -d ./adt-bundle | |
echo "export ANDROID_NDK=\$HOME/android-ndk-r9d" >> .bash_profile | |
echo "export ANDROID_SDK=\$HOME/adt-bundle/sdk" >> .bash_profile | |
On Ubuntu and Debian: | |
NDK: curl -O http://dl.google.com/android/ndk/android-ndk-r9d-linux-x86.tar.bz2 | |
bunzip2 -d ./android-ndk-r9d-linux-x86.tar.bz2 | |
tar -xf ./android-ndk-r9d-linux-x86.tar | |
ADT-bundle: curl -O http://dl.google.com/android/adt/adt-bundle-linux-x86-20131030.zip | |
unzip -x ./adt-bundle-linux-x86-20131030.zip -d ./adt-bundle | |
echo "export ANDROID_NDK=\$HOME/android-ndk-r9d" >> .bashrc | |
echo "export ANDROID_SDK=\$HOME/adt-bundle/sdk" >> .bashrc | |
$ANDROID_SDK/tools/android update sdk --no-ui | |
Open Android SDK Manager window and mark checkbox Android SDK Build-tools 19.1 to be installed: | |
$ANDROID_SDK/tools/android update sdk --filter tools,platform-tools,build-tools-19.1.0 | |
For OSX builds it may be necessary to build the SDL2 and SDL2_image from sources: | |
cd $HOME | |
curl -O https://www.libsdl.org/release/SDL2-2.0.4.tar.gz | |
gunzip ./SDL2-2.0.4.tar.gz | |
tar -xf ./SDL2-2.0.4.tar | |
cd ./SDL2-2.0.4 | |
./configure | |
make | |
sudo make install | |
cd .. | |
curl -O https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.0.tar.gz | |
gunzip ./SDL2_image-2.0.0.tar.gz | |
tar -xf ./SDL2_image-2.0.0.tar | |
cd ./SDL2_image-2.0.0 | |
./configure | |
make | |
sudo make install | |
cd .. |