[GRASSLIST:2885] Nviz problem & mac

Quim Soler i Subils jsole010 at correu.udg.es
Fri Jan 11 04:48:20 EST 2002


Hello GRASS users,

I've a problem compiling nviz2.2 (grass5.0pre2) on Mac OS X. It fails
when trying to compile the glx's (_TkGLX_Init, _glXChooseVisual,
_glXCreateContext, _glXDestroyContext, _glXGetConfig, _glXMakeCurrent,
_glXQueryExtension, _glXQueryServerString, _glXSwapBuffers, _glXUseXFont).

This is the OpenGL section of my "head.powerpc-apple-darwin1.3.3" file

 #openGL files for NVIZ/r3.showdspf
OPENGLINC = -I/usr/local/include/GL -I/usr/include -I/usr/X11r6/include
OPENGLwINC = -I/usr/local/include/GL -I/usr/include -I/usr/X11R6/include
OPENGLLIB =
-L/system/library/frameworks/opengl.framework/versions/A/libraries -lGL
OPENGLULIB =
-L/system/library/frameworks/opengl.framework/versions/A/libraries -lGLU
 LGLWM = -lGLw
OPENGL32 =

/System/library/frameworks/opengl.framework/versions/A/Libraries is the
path of the directory where de OpenGL libraries on Mac OS live. When I
found this problem I compiled the Mesa libraries (and I put them in
/usr/local/lib) but there was no sucess on compiling nviz.

Do you kwnou what I'am doing wrong? Where must I search these glx
undefined symbols? In OpenGL? Or they are specific of Mesa? I attach the
output of gmake5 (terminal).

About the develpment of a graphic driver for mac os X for Aqua, I would
like to work on it but I'm still learning. So, if nobody works on it, I
would try to do something with this driver and I will join the grass
development list too in order to put my questions there.

 Thank you very much.
Quim
-------------- next part --------------
touch nviz_init.c
cc -O2  -I/gis/grass5sources/src/include -I/usr/X11R6/include -I/usr/local/include -I/usr/local/include -I/gis/grass5sources/src/libes/ogsf  -D_NO_PROTO -D__STDC__ -I/usr/local/include  -I/usr/local/pgsql/include  -c nviz_init.c -o OBJ.powerpc-apple-darwin1.3.3/nviz_init.o
cc  -o nvwish OBJ.powerpc-apple-darwin1.3.3/nvizAppInit.o OBJ.powerpc-apple-darwin1.3.3/change_view.o OBJ.powerpc-apple-darwin1.3.3/draw.o OBJ.powerpc-apple-darwin1.3.3/exag.o OBJ.powerpc-apple-darwin1.3.3/glwrappers.o OBJ.powerpc-apple-darwin1.3.3/init_commands.o OBJ.powerpc-apple-darwin1.3.3/lights.o OBJ.powerpc-apple-darwin1.3.3/map_obj.o OBJ.powerpc-apple-darwin1.3.3/misc.o OBJ.powerpc-apple-darwin1.3.3/nviz_init.o OBJ.powerpc-apple-darwin1.3.3/position.o OBJ.powerpc-apple-darwin1.3.3/quick_draw.o OBJ.powerpc-apple-darwin1.3.3/anim_support.o OBJ.powerpc-apple-darwin1.3.3/cutplane_obj.o OBJ.powerpc-apple-darwin1.3.3/script_support.o OBJ.powerpc-apple-darwin1.3.3/do_zoom.o OBJ.powerpc-apple-darwin1.3.3/togl.o OBJ.powerpc-apple-darwin1.3.3/togl_cb.o OBJ.powerpc-apple-darwin1.3.3/label.o OBJ.powerpc-apple-darwin1.3.3/nvizMain.o OBJ.powerpc-apple-darwin1.3.3/query_postgr.o OBJ.powerpc-apple-darwin1.3.3/openvect.o OBJ.powerpc-apple-darwin1.3.3/getCat.o OBJ.powerpc-apple-darwin1.3.3/buildInfxQry.o OBJ.powerpc-apple-darwin1.3.3/runInfxQry.o /gis/grass5sources/src/libes/ogsf/LIB.powerpc-apple-darwin1.3.3/libgsf.a /gis/grass5sources/src/libes/libimage/LIB.powerpc-apple-darwin1.3.3/libimage.a \
/gis/grass5sources/src/libes/LIB.powerpc-apple-darwin1.3.3/libbitmap.a /gis/grass5sources/src/libes/LIB.powerpc-apple-darwin1.3.3/liblinkm.a /gis/grass5sources/src/libes/LIB.powerpc-apple-darwin1.3.3/libvect.a /gis/grass5sources/src/libes/LIB.powerpc-apple-darwin1.3.3/libdig2.a \
/gis/grass5sources/src/libes/LIB.powerpc-apple-darwin1.3.3/libgis.a  -lz  \
/gis/grass5sources/src/libes/LIB.powerpc-apple-darwin1.3.3/libdatetime.a  -L/usr/local/lib -ltcl8.0 -ltk8.0 -L/system/library/frameworks/opengl.framework/versions/A/libraries  -lGLU -L/system/library/frameworks/opengl.framework/versions/A/libraries  -lGL  -lSM -lICE -lX11 -lXmu -lXext   -lz   -L/usr/X11R6/lib -L/usr/local/pgsql/lib -lpq -ltiff -lSM -lICE -lX11
/usr/bin/ld: Undefined symbols:
_TkGLX_Init
_glXChooseVisual
_glXCreateContext
_glXDestroyContext
_glXGetConfig
_glXMakeCurrent
_glXQueryExtension
_glXQueryServerString
_glXSwapBuffers
_glXUseXFont
/usr/bin/ld: warning unused multiple definitions of symbol _matherr
/usr/local/lib/libtcl8.0.a(tclMtherr.o) definition of _matherr in section (__TEXT,__text)
/usr/lib/libSystem.dylib(s_matherr.o) unused definition of _matherr
/usr/bin/ld: warning unused multiple definitions of symbol _panic
/usr/local/lib/libtcl8.0.a(panic.o) definition of _panic in section (__TEXT,__text)
/usr/lib/libSystem.dylib(panic.o) unused definition of _panic
make[1]: *** [nvwish] Error 1
make: *** [nvwish] Error 2
[localhost:src.contrib/gmsl/nviz2.2] Quim% 


More information about the grass-user mailing list