Ubuntu

From LagoonWiki

Jump to: navigation, search

Compiling on Ubuntu

Please note that this was tested on Ubuntu 6.06 (Dapper Drake).

Add the following to /etc/apt/sources.list (to allow for wx library download):

 deb http://wxpython.wxcommunity.com/apt/ubuntu/dapper /
 deb-src http://wxpython.wxcommunity.com/apt/ubuntu/dapper /

Save the file, then on the command line do the following:

 apt-get update
 apt-get install build-essential
 apt-get install automake1.9
 apt-get install libtool
 apt-get install libgl1-mesa-dev
 apt-get install libglu1-mesa-dev
 apt-get install libx11-dev
 apt-get install tcl8.4-dev
 apt-get install tk8.4-dev
 apt-get install libvorbis-dev
 apt-get install python-dev
 apt-get install libxmu-dev
 apt-get install xorg-dev
 apt-get install libtiff4-dev
 apt-get install python-wxgtk2.8
 apt-get install python-wxtools
 apt-get install wx2.8-i18n
 apt-get install libdevil-dev
 apt-get install libpng12-dev

Ubuntu carries g++ 4.1, change accordingly (see Compiling with GCC 4.x):

 Change /ivy/externalPackages/tnl/Makefile line containing "g++32" to "g++"
 Change /ivy/externalPackages/libtomcrypt/makefile line containing "g++32" to "g++"
 Change /ivy/code/defines.mak line containing "CC = g++32" to "CC = g++"

The versions of libpng and libtiff differ and Ubuntu doesn't have older ones available, symbolic links work to trick the linker into using the newer version, which links and runs fine:

 ln -s /usr/lib/libpng12.so.0 /usr/lib/libpng.so.2
 ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3

Package tcl8.4 is located at /usr/include/tcl8.4/, files (and folders) in this directory should be moved up one level to /usr/include/

 sudo ln -s /usr/include/tcl8.4/* /usr/include
Personal tools