Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43183 - wxgtk 2.4.2 does not compile - opengl libraries not available
Summary: wxgtk 2.4.2 does not compile - opengl libraries not available
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-28 01:45 UTC by scope
Modified: 2004-08-08 14:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log, as requested (config.log,17.32 KB, text/plain)
2004-03-03 15:16 UTC, scope
Details

Note You need to log in before you can comment on or make changes to this bug.
Description scope 2004-02-28 01:45:42 UTC
when i do 'emerge -u world', when it gets to wxgtk during the configure script it checks for header <GL/gl.h> and says not found then also says that the opengl libraries not available when two gl.h's exist on my system

Reproducible: Always
Steps to Reproduce:
1. emerge -u wxgtk

Actual Results:  
emerge quits due to an error 

Expected Results:  
emerged successfully 

these are the two gl.h header files i have: 
 
/usr/lib/opengl/xfree/include/gl.h 
/usr/lib/opengl/nvidia/include/gl.h 
 
-- 
 
junk@lizzy junk $ emerge info 
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 
2.6.3-gentoo-r2) 
================================================================= 
System uname: 2.6.3-gentoo-r2 i686 AMD Athlon(tm) XP 2400+ 
Gentoo Base System version 1.4.3.13 
Autoconf: sys-devel/autoconf-2.59-r3 
Automake: sys-devel/automake-1.8.2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -mcpu=athlon-xp -funroll-loops -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-O3 -mcpu=athlon-xp -funroll-loops -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="ftp://203.16.234.19/pub/gentoo/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" 
USE="X alsa apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif 
gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mozilla mpeg 
mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime 
readline sdl slang spell ssl svga tcpd tetex truetype x86 xml2 xmms xv zlib"
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2004-02-28 04:37:29 UTC
try the latest opengl-update, it is supposed to make a symlink to either xfree or nvidia depending on what opengl-update you've last run.
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2004-02-28 09:29:24 UTC
Make sure a symlink to one of them exists at /usr/include/GL/gl.h. opengl-update should provide this.
Comment 3 scope 2004-02-28 10:16:01 UTC
i ran opengl-update and i am still getting the same error
Comment 4 A J 2004-03-01 14:19:30 UTC
I'm getting a similar error with wxGTK-2.4.1-r1. I've run opengl-update as well checked to see that gl.h is symlinked to the xfree/ati header file. Here's the exact error:
checking for GL/gl.h... no
configure: error: OpenGL libraries not available

!!! ERROR: x11-libs/wxGTK-2.4.1-r1 failed.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed
and here's my emerge info:
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1)
=================================================================
System uname: 2.6.3-gentoo-r1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox userpriv"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.seren.com/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib acpi acpi4linux alsa apache2 arts athena bindist bonobo caps cdr chroot clamav crypt cups dga doc dvd fbcon foomaticdb foreign-package gif gimpprint gpm gtk2 gtkhtml imap imlib irmc java javascript jpeg kde ldap lesstif libwww motif mozilla mpeg msn ncurses neXt nls nogcj nptl ofx oggvorbis opengl operanom2 pam pcmcia pdflib perl png pnp postgres ppds propolice python qt radeon readline sdl spell sse ssl svga tcltk tcpd tetex threads tiff truetype unicode usb video_cards_radeon vim-with-x x86 xemacs xgetdefault xml2 xmms yahoo zlib"
Comment 5 SpanKY gentoo-dev 2004-03-03 14:37:56 UTC
post the config.log file in the build directory
Comment 6 scope 2004-03-03 15:16:37 UTC
Created attachment 26798 [details]
config.log, as requested
Comment 7 SpanKY gentoo-dev 2004-03-03 23:30:10 UTC
/usr/include/GL/gl.h:62:22: GL/glext.h: No such file or directory

do you have /usr/include/GL/glext.h ?
if not, is /usr/include/GL a symlink to ../X11R6/include/GL ?
if not, why isnt it ? :)
you should have the file /usr/X11R6/include/GL/glext.h ...
Comment 8 scope 2004-03-04 00:46:27 UTC
this is the only places i have glext.h:

izzy qtcsharp # locate glext.h
/usr/lib/opengl/nvidia/include/glext.h
/usr/portage/media-video/mtxdrivers-pro/files/glext.h
lizzy qtcsharp #

--

this is /usr/include/GL:

lizzy qtcsharp # ls -al /usr/include/GL
lrwxrwxrwx    1 root     root           19 Feb 28 21:56 /usr/include/GL -> ../X11R6/include/GL
lizzy qtcsharp #

--

do i need to point that directory to /usr/lib/opengl/nvidia/include/ ?
shouldn't opengl-update do this ?
Comment 9 SpanKY gentoo-dev 2004-03-04 00:56:18 UTC
what does `qpkg -l xfree | grep glext` show ?
you do have x11-base/xfree emerged yeah ? :)
Comment 10 scope 2004-03-04 01:01:10 UTC
lizzy qtcsharp # qpkg -l xfree | grep glext
/usr/X11R6/include/GL/glext.h
lizzy qtcsharp #

yes i have x11-base/x11 merged ;)
Comment 11 SpanKY gentoo-dev 2004-03-04 01:03:42 UTC
so, you used to have the file, but you dont anymore

re-emerge xfree :)
Comment 12 scope 2004-03-04 01:56:25 UTC
well done :p that fixed it
Comment 13 Hypnos 2004-04-19 01:42:15 UTC
This bug also happens with xorg-x11; I fixed it with

ln -s xorg-x11 xfree

inside /usr/lib/opengl
Comment 14 Will Buckner 2004-08-08 14:26:02 UTC
The problem (i think) is that another package (i dont recall which) instructs users to mv gl.h to another location. This is why I don't have the file.