libGLw misbuilt
libGLw misbuilt
- Subject: libGLw misbuilt
- From: Jack Howarth <email@hidden>
- Date: Wed, 7 Nov 2007 10:13:16 -0500
I've filed a radar report (5563698) that libGLw.dylib can not be linked under Leopard.
The problem is that the symbol _GLwCreateMDrawingArea is missing from libGLw.dylib. Peter
O'Gorman has pointed out the likely cause as...
#ifdef __GLX_MOTIF
#ifdef _NO_PROTO
GLAPI Widget GLwCreateMDrawingArea();
#else
GLAPI Widget GLwCreateMDrawingArea(Widget parent,char *name,ArgList
arglist,Cardinal argcount);
#endif
#endif
...in /usr/X11R6/include/GL/GLwDrawA.h resulting in an undefined GLwCreateMDrawingArea
symbol in the libGLw shared library.
Jack
ps A simple example to demonstrate this problem is opensolar.c at...
http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi/0650/bks/SGI_Developer/books/OpenGL_Porting/sgi_html/ape.html
...compiled with the fink openmotif3 package installed and using the build command...
gcc -I/usr/include -I/usr/X11R6/include -I/sw/include opensolar.c -L/sw/lib -L/usr/X11R6/lib -lXm -lGLU -lGL -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -lGLw -lX11 -lXext -lXt -lm
...which produces the compilation error of...
Undefined symbols:
"_GLwCreateMDrawingArea", referenced from:
_main in ccbR1N5C.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden