[GRASS-user] Just a successful report ; -) --- Compiling GRASS source code under Ubuntu 7.10 64-bit with...

... support for 64-bit, SQLite, OpenGL, PYTHON, FFMPEG

It's FAST :wink:

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

Nikos Alexandris pisze:

*** FFTW ***

# ...installing FFTW

cd fftw-2.1.5/

Not needed. On Gutsy the stock FFTW 3 suffices.

Maciek

On Wed, 2008-02-27 at 18:47 +0100, Maciej Sieczka wrote:

Nikos Alexandris pisze:

> *** FFTW ***
>
> # ...installing FFTW
>
> cd fftw-2.1.5/

Not needed. On Gutsy the stock FFTW 3 suffices.

Thanx for the tip. I can just add the rest then.

Maciek

Cheers,

Nikos

Nikos Alexandris wrote:

Thanx for the tip. I can just add the rest then.

For Ubuntu there are already some tips on the wiki here:
http://grass.gdf-hannover.de/wiki/Installation_Guide#Ubuntu

http://grass.gdf-hannover.de/wiki/Compile_and_Install#Ubuntu_6.06.2C_7.10

and in general the Debian instructions there should work as well.

e.g. on Debian based distros it may be as simple as:
   # first install PROJ, then GDAL.
   cd grass63/
   # follow instructions in debian/README.debian
   fakeroot buildpackage

Hamish

      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Hello!

I would like to put that on the wiki if there no objections.

I would like to have your nice HowTo in the wiki.

We could think to develop a script that does the GRASS compilation and install each time there's a new version out.

Cheers,
Timmie

Hi,
that is not *that* easy. Because of new development introduces new
dependencies, and you have to fix them manually in debian/control file

jachym

Tim Michelsen píše v St 27. 02. 2008 v 23:46 +0100:

Hello!
> I would like to put that on the wiki if there no objections.
I would like to have your nice HowTo in the wiki.

We could think to develop a script that does the GRASS compilation and
install each time there's a new version out.

Cheers,
Timmie

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

On Wed, Feb 27, 2008 at 11:46 PM, Tim Michelsen
<timmichelsen@gmx-topmail.de> wrote:

Hello!

> I would like to put that on the wiki if there no objections.
I would like to have your nice HowTo in the wiki.

We could think to develop a script that does the GRASS compilation and
install each time there's a new version out.

This is on the (long) TODO list. The idea (one idea) is to use the buildbot
from OSGeo for this purpose (http://wiki.osgeo.org/wiki/BuildBot_Configuration).
I guess we need a volunteer or two for this...

Markus

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?

(attachments)

GRASS_on_Ubuntu7.10.64bit.txt (3.34 KB)

On Thu, 2008-02-28 at 23:15 +0100, Markus Neteler wrote:

On Wed, Feb 27, 2008 at 11:46 PM, Tim Michelsen
<timmichelsen@gmx-topmail.de> wrote:

[...]

>
> We could think to develop a script that does the GRASS compilation and
> install each time there's a new version out.

This is on the (long) TODO list. The idea (one idea) is to use the buildbot
from OSGeo for this purpose (http://wiki.osgeo.org/wiki/BuildBot_Configuration).
I guess we need a volunteer or two for this...

Markus

I could (try to) join this attempt although my knowledge is rather
limited.

hi,
Nikos Alexandris píše v Pá 29. 02. 2008 v 03:53 +0100:

On Wed, 2008-02-27 at 19:11 +0100, Nikos Alexandris wrote:
>
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?

better post it as normal wiki page, rather then attachment

jachym

--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

On Sat, 2008-03-01 at 07:09 +0100, Jachym Cepicky wrote:

better post it as normal wiki page, rather then attachment

o.k.

Finally I realised my arbitrariness to introduce in the wiki the steps
for GRASS' source code compilation with 64-bit support under Ubuntu 7.10
64-bit:

grass.gdf-hannover.de/wiki/Compile_and_Install#Ubuntu_7.10_64-bit