Re: Compiling OpenGL apps for Nvidia
Are you using the nvidia openGL libs? if so, your problem is likely that
you are using nvidia libs, and mesa headers. There should be some headers
in the nvidia_glx download, you should use those instead of the current
headers and the problem should clear up. If there are no headers in that
tarball, try SGI's openGL sdk headers, nVidia licenses its openGL
implementation from SGI (this is also the reason the drivers are not fully
opensource, they cant release the stuff licensed from SGI), that might
work.
you can try the program 'strings' (strings lib.o) to list any strigns in
the liberary, and you will get the functions, and a lot of unwanted stuff
as well, dont know how usefull that wuold actually be if the compiler is
mangling names.
On Mon, 15 Jan 2001, Romain Lerallut wrote:
> Hi all!
>
> I'm using an nvidia card and I have a problem with compiling OpenGL apps
> with it:
>
> cc -o origami origami.o -L../libglut -L/usr/X11R6/lib -L/usr/lib
> -L/home/romain/OpenGL/opengl_for_x/glut/libglut -lglut -lGL -lGLU -lXmu
> -lXext -lX11 -lm
> origami.o: In function `display':
> origami.o(.text+0x655): undefined reference to `glPolygonOffsetEXT'
> origami.o(.text+0x6ac): undefined reference to `glPolygonOffsetEXT'
> collect2: ld returned 1 exit status
>
> Hint:
> the prototype for glPolygonOffsetExt is in /usr/include/GL/gl.h but the
> file header starts with
>
> /*
> * Mesa 3-D graphics library
> * Version: 3.4
> */
> which seems suspicious.
>
> any ideas ? (the drivers downloaded from nvidia don't have any
> opengl-related header file)
>
> Related question:
> how can I list the functions defined in a given .o (resp .a, .so ) ?
>
> Thanks for any clue
> (free jpeg screenshot from my open gl flight sim for the five first
> answers :)
> Romain
>
>
>
>
> PS: my /usr/lib/libGL* libs look like that:
> lrwxrwxrwx 1 root root 14 Jan 14 12:27 libGL.so ->
> libGL.so.1.0.5
> lrwxrwxrwx 1 root root 14 Jan 11 22:48 libGL.so.1 ->
> libGL.so.1.0.5
> -rwxr-xr-x 1 root root 184112 Jan 14 12:27 libGL.so.1.0.5
> lrwxrwxrwx 1 root root 13 Jan 11 22:47 libGLU.so ->
> libGLU.so.1.3
> lrwxrwxrwx 1 root root 13 Nov 14 23:01 libGLU.so.1 ->
> libGLU.so.1.3
> -rwxr-xr-x 1 root root 487348 Nov 10 00:39 libGLU.so.1.3
> lrwxrwxrwx 1 root root 18 Nov 14 18:49 libGLcore.so.1
> -> libGLcore.so.1.0.5
> -rwxr-xr-x 1 root root 1499464 Jan 14 12:27
> libGLcore.so.1.0.5
> -rwxr-xr-x 1 root root 26168 Dec 6 00:07 libGLw.a
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
Reply to: