[GRASS-dev] Errors compiling grass6.4.0RC5 on a 64 bit Ubuntu 9.04 PC

Ferruccio Sarra ferruccio.sarra at tiscali.it
Sun Aug 2 08:36:00 EDT 2009

Hi Martin
This is the make output:

~/grass-6.4.0RC5/gui/wxpython/vdigit$ make
python setup.py build_ext --swig=/usr/bin/swig --swig-opts=-c++ 
--build-lib=OBJ. --build-temp=OBJ.
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 
-I/home/ferruccio/grass-6.4.0RC5/dist./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./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: Nessun file o directory
In file included from driver.h:26,
from cats.cpp:19:
pseudodc.h:608: error: ISO C++ forbids declaration of ‘PyObject’ with no 
pseudodc.h:608: error: expected ‘;’ before ‘*’ token
pseudodc.h:611: error: ISO C++ forbids declaration of ‘PyObject’ with no 
pseudodc.h:611: error: expected ‘;’ before ‘*’ token
error: command 'gcc' failed with exit status 1
make: *** [OBJ./_grass6_wxvdigit.so] Errore 1

Martin Landa ha scritto:
> Hi,
> 2009/8/2 Ferruccio Sarra <ferruccio.sarra at tiscali.it>:
> [...]
>> "nviz" command from terminal  works and opens a  wx look window  asking for
>> input data
> It's unrelated -- TCL/TK NVIZ and wxNVIZ are completely different applications.
>> I can find required modules in the downloaded folder where I compiled grass:
>> ~$ locate grass6_wxvdigit
>> ...
>> /home/ferruccio/grass-6.4.0RC5/gui/wxpython/vdigit/grass6_wxvdigit.i
>> /home/ferruccio/grass-6.4.0RC5/gui/wxpython/vdigit/grass6_wxvdigit.py
>> /home/ferruccio/grass-6.4.0RC5/gui/wxpython/vdigit/grass6_wxvdigit_wrap.cpp
>> ...
> Go to gui/wxpython/vdigit and run `make`. Post to ML full log
> including gcc commands.
> Your Platform.make seems to be OK, I wonder why gcc cannot find
> Python.h even PYTHONINC is OK.
> Martin

More information about the grass-dev mailing list