[GRASS-dev] Errors compiling grass6.4.0RC5 on a 64 bit Ubuntu
9.04 PC
Ferruccio Sarra
ferruccio.sarra at tiscali.it
Tue Aug 4 05:36:53 EDT 2009
Hi,
thank you both for your quick replying.
Glynn Clements ha scritto:
> 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).
>>
Yes ARCH variable in platform.make is empty(!) and I can't imagine why.
>>
>>> 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.
>
I found these setup.py ... but don't know which one is responsable for
vdigit compilation
~/.../gui/wxpython/vdigit/setup.py
~$ locate 'distutils/setup.py'
/usr/lib/python2.5/site-packages/numpy/distutils/setup.py
/usr/lib/python2.5/site-packages/numpy/distutils/setup.pyc
/usr/lib/python2.6/dist-packages/numpy/distutils/setup.py
/usr/lib/python2.6/dist-packages/numpy/distutils/setup.pyc
/usr/share/pyshared/numpy/distutils/setup.py
~$
I wonder (should I :-) whether a conflict between different python
versions is a possible cause of the wrong include directroy.
1. My configure 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/include/python2.5/
--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 --with-ffmpeg
--with-ffmpeg-includes=/usr/include/ffmpeg
2.
~$ dpkg -l|grep python2.5
ii python2.5
2.5.4-1ubuntu4 An
interactive high-level object-oriented la
ii python2.5-dev
2.5.4-1ubuntu4 Header files
and a static library for Python
ii python2.5-minimal
2.5.4-1ubuntu4 A minimal
subset of the Python language (ver
~$
3.
~$ dpkg -l|grep python2.6
ii libpython2.6
2.6.2-0ubuntu1 Shared Python
runtime library (version 2.6)
ii python2.6
2.6.2-0ubuntu1 An
interactive high-level object-oriented la
ii python2.6-dbg
2.6.2-0ubuntu1 Debug Build
of the Python Interpreter (versi
ii python2.6-minimal
2.6.2-0ubuntu1 A minimal
subset of the Python language (ver
~$
4.
~$ python --version
Python 2.6.2
More information about the grass-dev
mailing list