Building Qt5 on 10.8



  • Hi

    I'm trying to build Qt5 on 10.8, targeting the 10.7 SDK. Downloaded the source from here (.tgz), using Clang (Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)) and configure:
    @./configure -debug-and-release -commercial -confirm-license -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -arch x86_64 -nomake tests -nomake example
    @

    then make, and eventually get:
    @clang++ -headerpad_max_install_names -mmacosx-version-min=10.6 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -single_module -dynamiclib -compatibility_version 5.0 -current_version 5.0.0 -install_name /Users/perforce/utils/Movemain_CLANG4.1/Qt5.0.0/lib/QtWebKit.framework/Versions/5/QtWebKit_debug -o QtWebKit_debug .obj/debug-shared/.rcc/debug-shared/qrc_WebCore.o .obj/debug-shared/.rcc/debug-shared/qrc_WebKit.o .obj/debug-shared/.rcc/debug-shared/qrc_InspectorBackendCommands.o -F/Users/perforce/utils/Movemain_CLANG4.1/build/qt-everywhere-opensource-src-5.0.0/qtbase/lib -F/Users/perforce/utils/Movemain_CLANG4.1/build/qt-everywhere-opensource-src-5.0.0/qtdeclarative/lib -framework QtNetwork -framework QtCore -framework QtGui -framework Carbon -framework AppKit -Wl,-force_load,/Users/perforce/utils/Movemain_CLANG4.1/build/qt-everywhere-opensource-src-5.0.0/qtwebkit/Source/WebKit/debug/libWebKit1_debug.a -L/Users/perforce/utils/Movemain_CLANG4.1/build/qt-everywhere-opensource-src-5.0.0/qtwebkit/Source/WebKit/debug -Wl,-force_load,/Users/perforce/utils/Movemain_CLANG4.1/build/qt-everywhere-opensource-src-5.0.0/qtwebkit/Source/WebKit2/debug/libWebKit2_debug.a -L/Users/perforce/utils/Movemain_CLANG4.1/build/qt-everywhere-opensource-src-5.0.0/qtwebkit/Source/WebKit2/debug -Wl,-force_load,/Users/perforce/utils/Movemain_CLANG4.1/build/qt-everywhere-opensource-src-5.0.0/qtwebkit/Source/WebCore/debug/libWebCore_debug.a -L/Users/perforce/utils/Movemain_CLANG4.1/build/qt-everywhere-opensource-src-5.0.0/qtwebkit/Source/WebCore/debug -lz -framework AudioUnit -framework AudioToolbox -framework CoreAudio -framework QuartzCore -framework QTKit -framework Security -framework IOKit /Users/perforce/utils/Movemain_CLANG4.1/build/qt-everywhere-opensource-src-5.0.0/qtwebkit/WebKitLibraries/libWebKitSystemInterfaceMountainLion.a -framework IOSurface -framework CoreFoundation -lsqlite3 -Wl,-force_load,/Users/perforce/utils/Movemain_CLANG4.1/build/qt-everywhere-opensource-src-5.0.0/qtwebkit/Source/ThirdParty/ANGLE/debug/libANGLE_debug.a -L/Users/perforce/utils/Movemain_CLANG4.1/build/qt-everywhere-opensource-src-5.0.0/qtwebkit/Source/ThirdParty/ANGLE/debug -Wl,-force_load,/Users/perforce/utils/Movemain_CLANG4.1/build/qt-everywhere-opensource-src-5.0.0/qtwebkit/Source/JavaScriptCore/debug/libJavaScriptCore_debug.a -L/Users/perforce/utils/Movemain_CLANG4.1/build/qt-everywhere-opensource-src-5.0.0/qtwebkit/Source/JavaScriptCore/debug -Wl,-force_load,/Users/perforce/utils/Movemain_CLANG4.1/build/qt-everywhere-opensource-src-5.0.0/qtwebkit/Source/WTF/debug/libWTF_debug.a -L/Users/perforce/utils/Movemain_CLANG4.1/build/qt-everywhere-opensource-src-5.0.0/qtwebkit/Source/WTF/debug -licucore -framework QtQuick -F/Users/perforce/utils/Movemain_CLANG4.1/build/qt-everywhere-opensource-src-5.0.0/qtdeclarative/lib -F/Users/perforce/utils/Movemain_CLANG4.1/build/qt-everywhere-opensource-src-5.0.0/qtbase/lib -F/Users/perforce/utils/Movemain_CLANG4.1/build/qt-everywhere-opensource-src-5.0.0/qtjsbackend/lib -framework QtQml -framework QtNetwork -framework QtCore -framework QtGui -framework QtSql -framework OpenGL -framework AGL
    Undefined symbols for architecture x86_64:
    "_CGContextDrawsWithCorrectShadowOffsets", referenced from:
    _WKCGContextDrawsWithCorrectShadowOffsets in libWebKitSystemInterfaceMountainLion.a(WebKitSystemInterface.o)
    "_kCFURLRequestAllowAllPOSTCaching", referenced from:
    _WKCFURLRequestAllowAllPostCaching in libWebKitSystemInterfaceMountainLion.a(WebKitSystemInterface.o)
    ld: symbol(s) not found for architecture x86_64
    @

    any ideas what's wrong?



  • I wonder whether you have found the solution for this problem. I've been trying to do the same with Qt 4.8.4 using Macports, but I get exactly the same error.



  • I managed to build Qt5.0.0 on MacOX 10.7 targeting 10.7. Version 5.0.1 fails to build though. Why is it so hard!!!! I know Apple doesn't making it very easy and the Qt5 is a huge complexe thing to build, but still, it's a pain.

    I use this patch to build Qt 4.8.4: "http://pastebin.com/QkKfDuJH":http://pastebin.com/QkKfDuJH



  • Did you submit the patch to the Qt project?



  • the patch was provided by Digia, I presume they have submitted it to the main qt project. It is for 4.8.4 though, not 5.x...


  • Moderators

    The policy for Qt right now is that all patches need to be submitted to Qt5 and only then backported to Qt4, so there is a change it's in Qt5 repos, too.



  • I understand that. I believe that patch was done (again, by Digia) soon after the 4.8.4 release. Wether it was pushed to the main repository I don't know.
    And I don't believe it applies to Qt5 at all...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.