Opened 8 years ago

Closed 8 years ago

#13376 closed defect (duplicate)

wxWidgets 2.8.12 configure fails to find OpenGL on Debian Testing/Linux Mint Edition

Reported by: JGMiller Owned by:
Priority: high Milestone:
Component: build Version: 2.8.12
Keywords: Cc:
Blocked By: Blocking:
Patch: no

Description

Running configure with --with-opengl on a Debian Testing/Linux Mint Edition system, both i386 and amd64 archictectures results in the error

   checking for OpenGL headers... found in /usr/include
   checking for GL/gl.h... yes
   checking GL/glu.h usability... yes
   checking GL/glu.h presence... yes
   checking for GL/glu.h... yes
   checking for -lGL... no
   checking for -lMesaGL... no
   configure: error: OpenGL libraries not available

This is because the libGL library, along with various other major libraries, has been moved to the architecture dependent sub-directory

/usr/lib/i386-linux-gnu

for 32 bit systems and to

/usr/lib/x86_64-linux-gnu

for 64 bit systems respectively.

A quick and dirty fix is to add these two libraries to the search library path

SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$
wx_cv_std_libpath /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu"

However D G Hart on IRC recommended that configure should get the necessary additional library paths using pkconfig viz

   user> pkg-config --variable=libdir gl
   /usr/lib/i386-linux-gnu

Change History (1)

comment:1 Changed 8 years ago by vadz

  • Resolution set to duplicate
  • Status changed from new to closed

This seems to be the same as #13375.

Note: See TracTickets for help on using tickets.