[GRASS-user] Another error with wxpython GUI in RC6

geep999 geep999 at yahoo.co.uk
Sat Apr 12 05:38:09 EDT 2008


Hi Glynn,

1/ I tried compiling using --with-python=no --with-wxwidgets
But with svn revision 30941 I get:
Errors in:
/home/dad/grass63_release_build/grass63_release/gui/wxpython/vdigit
--
In case of errors please change into the directory with error and run
'make'.

Running make in
/home/dad/grass63_release_build/grass63_release/gui/wxpython/vdigit
gives these errors:
make
c++
-I/home/dad/grass63_release_build/grass63_release/dist.i686-pc-linux-gnu/include    
-fPIC -I/usr/local/include 
-I/usr/local/lib/wx/include/gtk2-unicode-debug-2.8
-I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D__WXDEBUG__ -D__WXGTK__ -pthread   -DPACKAGE=\""grasslibs"\" 
-I/home/dad/grass63_release_build/grass63_release/dist.i686-pc-linux-gnu/include
-o OBJ.i686-pc-linux-gnu/cats.o -c cats.cpp
In file included from cats.cpp:17:
driver.h:23:20: error: Python.h: No such file or directory
In file included from driver.h:24,
                 from cats.cpp:17:
/usr/local/include/wx-2.8/wx/wxPython/pseudodc.h:607: error: ISO C++ forbids
declaration of 'PyObject' with no type
/usr/local/include/wx-2.8/wx/wxPython/pseudodc.h:607: error: expected ';'
before '*' token
/usr/local/include/wx-2.8/wx/wxPython/pseudodc.h:610: error: ISO C++ forbids
declaration of 'PyObject' with no type
/usr/local/include/wx-2.8/wx/wxPython/pseudodc.h:610: error: expected ';'
before '*' token
make: *** [OBJ.i686-pc-linux-gnu/cats.o] Error 1


2/ When I compile svn revision 30941 using both --with-python
--with-wxwidgets
I don't have any compile problems. 

So it seems that to have the wxPython gui I need to have swig installed.

Cheers,

Peter

Glynn Clements wrote:
> 
> 
> Peter Gardner wrote:
> 
>> Hi Martin,
>> I checked out revision 30941.
>> ../configure fails with:
>> checking if system supports Large Files at all... yes
>> checking whether to use Python... yes
>> checking for python-config... /usr/bin/python-config
>> checking for Python.h... yes
>> checking for swig... no
>> configure: error: *** couldn't find swig
>> 
>> Is swig a new dependency?
> 
> --with-python now checks for it.
> 
> Note that you only need to use --with-python if you want to compile
> Python extensions (the Python digitiser module and the Python bindings
> for the GRASS libraries), and that requires SWIG.
> 
> If you just want the wxPython GUI (without the digitiser module), you
> don't need to use --with-python; the GUI code is installed regardless
> (obviously, you need Python and wxPython to actually use it).
> 
> -- 
> Glynn Clements <glynn at gclements.plus.com>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
> 
> 

-- 
View this message in context: http://www.nabble.com/Another-error-with-wxpython-GUI-in-RC6-tp16627913p16648086.html
Sent from the Grass - Users mailing list archive at Nabble.com.



More information about the grass-user mailing list