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

Glynn Clements glynn at gclements.plus.com
Sun Aug 2 13:24:40 EDT 2009


Martin Landa wrote:

> > ~/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.
> 
> 'OBJ.' is wrong, $(ARCH) variable seems to be empty (defined in Platform.make).
> 
> > 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/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
> 
> I don't see -I/usr/include/python25 even it's defined in PYTHONINC - strange...

vdigit/Makefile uses setup.py, so it ignores the configure options; it
relies upon the distutils package in the installed python.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list