Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building Qt5 on 10.8
Qt 6.11 is out! See what's new in the release blog

Building Qt5 on 10.8

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 3 Posters 3.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mkrus
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      davideanastasia
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mkrus
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • D Offline
          D Offline
          davideanastasia
          wrote on last edited by
          #4

          Did you submit the patch to the Qt project?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mkrus
            wrote on last edited by
            #5

            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...

            1 Reply Last reply
            0
            • sierdzioS Online
              sierdzioS Online
              sierdzio
              Moderators
              wrote on last edited by
              #6

              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.

              (Z(:^

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mkrus
                wrote on last edited by
                #7

                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...

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved