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

Bug#332753: marked as done (xlibmesa-gl-dev: cannot link OpenGL app: /usr/bin/ld: cannot find -lGL)



Your message dated Wed, 14 Feb 2007 01:12:11 +0100
with message-id <45D253DB.6080909@ens-lyon.org>
and subject line Bug#332753: xlibmesa-gl-dev: cannot link OpenGL app: /usr/bin/ld: cannot find -lGL
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: xlibmesa-gl-dev
Version: 6.8.2.dfsg.1-8
Severity: grave
Tags: patch
Justification: renders package unusable

I tried to compile lesson02 from the NeHe OpenGL Tutorial (SDL GLX variant):

$ make
gcc -Wall -ansi lesson02.c -o lesson02 `sdl-config --cflags --libs` -lGL -lGLU
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status

Looking closer at the problem:

gcc -Wall -ansi lesson02.c -o lesson02 -Wl,--verbose `sdl-config --cflags --libs` -lGL -lGLU

attempt to open /usr/lib/libGL.so failed
attempt to open /usr/lib/libGL.a failed
attempt to open /usr/lib/gcc/i486-linux-gnu/4.0.2/libGL.so failed
attempt to open /usr/lib/gcc/i486-linux-gnu/4.0.2/libGL.a failed
attempt to open /usr/lib/gcc/i486-linux-gnu/4.0.2/libGL.so failed
attempt to open /usr/lib/gcc/i486-linux-gnu/4.0.2/libGL.a failed
d
attempt to open /usr/lib/gcc/i4/usr/bin/ld: cannot find -lGL


GNU ld obviously expects from a shared object that a filename ending with '.so' is 
provided, without version information. Often, this is a symlink. Here is what I have done 
to fix the problem:

$ su
# cd /usr/lib
# ln -s libGL.so.1 libGL.so
# ldconfig

It should be possible to compile OpenGL programs out of the box, even if the patch above 
is simple.

Andre Heynatz

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13.2
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages xlibmesa-gl-dev depends on:
ii  libc6-dev [libc-dev]      2.3.5-6        GNU C Library: Development Librari
ii  libx11-dev                6.8.2.dfsg.1-8 X Window System protocol client li
ii  libxext-dev               6.8.2.dfsg.1-8 X Window System miscellaneous exte
ii  x-dev                     6.8.2.dfsg.1-8 X protocol development files
ii  xlibmesa-gl               6.8.2.dfsg.1-8 Mesa 3D graphics library [X.Org]

xlibmesa-gl-dev recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
Closing since it was caused by a diversion of libGL.so in nvidia-glx
without actually providing a new lib.

Brice


--- End Message ---

Reply to: