[GRASS-dev] trying to compile wxPython NVIZ

Martin Landa landa.martin at gmail.com
Wed Jul 16 10:18:28 EDT 2008


Hi,

2008/7/16 William Kyngesburye <woklist at kyngchaos.com>:
> I got further now.  By ignoring render.c, libnviz compiles.

render.c is just needed for nviz CLI module, in the future we need to
make working also off-screen rendering on Mac.

> Now I'm in wxpython/nviz.  I see that there is still the nviz header include
> order problem here.  In wxpython nviz.h, the order should be:
>
> extern "C" {
> #include <grass/gis.h>
> #include <grass/nviz.h>
> #include <grass/gsurf.h>
> #include <grass/gstypes.h>
> }
>
>
> And I see one in nviz.i:
>
> %{
> #include "nviz.h"
> #include <grass/gsurf.h>
> #include <grass/gstypes.h>
> %}
>
>
> Now I get an error in the swig wrapper:
>
> c++ -I/Users/Shared/src/GRASS/svn/trunk/dist.i386-apple-darwin9.3.0/include
>  -Os   -fno-common -I/Library/Frameworks/GDAL.framework/Versions/1.5/Headers
> -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
> -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
> -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
> -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DMACOSX
> -I/usr/include/ffi -DENABLE_DTRACE
> -I/usr/lib/wx/include/mac-unicode-debug-2.8 -I/usr/include/wx-2.8
> -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXMAC__
>  -DPACKAGE=\""grasslibs"\"
>  -I/Users/Shared/src/GRASS/svn/trunk/dist.i386-apple-darwin9.3.0/include -o
> OBJ.i386-apple-darwin9.3.0/grass7_wxnviz_wrap.o -c grass7_wxnviz_wrap.cpp
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
> C/ObjC but not for C++
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:49: warning: 'AGLDrawable' is
> deprecated (declared at
> /System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:53: warning: 'AGLDrawable' is
> deprecated (declared at
> /System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
> grass7_wxnviz_wrap.cpp:3165: error: expected unqualified-id before '{' token
> grass7_wxnviz_wrap.cpp:3173: error: expected unqualified-id before '{' token
> grass7_wxnviz_wrap.cpp:3180: error: expected unqualified-id before '{' token
> grass7_wxnviz_wrap.cpp:3241: error: expected unqualified-id before '{' token
> grass7_wxnviz_wrap.cpp:3781: error: expected unqualified-id before '{' token
> grass7_wxnviz_wrap.cpp: In static member function 'static int
> swig::traits_asptr_stdseq<Seq, T>::asptr(PyObject*, Seq**)':
> grass7_wxnviz_wrap.cpp:3889: error: expected unqualified-id before '?' token
> make: *** [OBJ.i386-apple-darwin9.3.0/grass7_wxnviz_wrap.o] Error 1

Hm, I am using the save version of swig (Linux box)...

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *


More information about the grass-dev mailing list