[SOLVED] Trouble Building Qtbase 5.2.1-ish on Mac. Problem with xcb.
-
Hello...
I have the Qtbase git clone "2b3f293 Android: Refactor the InputType mapping code."
I'm trying to build it on Mac OS 10.8.5, Xcode 5.0.2
If I use
@./configure -debug -prefix /Projects/Qt5.2.1RC1 -debug-and-release -sdk macosx10.8@I end up with:
@Running configuration tests...
The test for linking against libxcb and support libraries failed!
You might need to install dependency packages, or pass -qt-xcb.
See src/plugins/platforms/xcb/README.@The README doesn't mention the Mac, but I installed <code>xcb</code> via macports, which landed in <code>/opt/local/{bin,lib,include}/xcb</code>. <code>configure</code> still isn't seeing it.
If I add the <code>-qt-xcb</code> to <code>configure</code>, then <code>configure</code> finishes. But then I have a problem with the make:
@/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c -pipe -g -gdwarf-2 -fPIC -w -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -fno-exceptions -Wall -W -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../../mkspecs/macx-clang -I. -I../../../../3rdparty/xcb/include -I../../../../3rdparty/xcb/include/xcb -I../../../../3rdparty/xcb/sysinclude -I../../../../../lib/QtGui.framework/Versions/5/Headers -I../../../../../lib/QtCore.framework/Versions/5/Headers -I.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers -F/Volumes/Projects/Qt5.2.1.RC1/qtbase/lib -o .obj/xfixes.o ../../../../3rdparty/xcb/libxcb/xfixes.c
In file included from ../../../../3rdparty/xcb/libxcb/xfixes.c:8:
../../../../3rdparty/xcb/sysinclude/xcbext.h:1:10: fatal error: 'xcb/xcbext.h' file not found
#include <xcb/xcbext.h>
^
1 error generated.@
Is this something I should/can ignore? I believe xcb is an X11-ism, which I'm not using at all, as far as I know.Thanks for any/all help!
-Eric
-
XCB is not needed on Mac. Something is definitely wrong. Try updating your repository. Before that, maybe try also passing the mkspecs: -platform macx-clang
And make sure you have a clean repository before running configure:
@
git reset --hard
git clean -dxf
@ -
Hi,
You can just pass -no-xcb when configuring and you should be fine
-
Yes, it disables xcb entirely.
IIRC there's a glitch in the configure script when pkg-config can be found on OS X, that's why it tries to build the xcb platform plugin
-
[quote author="EricRFMA" date="1389235589"]I love these forums... :)
[/quote]You can make them even better by marking your thread as solved ;) I've already tagged it for you.