[GRASS-dev] Errors compiling grass6.4.0RC5 on a 64 bit Ubuntu 9.04
PC
Ferruccio Sarra
ferruccio.sarra at tiscali.it
Fri Jul 31 15:23:08 EDT 2009
Hi all.
I've been trying to compile grass6.4.0RC5 on my 64 bit Ubuntu 9.04 but
can't overcome some troubles.
From "error.log":
/home/ferruccio/Scrivania/grass-6.4.0RC5/gui/wxpython/vdigit
/home/ferruccio/Scrivania/grass-6.4.0RC5/gui/wxpython/nviz
My configuration options:
./configure --with-tcltk-includes=/usr/include/tcl8.5/
--with-opengl-includes=/usr/include/GL/ --enable-shared --with-cxx
--with-postgres --with-postgres-includes=/usr/include/postgresql/
--with-sqlite --with-odbc --with-python=/usr/bin/python2.5-config
--enable-largefile --with-x --with-motif --with-cairo --with-freetype
--with-nls --with-freetype-includes=/usr/include/freetype2/
--with-wxwidgets=/usr/bin/wx-config --enable-64bit
--with-libs=/usr/lib64 --with-curses --with-proj-libs=/usr/local/lib/
--with-proj-share=/usr/share/proj
"Make" output in vdigit directory:
.../grass-6.4.0RC5/gui/wxpython/vdigit$ make
python setup.py build_ext --swig=/usr/bin/swig --swig-opts=-c++
--build-lib=OBJ.x86_64-unknown-linux-gnu
--build-temp=OBJ.x86_64-unknown-linux-gnu
running build_ext
building '_grass6_wxvdigit' extension
swigging grass6_wxvdigit.i to grass6_wxvdigit_wrap.cpp
/usr/bin/swig -python -c++ -o grass6_wxvdigit_wrap.cpp grass6_wxvdigit.i
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPACKAGE="grasslibs" -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -D__WXGTK__
-I/home/ferruccio/Scrivania/grass-6.4.0RC5/dist.x86_64-unknown-linux-gnu/include
-I/usr/include/gdal -I/usr/lib/wx/include/gtk2-unicode-release-2.8
-I/usr/include/wx-2.8 -I/usr/include/python2.6 -c cats.cpp -o
OBJ.x86_64-unknown-linux-gnu/cats.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
In file included from cats.cpp:19:
driver.h:25:20: error: Python.h: No file or directory
In file included from driver.h:26,
from cats.cpp:19:
pseudodc.h:608: error: ISO C++ forbids declaration of ‘PyObject’ with no
type
pseudodc.h:608: error: expected ‘;’ before ‘*’ token
pseudodc.h:611: error: ISO C++ forbids declaration of ‘PyObject’ with no
type
pseudodc.h:611: error: expected ‘;’ before ‘*’ token
error: command 'gcc' failed with exit status 1
make: *** [OBJ.x86_64-unknown-linux-gnu/_grass6_wxvdigit.so] Error 1
.../grass-6.4.0RC5/gui/wxpython/vdigit$
"Make" output in nviz directory:
...grass-6.4.0RC5/gui/wxpython/nviz$ make
python setup.py build_ext --swig=/usr/bin/swig --swig-opts=-c++
--build-lib=OBJ.x86_64-unknown-linux-gnu
--build-temp=OBJ.x86_64-unknown-linux-gnu
running build_ext
building '_grass6_wxnviz' extension
swigging grass6_wxnviz.i to grass6_wxnviz_wrap.cpp
/usr/bin/swig -python -c++ -o grass6_wxnviz_wrap.cpp grass6_wxnviz.i
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPACKAGE="grasslibs" -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -D__WXGTK__
-I/home/ferruccio/Scrivania/grass-6.4.0RC5/dist.x86_64-unknown-linux-gnu/include
-I/usr/include/gdal -I/usr/lib/wx/include/gtk2-unicode-release-2.8
-I/usr/include/wx-2.8 -I/usr/include/GL/ -I/usr/include/python2.6 -c
change_view.cpp -o OBJ.x86_64-unknown-linux-gnu/change_view.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
In file included from change_view.cpp:15:
nviz.h:28:20: error: Python.h: Nessun file o directory
In file included from change_view.cpp:15:
nviz.h:46: error: expected `)' before ‘*’ token
error: command 'gcc' failed with exit status 1
make: *** [OBJ.x86_64-unknown-linux-gnu/_grass6_wxnviz.so] Errore 1
.../grass-6.4.0RC5/gui/wxpython/nviz$
wxNviz doesn't work.
Probably it's a trivial issue but can't find nothing useful both in
mailing-list archives and in the compilation notes in the wiki.
Any suggestion.
Thank you.
Ferruccio
More information about the grass-dev
mailing list