Fra wrote:
> I'm doing something very wrong.... hope that some can help me.
>
> I've compiled Mesa 7.3 with 'make linux-static' on a i386, ubuntu intrepid.
> Copied the headers (the GL/ directory)in /home/nw/usr/libs/include/ and
> libGL.a in /home/nw/usr/libs/lib/ .
>
> I compile with:
>
> g++ -o mosaic.bin -s -O6 `sdl-config --cflags` -Wno-write-strings
> -I/home/nw/usr/libs/include/ `sdl-config --libs ` -lfftw3 -ljpeg *.cpp
> /home/nw/usr/libs/lib/libGL.a
>
> I checked, the headers are actually the ones provided by Mesa, if I remove
> them gl.h is not found and compile fails.
> Anyway, it compiles fine, but once I launch the program all glWhatever() do
> nothing, for example the output of
>
> printf("OpenGL version is %s\n", glGetString(GL_VERSION));
> printf("OpenGL renderer is %s\n", glGetString(GL_RENDERER));
> printf("OpenGL vendor is %s\n", glGetString(GL_VENDOR));
>
> is just
>
> OpenGL version is (null)
> OpenGL renderer is (null)
> OpenGL vendor is (null)
That's what you'd expect to see if there's no currently bound rendering
context.
> Instead, when compiled with 'make linux' and 'make install'ed everything
> works.
> What am I doing wrong?
I just tried the linux-static build here and it seems to work for me.
What about the Mesa demos, like progs/demos/gloss? Does that work?
-Brian
|