You are not logged in.
http://www.sgi.com/products/software/op … rce/abgr.c
this is the first glut example
see last post
Can anyone tell what's wrong?
Offline
You forgot to link to several libraries, like libGL, libglut, libX11, etc.
Offline
hey Indan.
$ gcc abgr.c -L/usr/X11R6/lib -lGL -lX11 -lGLU -lglut
still says:
/usr/X11R6/lib/libglut.so: undefined reference to `XGetExtensionVersion'
/usr/X11R6/lib/libglut.so: undefined reference to `XFreeDeviceList'
/usr/X11R6/lib/libglut.so: undefined reference to `XQueryDeviceState'
/usr/X11R6/lib/libglut.so: undefined reference to `XListInputDevices'
/usr/X11R6/lib/libglut.so: undefined reference to `XFreeDeviceState'
/usr/X11R6/lib/libglut.so: undefined reference to `XOpenDevice'
/usr/X11R6/lib/libglut.so: undefined reference to `XmuLookupStandardColormap'
/usr/X11R6/lib/libglut.so: undefined reference to `XSelectExtensionEvent'
Offline
libXext perhaps...
Offline
libXext perhaps...
no but thanks I did
nm -Bog /usr/X11R6/lib/*.so | grep XGetExtensionVersion
and got:
/usr/X11R6/lib/libXi.so:000037f0 T XGetExtensionVersion
/usr/X11R6/lib/libglut.so: U XGetExtensionVersion
adding -lXi sovled the issue
Offline
Typo, you seem to have used -lxi instead of -lXi.
(This thread is more than a couple of days old, nice understatement. But that means you probably used the search function, hurray)
Offline
Oh, ok, I was trying -lxi as well as -lXi. Doesn't make any difference. Doing some googling I found out that on a regular distro I would have to reinstall the x-development-packages which obviously can't be the solution with Arch. So I'm still stuck. Any hints are greatly appreciated.
'cuda
the development packages are there... and ld.so.conf and ldconfig have nothing to do with compiling....
if you want libXi and it exists on your system, you need to add the proper path...
gcc -L/usr/X11R6/lib -lXi ${other_params}
Offline