[GRASS-dev] trying to compile wxPython NVIZ
Michael Barton
michael.barton at asu.edu
Wed Jul 16 00:30:57 EDT 2008
On Jul 15, 2008, at 8:36 PM, William Kyngesburye wrote:
> As I mentionaed a while back, for the nviz library to operate
> cleanly with wxpython, which is "Aqua", or AGL-based, you should
> configure OpenGL for Aqua, not X11. This means you should also
> disable X11 and TclTk features, or you will get some header
> confusion for OpenGL. Something like:
>
> --without-tcltk --without-x --without-motif --without-glw --with-
> opengl=aqua
>
> But, when I do this I get:
>
> gcc -I/Users/Shared/src/GRASS/svn/trunk/dist.i386-apple-darwin9.3.0/
> include -Os -fno-common -DPACKAGE=\""grasslibs"\" -I/Library/
> Frameworks/GDAL.framework/Versions/1.5/Headers -DPACKAGE=
> \""grasslibs"\" -I/System/Library/Frameworks/OpenGL.framework/
> Headers -I/Library/Frameworks/UnixImageIO.framework/unix/include -I/
> Users/Shared/unix/ffmpeg-leo/include/ffmpeg -I/Users/Shared/src/
> GRASS/svn/trunk/dist.i386-apple-darwin9.3.0/include -o OBJ.i386-
> apple-darwin9.3.0/change_view.o -c change_view.c
> In file included from change_view.c:20:
> /Users/Shared/src/GRASS/svn/trunk/dist.i386-apple-darwin9.3.0/
> include/grass/nviz.h:120: error: syntax error before ‘AGLPixelFmtID’
> /Users/Shared/src/GRASS/svn/trunk/dist.i386-apple-darwin9.3.0/
> include/grass/nviz.h:120: warning: no semicolon at end of struct or
> union
> /Users/Shared/src/GRASS/svn/trunk/dist.i386-apple-darwin9.3.0/
> include/grass/nviz.h:122: error: syntax error before ‘windowId’
> /Users/Shared/src/GRASS/svn/trunk/dist.i386-apple-darwin9.3.0/
> include/grass/nviz.h:122: warning: data definition has no type or
> storage class
> /Users/Shared/src/GRASS/svn/trunk/dist.i386-apple-darwin9.3.0/
> include/grass/nviz.h:129: error: syntax error before ‘}’ token
> make[2]: *** [OBJ.i386-apple-darwin9.3.0/change_view.o] Error 1
>
>
> It seems to be some AGL programming issue.
I get this too if I get rid of all references to x11 and x11 TclTk in
the configure script, and add --without-x and with-opengl=aqua
--without-glw and --without-motif are default and don't need to be
explicitly added.
It seems like this is getting closer to compiling on a Mac for testing.
Have you tried to compile with aqua tcltk 8.5.1 in the new OS X
10.5.4? I thought I'd try it and see what happens.
Michael
More information about the grass-dev
mailing list