# Compiling latest GRASS source code on a 64-bit machine (with an ATI graphic card) under Ubuntu 7.10 64-bit with support for: # 64-bit, SQLite, OpenGL, PYTHON, FFMPEG # # Based on script for Ubuntu 7.06 by David # Assuming it is the first time installing SVN, PROJ, GDAL/OGR *** PREPARATION *** sudo apt-get update && sudo apt-get upgrade # installing SVN sudo apt-get install subversion # installing dependencies for compiling (in general) # and dependencies for GRASS: PROJ, GDAL/OGR sudo apt-get install grass build-essential flex bison libncurses5-dev zlib1g-dev \ libjpeg62-dev libgdal1-dev libtiff4-dev ligcc++ bpng12-dev tcl8.4-dev tk8.4-dev fftw-dev \ libfreetype6-dev libavcodec-dev libxmu-dev gdal-bin libreadline5 libreadline5-dev \ make # installing SQLite sudo apt-get install sqlite3 libsqlite3-dev # download latest source code from GRASS SVN repository svn checkout https://svn.osgeo.org/grass/grass/trunk grass_trunk # in case of a subsequent update: use the command "svn up" (without quotes) # before attempting to compile GRASS # READ section (C) in the INSTALL file located in the main directory of GRASS source code # entitled: (C) COMPILATION NOTES for 64bit platforms" section *** FFTW *** # installing FFTW3 if not already on system sudo apt-get install fftw3 fftw3-dev # not sure if the "-dev" is realy necessary! *** FFMPEG *** # from: http://stream0.org/2008/01/install-ffmpeg-on-ubuntu-gutsy.html # checkout svn source code svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg # install dependencies sudo apt-get install liblame-dev libfaad2-dev libfaac-dev libxvidcore4-dev liba52-0.7.4 liba52-0.7.4-dev libx264-dev libdts-dev checkinstall build-essential subversion # guide to ffmpeg directory cd ffmpeg # if necessary "make distclean" (without quotes) ./configure --enable-gpl --enable-pp --enable-libvorbis --enable-libtheora --enable-liba52 --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-shared # compilation make # installation on /usr/local/bin -- important to know when configuring GRASS' source code for compilation sudo checkinstall * go for GRASS! cd /to/wherever/your/GRASS/source/code/is # configuration CFLAGS="-g -Wall" LDFLAGS="-s" ./configure --enable-64bit --with-libs=/usr/lib64 --with-cxx --with-freetype=yes --with-postgres=no --with-sqlite=yes --enable-largefile=yes --with-tcltk-includes=/usr/include/tcl8.4 --with-freetype-includes=/usr/include/freetype2 --with-opengl-libs=/usr/include/GL --with-readline --with-python=yes --with-ffmpeg=yes --with-ffmpeg-includes=/usr/local/include/ffmpeg # if OpenGL fails then maybe it is necessary to link glxATI.h with glx.h and re-run configuration # (1) cd /usr/include/GL # (2) sudo ln glxATI.h glx.h # (3) back to "configuration" # compilation make # compilation is expected to end with a "no errors statement": # Started compilation: Wed Feb 27 00:24:36 CET 2008 # -- # Errors in: # No errors detected. # installation sudo make install # launch 64-bit GRASS.6.3.sv grass63 *** NOTES *** # in case of errors in future compilation attempts, remember to remove program binaries with make clean # and the files created with the "configuration" from previous compilations with make distclean