[GRASS-user] installing grass trunk to jaunty

Compiling from source following:

http://grass.osgeo.org/wiki/Compile_and_Install#Ubuntu

I am somehow stuck here:
./configure --enable-gpl --enable-libvorbis --enable-libtheora \
            --enable-liba52 --enable-libdc1394 --enable-libgsm \
            --enable-libmp3lame --enable-libfaad --enable-libfaac \
            --enable-libxvid --enable-pthreads --enable-libx264 \
            --enable-shared

Unknown option "--enable-liba52".
See ./configure --help for available options.

ps.
in the GRASS dependencies:
I think "bpng12-dev" should be "libpng12-dev"

sudo apt-get install grass build-essential flex bison libncurses5-dev
zlib1g-dev \
libjpeg62-dev libgdal1-dev libtiff4-dev libgcc1 bpng12-dev tcl8.4-dev
tk8.4-dev fftw3-dev \
libfreetype6-dev libavcodec-dev libxmu-dev gdal-bin libreadline5
libreadline5-dev \
make python-dev python-wxversion swig

--
cheers,
maning
------------------------------------------------------
"Freedom is still the most radical idea of all" -N.Branden
wiki: http://esambale.wikispaces.com/
blog: http://epsg4253.wordpress.com/
------------------------------------------------------

hi maning, i haven't been playing so much with it (busy)
but i got grass7 svn work on jaunty

gdal and proj from synaptic

DEPENDENCIES

sudo apt-get install build-essential \
flex \
lesstif2-dev \
libfftw3-dev \
libglu1-mesa-dev \
libglu1-xorg-dev \
libpng12-dev \
libpq-dev \
unixodbc-dev \
doxygen \
libmysqlclient15-dev \
graphviz \
libcairo2-dev \
bison \
libncurses5-dev \
zlib1g-dev \
libjpeg62-dev \
libgdal1-dev \
libtiff4-dev \
libgcc1 \
tcl8.4-dev \
tk8.4-dev \
fftw3-dev \
libfreetype6-dev \
libavcodec-dev \
libxmu-dev \
libreadline5 \
libreadline5-dev \
python2.5-dev \
python-wxversion \
swig \
libwxbase2.8-0 \
libwxbase2.8-dbg \
libwxbase2.8-dev \
libwxgtk2.8-0 \
libwxgtk2.8-dbg \
libwxgtk2.8-dev \
python-wxgtk2.8 \
wx2.8-doc \
wx2.8-examples \
wx2.8-headers \
wx2.8-i18n \
python-numpy \
sqlite3 \
libsqlite3-dev \
python-opengl

svn checkout https://svn.osgeo.org/grass/grass/trunk grass_trunk
(wherever you want...i did it in /usr/local/src)

CFLAGS="-g -Wall" ./configure \
--with-gdal=/usr/local/bin \
-with-tcltk-includes=/usr/include/tcl8.4 \
--with-sqlite \
--with-cxx \
--with-fftw \
--with-freetype=yes \
--with-freetype-includes=/usr/include/freetype2 \
--with-readline \
--with-opengl-includes=/usr/include/GL \
--with-python=/usr/bin/python2.5-config \
--with-wxwidgets=/usr/bin/wx-config \
--enable-largefile=yes \
--with-proj-includes=/usr/include \
--with-proj-share=/usr/share/proj \
--with-proj-libs=/usr/lib

GRASS is now configured for: i686-pc-linux-gnu

  Source directory: /usr/local/src/grass_trunk
  Build directory: /usr/local/src/grass_trunk
  Installation directory: ${prefix}/grass-7.0.svn
  Startup script in directory: ${exec_prefix}/bin
  C compiler: gcc -g -Wall
  C++ compiler: c++ -g -O2
  Building shared libraries: yes
  64bit support: no
  OpenGL platform: X11

  MacOSX application: no

  NVIZ: yes

  BLAS support: no
  C++ support: yes
  Cairo support: yes
  DWG support: no
  FFMPEG support: no
  FFTW support: yes
  FreeType support: yes
  GDAL support: yes
  GEOS support: no
  JPEG support: yes
  LAPACK support: no
  Large File support (LFS): yes
  MySQL support: no
  NLS support: no
  ODBC support: no
  OGR support: yes
  OpenGL support: yes
  PNG support: yes
  PostgreSQL support: no
  Python support: yes
  Readline support: yes
  SQLite support: yes
  Tcl/Tk support: yes
  wxWidgets support: yes
  TIFF support: yes
  X11 support: yes
  Regex support: yes
  POSIX thread support: no

sudo make

Errors in:
No errors detected.
(hopefully :-))

sudo make install

this is what i did (indeed you can change parameters in ./configure)
....btw community, AM I RIGHT?...did i miss something or include to
much? :slight_smile: (suggestion appreciated)

another question:
what do i have to do exactly to update?

svn up
./configure (including the same parameters of the previous
installation?)
make
make install (again?)

..or there is another way to do it?

cheers,
mitch

On Thu, 2009-04-30 at 01:28 +0800, maning sambale wrote:

Compiling from source following:

http://grass.osgeo.org/wiki/Compile_and_Install#Ubuntu

I am somehow stuck here:
./configure --enable-gpl --enable-libvorbis --enable-libtheora \
            --enable-liba52 --enable-libdc1394 --enable-libgsm \
            --enable-libmp3lame --enable-libfaad --enable-libfaac \
            --enable-libxvid --enable-pthreads --enable-libx264 \
            --enable-shared

Unknown option "--enable-liba52".
See ./configure --help for available options.

ps.
in the GRASS dependencies:
I think "bpng12-dev" should be "libpng12-dev"

sudo apt-get install grass build-essential flex bison libncurses5-dev
zlib1g-dev \
libjpeg62-dev libgdal1-dev libtiff4-dev libgcc1 bpng12-dev tcl8.4-dev
tk8.4-dev fftw3-dev \
libfreetype6-dev libavcodec-dev libxmu-dev gdal-bin libreadline5
libreadline5-dev \
make python-dev python-wxversion swig

On Wed, Apr 29, 2009 at 7:28 PM, maning sambale
<emmanuel.sambale@gmail.com> wrote:

Compiling from source following:

http://grass.osgeo.org/wiki/Compile_and_Install#Ubuntu

I am somehow stuck here:
./configure --enable-gpl --enable-libvorbis --enable-libtheora \
--enable-liba52 --enable-libdc1394 --enable-libgsm \
--enable-libmp3lame --enable-libfaad --enable-libfaac \
--enable-libxvid --enable-pthreads --enable-libx264 \
--enable-shared

Unknown option "--enable-liba52".
See ./configure --help for available options.

ps.
in the GRASS dependencies:
I think "bpng12-dev" should be "libpng12-dev"

sudo apt-get install grass build-essential flex bison libncurses5-dev
zlib1g-dev \
libjpeg62-dev libgdal1-dev libtiff4-dev libgcc1 bpng12-dev tcl8.4-dev
tk8.4-dev fftw3-dev \
libfreetype6-dev libavcodec-dev libxmu-dev gdal-bin libreadline5
libreadline5-dev \
make python-dev python-wxversion swig

If the modification works for you and the Wiki page not, please
update in the Wiki...

Markus

On Thu, 2009-04-30 at 01:28 +0800, maning sambale wrote:

Compiling from source following:

http://grass.osgeo.org/wiki/Compile_and_Install#Ubuntu

I am somehow stuck here:
./configure --enable-gpl --enable-libvorbis --enable-libtheora \
            --enable-liba52 --enable-libdc1394 --enable-libgsm \
            --enable-libmp3lame --enable-libfaad --enable-libfaac \
            --enable-libxvid --enable-pthreads --enable-libx264 \
            --enable-shared

Unknown option "--enable-liba52".
See ./configure --help for available options.

ps.
in the GRASS dependencies:
I think "bpng12-dev" should be "libpng12-dev"

sudo apt-get install grass build-essential flex bison libncurses5-dev
zlib1g-dev \
libjpeg62-dev libgdal1-dev libtiff4-dev libgcc1 bpng12-dev tcl8.4-dev
tk8.4-dev fftw3-dev \
libfreetype6-dev libavcodec-dev libxmu-dev gdal-bin libreadline5
libreadline5-dev \
make python-dev python-wxversion swig

Hi Manning!

These instructions were for Ubuntu 7.10 and not for Jaunty. Of course,
there might be a typo but, as far as I remember, I've used them directly
back then (copy-paste from the wiki) and they worked.

Anyhow, IMHO, for Jaunty a new section should be started.

Regards, Nikos

mitch:

[...]

---%<---

another question:
what do i have to do exactly to update?

svn up
./configure

# also very important to avoid loosing time and stress:
# 3. clean previous configuration, then the rest
sudo make clean

make
make install (again?)

Yes. However, note that the installation needs super-user rights under
Ubuntu, e.g.:
sudo make install

..or there is another way to do it?

Some people don't install. Instead they use the compiled code (=binaries) directly from the source directory.

Best regards, Nikos

---%<---

# also very important to avoid loosing time and stress:
# 3. clean previous configuration, then the rest
sudo make clean

---%<---

Sorry, this is better done with:
sudo make distclean

On Thu, 2009-04-30 at 01:43 +0200, Nikos Alexandris wrote:

---%<---
> # also very important to avoid loosing time and stress:
> # 3. clean previous configuration, then the rest
> sudo make clean
---%<---

Sorry, this is better done with:
sudo make distclean

Got it.

Sorry, forgot to mention the super-user in the commands.

Cheers,
mitch

mitch,

This works for me without a hitch! thanks!

On Thu, Apr 30, 2009 at 3:53 AM, mitch <reflexeos@yahoo.it> wrote:

hi maning, i haven't been playing so much with it (busy)
but i got grass7 svn work on jaunty

gdal and proj from synaptic

DEPENDENCIES

sudo apt-get install build-essential \
flex \
lesstif2-dev \
libfftw3-dev \
libglu1-mesa-dev \
libglu1-xorg-dev \
libpng12-dev \
libpq-dev \
unixodbc-dev \
doxygen \
libmysqlclient15-dev \
graphviz \
libcairo2-dev \
bison \
libncurses5-dev \
zlib1g-dev \
libjpeg62-dev \
libgdal1-dev \
libtiff4-dev \
libgcc1 \
tcl8.4-dev \
tk8.4-dev \
fftw3-dev \
libfreetype6-dev \
libavcodec-dev \
libxmu-dev \
libreadline5 \
libreadline5-dev \
python2.5-dev \
python-wxversion \
swig \
libwxbase2.8-0 \
libwxbase2.8-dbg \
libwxbase2.8-dev \
libwxgtk2.8-0 \
libwxgtk2.8-dbg \
libwxgtk2.8-dev \
python-wxgtk2.8 \
wx2.8-doc \
wx2.8-examples \
wx2.8-headers \
wx2.8-i18n \
python-numpy \
sqlite3 \
libsqlite3-dev \
python-opengl

svn checkout https://svn.osgeo.org/grass/grass/trunk grass_trunk
(wherever you want...i did it in /usr/local/src)

CFLAGS="-g -Wall" ./configure \
--with-gdal=/usr/local/bin \
-with-tcltk-includes=/usr/include/tcl8.4 \
--with-sqlite \
--with-cxx \
--with-fftw \
--with-freetype=yes \
--with-freetype-includes=/usr/include/freetype2 \
--with-readline \
--with-opengl-includes=/usr/include/GL \
--with-python=/usr/bin/python2.5-config \
--with-wxwidgets=/usr/bin/wx-config \
--enable-largefile=yes \
--with-proj-includes=/usr/include \
--with-proj-share=/usr/share/proj \
--with-proj-libs=/usr/lib

GRASS is now configured for: i686-pc-linux-gnu

Source directory: /usr/local/src/grass_trunk
Build directory: /usr/local/src/grass_trunk
Installation directory: ${prefix}/grass-7.0.svn
Startup script in directory: ${exec_prefix}/bin
C compiler: gcc -g -Wall
C++ compiler: c++ -g -O2
Building shared libraries: yes
64bit support: no
OpenGL platform: X11

MacOSX application: no

NVIZ: yes

BLAS support: no
C++ support: yes
Cairo support: yes
DWG support: no
FFMPEG support: no
FFTW support: yes
FreeType support: yes
GDAL support: yes
GEOS support: no
JPEG support: yes
LAPACK support: no
Large File support (LFS): yes
MySQL support: no
NLS support: no
ODBC support: no
OGR support: yes
OpenGL support: yes
PNG support: yes
PostgreSQL support: no
Python support: yes
Readline support: yes
SQLite support: yes
Tcl/Tk support: yes
wxWidgets support: yes
TIFF support: yes
X11 support: yes
Regex support: yes
POSIX thread support: no

sudo make

Errors in:
No errors detected.
(hopefully :-))

sudo make install

this is what i did (indeed you can change parameters in ./configure)
....btw community, AM I RIGHT?...did i miss something or include to
much? :slight_smile: (suggestion appreciated)

another question:
what do i have to do exactly to update?

svn up
./configure (including the same parameters of the previous
installation?)
make
make install (again?)

..or there is another way to do it?

cheers,
mitch

On Thu, 2009-04-30 at 01:28 +0800, maning sambale wrote:

Compiling from source following:

http://grass.osgeo.org/wiki/Compile_and_Install#Ubuntu

I am somehow stuck here:
./configure --enable-gpl --enable-libvorbis --enable-libtheora \
--enable-liba52 --enable-libdc1394 --enable-libgsm \
--enable-libmp3lame --enable-libfaad --enable-libfaac \
--enable-libxvid --enable-pthreads --enable-libx264 \
--enable-shared

Unknown option "--enable-liba52".
See ./configure --help for available options.

ps.
in the GRASS dependencies:
I think "bpng12-dev" should be "libpng12-dev"

sudo apt-get install grass build-essential flex bison libncurses5-dev
zlib1g-dev \
libjpeg62-dev libgdal1-dev libtiff4-dev libgcc1 bpng12-dev tcl8.4-dev
tk8.4-dev fftw3-dev \
libfreetype6-dev libavcodec-dev libxmu-dev gdal-bin libreadline5
libreadline5-dev \
make python-dev python-wxversion swig

--
cheers,
maning
------------------------------------------------------
"Freedom is still the most radical idea of all" -N.Branden
wiki: http://esambale.wikispaces.com/
blog: http://epsg4253.wordpress.com/
------------------------------------------------------

On Fri, 2009-05-01 at 15:17 +0800, maning sambale wrote:

mitch,

This works for me without a hitch! thanks!

sure...anytime!

Now I have a problem though:
I was curious and I updated to revision 36943.

I had a couple of errors in compilation

Errors in:
/usr/local/src/grass_trunk/gui/wxpython/vdigit
/usr/local/src/grass_trunk/gui/wxpython/nviz

make in those folders didn't work.

I remember that I updated from python2.5 to 2.6
(and this sounds like a python problem, doesn't it?)

The update manager didn't install python2.6-dev
so I did it manually and changed the configure parameter
from --with-python=/usr/bin/python2.5-config
to --with-python=/usr/bin/python2.6-config

now it compiles (although the shell reads many "warning messages"
and it kind of gets stuck on NVIZ and VDIGIT)

and I end up with:

Errors in:
No errors detected.

..I can install it but NVIZ and VDIGIT don't work!
..well...they don't work well:
NVIZ starts but when I drag the display window it goes blank.

The shell reads:

GRASS 7.0.svn (nc_spm_08):/usr/local/src/grass_trunk > get fences
failed: -1
param: 6, val: 0

Any idea of why does this happen?

cheers,
mitch.

On Thu, Apr 30, 2009 at 3:53 AM, mitch <reflexeos@yahoo.it> wrote:
> hi maning, i haven't been playing so much with it (busy)
> but i got grass7 svn work on jaunty
>
> gdal and proj from synaptic
>
>
> DEPENDENCIES
>
>
> sudo apt-get install build-essential \
> flex \
> lesstif2-dev \
> libfftw3-dev \
> libglu1-mesa-dev \
> libglu1-xorg-dev \
> libpng12-dev \
> libpq-dev \
> unixodbc-dev \
> doxygen \
> libmysqlclient15-dev \
> graphviz \
> libcairo2-dev \
> bison \
> libncurses5-dev \
> zlib1g-dev \
> libjpeg62-dev \
> libgdal1-dev \
> libtiff4-dev \
> libgcc1 \
> tcl8.4-dev \
> tk8.4-dev \
> fftw3-dev \
> libfreetype6-dev \
> libavcodec-dev \
> libxmu-dev \
> libreadline5 \
> libreadline5-dev \
> python2.5-dev \
> python-wxversion \
> swig \
> libwxbase2.8-0 \
> libwxbase2.8-dbg \
> libwxbase2.8-dev \
> libwxgtk2.8-0 \
> libwxgtk2.8-dbg \
> libwxgtk2.8-dev \
> python-wxgtk2.8 \
> wx2.8-doc \
> wx2.8-examples \
> wx2.8-headers \
> wx2.8-i18n \
> python-numpy \
> sqlite3 \
> libsqlite3-dev \
> python-opengl
>
>
> svn checkout https://svn.osgeo.org/grass/grass/trunk grass_trunk
> (wherever you want...i did it in /usr/local/src)
>
>
>
> CFLAGS="-g -Wall" ./configure \
> --with-gdal=/usr/local/bin \
> -with-tcltk-includes=/usr/include/tcl8.4 \
> --with-sqlite \
> --with-cxx \
> --with-fftw \
> --with-freetype=yes \
> --with-freetype-includes=/usr/include/freetype2 \
> --with-readline \
> --with-opengl-includes=/usr/include/GL \
> --with-python=/usr/bin/python2.5-config \
> --with-wxwidgets=/usr/bin/wx-config \
> --enable-largefile=yes \
> --with-proj-includes=/usr/include \
> --with-proj-share=/usr/share/proj \
> --with-proj-libs=/usr/lib
>
>
>
>
> GRASS is now configured for: i686-pc-linux-gnu
>
> Source directory: /usr/local/src/grass_trunk
> Build directory: /usr/local/src/grass_trunk
> Installation directory: ${prefix}/grass-7.0.svn
> Startup script in directory: ${exec_prefix}/bin
> C compiler: gcc -g -Wall
> C++ compiler: c++ -g -O2
> Building shared libraries: yes
> 64bit support: no
> OpenGL platform: X11
>
> MacOSX application: no
>
> NVIZ: yes
>
> BLAS support: no
> C++ support: yes
> Cairo support: yes
> DWG support: no
> FFMPEG support: no
> FFTW support: yes
> FreeType support: yes
> GDAL support: yes
> GEOS support: no
> JPEG support: yes
> LAPACK support: no
> Large File support (LFS): yes
> MySQL support: no
> NLS support: no
> ODBC support: no
> OGR support: yes
> OpenGL support: yes
> PNG support: yes
> PostgreSQL support: no
> Python support: yes
> Readline support: yes
> SQLite support: yes
> Tcl/Tk support: yes
> wxWidgets support: yes
> TIFF support: yes
> X11 support: yes
> Regex support: yes
> POSIX thread support: no
>
>
>
> sudo make
>
>
> Errors in:
> No errors detected.
> (hopefully :-))
>
> sudo make install
>
>
> this is what i did (indeed you can change parameters in ./configure)
> ....btw community, AM I RIGHT?...did i miss something or include to
> much? :slight_smile: (suggestion appreciated)
>
>
> another question:
> what do i have to do exactly to update?
>
> svn up
> ./configure (including the same parameters of the previous
> installation?)
> make
> make install (again?)
>
> ..or there is another way to do it?
>
>
> cheers,
> mitch
>
>
>
> On Thu, 2009-04-30 at 01:28 +0800, maning sambale wrote:
>> Compiling from source following:
>>
>> http://grass.osgeo.org/wiki/Compile_and_Install#Ubuntu
>>
>> I am somehow stuck here:
>> ./configure --enable-gpl --enable-libvorbis --enable-libtheora \
>> --enable-liba52 --enable-libdc1394 --enable-libgsm \
>> --enable-libmp3lame --enable-libfaad --enable-libfaac \
>> --enable-libxvid --enable-pthreads --enable-libx264 \
>> --enable-shared
>>
>> Unknown option "--enable-liba52".
>> See ./configure --help for available options.
>>
>>
>> ps.
>> in the GRASS dependencies:
>> I think "bpng12-dev" should be "libpng12-dev"
>>
>> sudo apt-get install grass build-essential flex bison libncurses5-dev
>> zlib1g-dev \
>> libjpeg62-dev libgdal1-dev libtiff4-dev libgcc1 bpng12-dev tcl8.4-dev
>> tk8.4-dev fftw3-dev \
>> libfreetype6-dev libavcodec-dev libxmu-dev gdal-bin libreadline5
>> libreadline5-dev \
>> make python-dev python-wxversion swig
>>
>>
>
>