Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.0.0
-
None
-
{{uname -a}}
Darwin iMac.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
qtbase SHA-1 {{03bb0b0fa050494570f4f9141356f8d3f06dfbf9}}
glib version 2.33.6
-
-
7e3f46fdaa6be5557dde59bb91b02dc141476162
Description
When configuring Qt 5 from Git to use glib on OSX, the functionality test fails without any error output and glib support is disabled:
$ ./configure -opensource -confirm-license -glib -v
... Glib auto-detection... () g++ -c -pipe -mmacosx-version-min=10.6 -D_REENTRANT -O2 -Wall -W -fPIE -I../../../mkspecs/macx-g++ -I. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -o glib.o glib.cpp glib.cpp: In function ‘int main(int, char**)’: glib.cpp:52: warning: ‘g_thread_init’ is deprecated (declared at /opt/local/include/glib-2.0/glib/deprecated/gthread.h:259) glib.cpp:52: warning: ‘g_thread_init’ is deprecated (declared at /opt/local/include/glib-2.0/glib/deprecated/gthread.h:259) g++ -headerpad_max_install_names -mmacosx-version-min=10.6 -o glib.app/Contents/MacOS/glib glib.o -L/opt/local/lib -lgthread-2.0 -lglib-2.0 -lintl Glib disabled. Glib support cannot be enabled due to functionality tests! ...
The qtbase/config.tests/unix/compile.test script looks for the resulting glib executable in qtbase/config.tests/unix/glib/, but it is instead placed in qtbase/config.tests/unix/glib/glib.app/Contents/MacOS/.
I managed to work around this by removing the app_bundle configuration option from the CONFIG variable in qtbase/config.tests/unix/glib/glib.pro (patch attached). This might not be a proper fix, but it works for me.