[plug] Open GL / SDL / Debian Problem

Simon N newtons at iinet.net
Sun Mar 28 09:38:31 WST 2004


On Sat, 2004-03-27 at 18:19, James Devenish wrote:
> In message <1080377743.1453.44.camel at quigon>
> on Sat, Mar 27, 2004 at 04:55:43PM +0800, Simon N wrote:
> > gcc -ansi -Wall lesson04.c -o lesson04 -lGL -lGLU `sdl-config --cflags
> > --libs`
> 
> I honesty don't know what might be causing your problem, but is the
> output of `sdl-config --cflags --libs` identical on both systems, too?

Yes:

-I/usr/include/SDL -D_REENTRANT
-lSDL -lpthread

on both

> Another thing is to compare the output of the precompiler (gcc -E) to
> see if headers are being switched on differently (though I would suspect
> this to be unlikely).

I presume I run this like so ?

gcc -E -ansi -Wall lesson04.c -o lesson04.out  -lGL -lGLU `sdl-config
--cflags --libs`

The resulting two lesson04.out files are exactly the same. I can send a
copy if you like.

>  I wonder if any of the installed and working
> OpenGL packages have interesting 'Build-Depends' requirements.

Is there an easy way to check ?

>  Also (but
> this is getting silly now), is the output of `file lesson04` the same on
> both computers?

Yes:

$ file lesson04
lesson04: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
GNU/Linux 2.2.0, dynamically linked (uses shared libs), not stripped

$ file lesson04.good 
lesson04.good: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
for GNU/Linux 2.2.0, dynamically linked (uses shared libs), not stripped


Simon N





More information about the plug mailing list