[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
Thu Feb 28 21:53:33 EST 2008
On Wed, 2008-02-27 at 19:11 +0100, Nikos Alexandris wrote:
> On Wed, 2008-02-27 at 18:47 +0100, Maciej Sieczka wrote:
> > Nikos Alexandris pisze:
[...]
>
> Thanx for the tip. I can just add the rest then.
Attached is a txt file slightly modified (removed the FFTW section).
SuperSimple question:
I am not sure how to upload the file in the wiki although I have seen an
"upload" link. I ask before I do it... is it a "global" upload tool or
is it necessary to upload something from within a specific page of the
wiki?
-------------- next part --------------
# 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
More information about the grass-user
mailing list