[GRASS-user] Just a successful report ;
-) --- Compiling GRASS source code
under Ubuntu 7.10 64-bit with...
Nikos Alexandris
nikos.alexandris at felis.uni-freiburg.de
Tue Feb 26 18:47:28 EST 2008
... support for 64-bit, SQLite, OpenGL, PYTHON, FFMPEG
It's FAST ;-)
I would like to put that on the wiki if there no objections.
# Compiling latest GRASS source code on a 64-bit machine (with ATI
graphic card) under Ubuntu 7.10 64-bit with support for:
64-but, SQLite, OpenGL, PYTHON, FFMPEG
# Assuming that it is the first time requesting/ 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 GRASS
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 FFTW
cd fftw-2.1.5/
# FFTW configuration
CFLAGS="-fPIC" ./configure
# FFTW compilation
make
# FFTW installation
make install
*** 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
# 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
* Let's 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.svn
grass63
*** NOTES ***
# In case of errors in future compilation attempts, remember to remove
program binaries
make clean
# and the files created with the "configuration" from previous
make distclean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.osgeo.org/pipermail/grass-user/attachments/20080227/d7be5d20/attachment.bin
More information about the grass-user
mailing list