Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 541434 - dev-qt/qtgui-5.4.1[opengl] - opengldesktop.cpp:37:19: fatal error: GL/gl.h: No such file or directory
Summary: dev-qt/qtgui-5.4.1[opengl] - opengldesktop.cpp:37:19: fatal error: GL/gl.h: N...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: qt-5.4.2-stable
  Show dependency tree
 
Reported: 2015-02-26 13:36 UTC by Petros
Modified: 2015-06-29 17:57 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,87.51 KB, text/plain)
2015-02-26 13:36 UTC, Petros
Details
emerge --info (info,35.24 KB, text/plain)
2015-02-26 13:38 UTC, Petros
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petros 2015-02-26 13:36:29 UTC
Created attachment 397550 [details]
build.log

Emerging qtgui came up with this error: 
OpenGL auto-detection... ()
x86_64-pc-linux-gnu-g++ -c -march=native -mtune=native -O2 -pipe -mtls-dialect=gnu2 -fomit-frame-pointer -fschedule-insns -ftracer -fgcse-lm -fforce-addr -O2 -Wall -W -fPIE  -I. -I/var/tmp/portage/dev-qt/qtgui-5.4.1/work/qtbase-opensource-src-5.4.1/mkspecs/linux-g++ -o opengldesktop.o opengldesktop.cpp
opengldesktop.cpp:37:19: fatal error: GL/gl.h: No such file or directory
 #include <GL/gl.h>
                   ^
compilation terminated.
Makefile:175: recipe for target 'opengldesktop.o' failed
gmake: *** [opengldesktop.o] Error 1
OpenGL disabled.
The OpenGL functionality test failed!
 You might need to modify the include and library search paths by editing
 QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in
 /var/tmp/portage/dev-qt/qtgui-5.4.1/work/qtbase-opensource-src-5.4.1/mkspecs/linux-g++.
 * ERROR: dev-qt/qtgui-5.4.1::gentoo failed (configure phase):
 *   configure failed
Comment 1 Petros 2015-02-26 13:38:19 UTC
Created attachment 397554 [details]
emerge --info
Comment 2 Petros 2015-02-26 18:29:43 UTC
ACCEPT_KEYWORDS="~amd64" emerge -av1 mesa -D

These are the packages that would be merged, in order:

Calculating dependencies                 ... done!                
[ebuild     U  ] media-libs/mesa-10.5.0_rc1 [10.3.7-r1] USE="classic dri3 egl gallium gbm llvm nptl r600-llvm-compiler udev vaapi%* vdpau wayland xa xvmc -bindist -d3d9% -debug -gles1 -gles2 -opencl -openmax -osmesa -pax_kernel -pic (-selinux) (-openvg%)" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="r600 radeon (-freedreno) -i915 -i965 -ilo -intel -nouveau -r100 -r200 -r300 -radeonsi -vmware" 6753 KiB
[ebuild  NS    ] dev-qt/qtgui-5.4.1:5 [4.8.6-r1:4] USE="accessibility egl evdev gif ibus jpeg opengl png udev xcb -debug -eglfs -gles2 -harfbuzz -kms {-test}" 0 KiB

Total: 2 packages (1 upgrade, 1 in new slot), Size of downloads: 6753 KiB

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

dev-qt/qtxml:5

  (dev-qt/qtxml-5.4.1:5/5::gentoo, ebuild scheduled for merge) conflicts with
    ~dev-qt/qtxml-5.4.0[-debug] required by (dev-qt/qdoc-5.4.0:5/5::gentoo, installed)
    ^             ^^^^^        


emerge: there are no ebuilds to satisfy "~dev-qt/qtcore-5.4.0[-debug]".
(dependency required by "dev-qt/qtxml-5.4.0" [installed])
(dependency required by "dev-qt/qdoc-5.4.0" [installed])
(dependency required by "@qt5-tools" [set])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])

Would you like to merge these packages? [Yes/No]y

All done with =media-libs/mesa-10.5.0_rc1.
Comment 3 Panagiotis Christopoulos (RETIRED) gentoo-dev 2015-03-03 18:16:24 UTC
I'm curious, does /usr/include/GL/gl.h exist in your system? Btw, mixing stable with unstable sometimes doesn't end well.
Comment 4 Petros 2015-03-04 13:15:52 UTC
(In reply to Panagiotis Christopoulos from comment #3)
> I'm curious, does /usr/include/GL/gl.h exist in your system? 

# file /usr/include/GL/gl.h
/usr/include/GL/gl.h: C source, ASCII text

Yes.
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2015-06-14 23:44:23 UTC
Try with saner CXXFLAGS please.
Comment 6 Davide Pesavento (RETIRED) gentoo-dev 2015-06-29 17:57:03 UTC
(In reply to Davide Pesavento from comment #5)
> Try with saner CXXFLAGS please.

Reopen if you can reproduce with sane CXXFLAGS and a non-experimental version of binutils (2.25-r1 is fine).