From: Brian P. <br...@va...> - 2001-01-16 00:20:23
|
Gildardo Sanchez-Ante wrote: > > Brian Paul wrote: > > I fixed this after the 3.4 release. Attached is the updated file. > > > > -Brian > > Now i get: > > > gcc -L/usr/local/Mesa/lib mcube.o -o mcube \ > -L../src -lMesaGLw -lGLU -lGL -L/usr/X11R6/lib -lXaw -lXmu -lXext -lXt > -lSM -lICE -lX11 -lm > ../src/libMesaGLw.a(MesaDrawingArea.o): In function `Realize': > MesaDrawingArea.o(.text+0xd6): undefined reference to > `XMesaCreateVisual' > MesaDrawingArea.o(.text+0x10c): undefined reference to > `XMesaCreateContext' > ../src/libMesaGLw.a(MesaDrawingArea.o): In function `Destroy': > MesaDrawingArea.o(.text+0x185): undefined reference to > `XMesaDestroyContext' > MesaDrawingArea.o(.text+0x19e): undefined reference to > `XMesaDestroyVisual' > collect2: ld returned 1 exit status > make[1]: *** [mcube] Error 1 > make[1]: Leaving directory `/usr/local/Mesa/widgets-mesa/demos' Do you have any non-Mesa libGL libraries on your system? My guess is that you're not linking with Mesa's libGL. Try adding a -L option to your gcc command to point to Mesa's libGL directory. You can't use NVIDIA's libGL, nor the XFree86/DRI libGL with this widget. I generally recommend using the standard, SGI widget in Mesa/widgets-sgi/ since it uses the standard GLX interface. -Brian |