[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compiling OpenGL apps under Sid



On Mon, 23 Jan 2006 13:48:18 -0800
Doogster <thedoogster@gmail.com> wrote:

> I'm running Sid and I'm having trouble compiling OpenGL apps.
> 
> Here's my situation. I have an IBM T23. My video card is an S3 Savage
> and I'm using the drivers from dri.freedesktop.org. The point is that
> I'm not using a Radeon or Nvidia card or anything else that comes with
> its own OpenGL files; I'm only using the OpenGL header and library files
> that come with xorg and mesa.
> 
> I have xlibmesa-dri, xlibmesa-gl, xlibmesa-gl-dev, libglu1-mesa and
> libglu1-mesa-dev installed. As far as I know, these should be what I
> need to run and build OpenGL apps.
> 
> glxinfo gives me "direct rendering: Yes". I have no trouble running
> opengl screensavers in xscreensaver, or Ur Quan Masters in OpenGL mode.
> Both of these programs are from apt-get.
> 
> The problem comes when I try myself to compile something to use OpenGL. It
> inevitably fails at the ./configure stage, saying that it can't find
> the OpenGL development files.
> 
> To take one typical case, I did "apt-get source planetpenguin-racer ;
> apt-get build-dep planetpenguin-racer". When I tried to ./configure it,
> I got:
> 
>   checking for GL library... no
>   checking for GL library (with pthreads)... no
>   checking for MesaGL library... no
>   checking for MesaGL library (with pthreads)... no
>   checking for opengl32 library... no
>   checking for opengl32 library (with pthreads)... no
>   *** Hmm, you don't seem to have OpenGL libraries installed in the
>   *** standard  location (/usr/lib).  I'll check in /usr/X11R6/lib,
>   *** since many distributions (incorrectly) put OpenGL libs there.
>   checking for GL library... no
>   checking for GL library (with pthreads)... no
>   checking for MesaGL library... no
>   checking for MesaGL library (with pthreads)... no
>   checking for opengl32 library... no
>   checking for opengl32 library (with pthreads)... no
>   configure: error: Cannot find GL library
> 
> One interesting section I noticed in its config.log was:
> 
>   configure:6935: gcc-3.4 -o conftest -g -O2   conftest.c -lSDL_mixer
>   -lSM -lICE  -L/usr/X11R6/lib -lX11 -lXi -lXext -lXmu -lXt   -ldl -lm
>   -L/usr/lib -lSDL -lpthread >&5
>   configure:6941: $? = 0
>   configure:6944: test -z 			 || test ! -s
>   conftest.err
>   configure:6947: $? = 0
>   configure:6950: test -s conftest
>   configure:6953: $? = 0
>   configure:6966: result: yes
>   configure:7024: checking for GL library
>   configure:7043: gcc-3.4 -o conftest -g -O2   conftest.c   -lSM -lICE
>   -L/usr/X11R6/lib -lX11 -lXi -lXext -lXmu -lXt   -ldl -lm -L/usr/lib
>   -lSDL -lpthread -lSDL_mixer  -lGL >&5
>   /usr/bin/ld: BFD 2.16.91 20060118 Debian GNU/Linux assertion fail
>   ../../bfd/elflink.c:6203
>   /usr/bin/ld: conftest: hidden symbol `__fini_array_end' in conftest is
>   referenced by DSO
>   /usr/bin/ld: final link failed: Nonrepresentable section on output
>   collect2: ld returned 1 exit status
> 
> I've tried building other OpenGL programs, of course, and they've ALL
> failed at the ./configure stage, saying that they can't find the OpenGL
> libraries.
> 
> Help me out here.
> 
> I want to be able to build OpenGL programs from source.
> 
> What am I doing wrong?

you need, I assume, some opengl -dev libraries.

apt-cache search opengl | grep dev shows quite a few, including some that match your configure output pretty closely.

A

> 
> When I tried find information on this problem, The only reference I
> could find was http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=332753
> and that's only supposed to affect those with Nvidia cards.
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 

Attachment: pgpsY64aKsV4Z.pgp
Description: PGP signature


Reply to: