[GRASS-dev] trying to compile wxPython NVIZ
William Kyngesburye
woklist at kyngchaos.com
Tue Jul 15 23:36:30 EDT 2008
On Jul 15, 2008, at 10:21 PM, Michael Barton wrote:
> On Jul 15, 2008, at 2:18 AM, Glynn Clements wrote:
>
>> FWIW, I have made some changes to lib/nviz/render.c to get it to
>> compile on Windows, which may also help on OSX (there were some
>> X-specific portions which weren't conditionalised).
>>
>> It doesn't work on Windows yet (G_malloc() fails), but I don't have a
>> native version of GDB installed, so I haven't looked into it any
>> further.
>
> Glynn and Martin,
>
> I tried this out on my Mac. It still doesn't compile, but it gets
> different errors this time.
>
> Michael
>
> cmb-MBP-2:grass7_src cmbarton$ cd ./lib/nviz
> cmb-MBP-2:nviz cmbarton$ make
> cc -dynamiclib -compatibility_version 7.0 -current_version 7.0 -
> install_name
> L/Library/Frameworks/GDAL.framework/Versions/1.5/unix/lib -lgdal -L/
> usr/X11/lib -L/usr/X11R6/lib -lGL -L/usr/X11R6/lib -lGLU -
> Undefined symbols:
> "_XOpenDisplay", referenced from:
> _Nviz_create_render_window in render.o
> "_XFreePixmap", referenced from:
> _Nviz_destroy_render_window in render.o
> "_XCreatePixmap", referenced from:
> _Nviz_create_render_window in render.o
> "_XFree", referenced from:
> _Nviz_create_render_window in render.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make: *** [/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-
> darwin9.4.0/lib/libgrass_nviz.7.0.svn.dylib] Error 1
>
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.
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
[Trillian] What are you supposed to do WITH a maniacally depressed
robot?
[Marvin] You think you have problems? What are you supposed to do if
you ARE a maniacally depressed robot? No, don't try and answer, I'm
50,000 times more intelligent than you and even I don't know the
answer...
- HitchHiker's Guide to the Galaxy
More information about the grass-dev
mailing list