[Development] Qt 5.5.0 build issue on OS X (10.9): OpenGL libraries

René J.V. Bertin rjvbertin at gmail.com
Fri Sep 11 14:17:23 CEST 2015


Hi,

Another build issue on OS X: the build system picks up the wrong OpenGL library. This happens when the GLX libGL.dylib is present in the library path (e.g. when building under MacPorts), probably because QMAKE_LIBS_OPENGL contains -lGL .

With Qt 5.4 the GLX library wasn't found when building for XCB, but obviously it should be ignored when building the native, cocoa variant.

How can I find out why QMAKE_LIBS_OPENGL gets set to -lGL in qmodule.pri, or why the library is tested in opengldesktop.pro?

For reference, this is my current configure command:

%> configure -platform macx-clang -sdk macosx10.9 -prefix /opt/local -archdatadir /opt/local/libexec/qt5 -docdir /opt/local/share/doc/qt5 -headerdir /opt/local/include/qt5 -plugindir /opt/local/share/qt5/plugins -importdir /opt/local/share/qt5/imports -qmldir /opt/local/share/qt5/qml -datadir /opt/local/share/qt5 -libdir /opt/local/libexec/qt5/Library/Frameworks -bindir /opt/local/libexec/qt5/bin -libexecdir /opt/local/libexec/qt5/libexec -translationdir /opt/local/share/qt5/translations -sysconfdir /opt/local/etc/qt5 -examplesdir /Applications/MacPorts/Qt5/examples -testsdir /opt/local/share/qt5/tests -hostbindir /opt/local/libexec/qt5/bin -hostlibdir /opt/local/libexec/qt5/Library/Frameworks -hostdatadir /opt/local/share/qt5 -v -release -opensource -confirm-license -shared -force-pkg-config -no-pulseaudio -no-mtdev -system-harfbuzz -openssl-linked -no-xinput2 -no-xcb -no-xcb-xlib -no-libudev -no-egl -make libs -make tools -nomake examples -nomake tests -verbose -nis -cups -iconv -no-evdev -icu -fontconfig -no-pch -dbus-linked -glib -directfb -no-linuxfb -no-kms -no-use-gold-linker -framework -optimized-qmake -system-sqlite -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite2 -no-sql-tds -no-openvg -force-debug-info -no-strip -no-separate-debug-info

R.



More information about the Development mailing list