Qt 4.8.2 libraries and Mountain Lion



  • When trying to compile the libraries under Mountain Lion, I get:

    g++ -headerpad_max_install_names -arch x86_64 -single_module -dynamiclib -compatibility_version 4.9 -current_version 4.9.2 -install_name /usr/local/Trolltech/Qt-4.8.2/lib/QtWebKit.framework/Versions/4/QtWebKit_debug -Xarch_x86_64 -mmacosx-version-min=10.5 -Xarch_x86_64 -mmacosx-version-min=10.5 -o QtWebKit_debug .obj/debug-shared/WebSystemInterface.o .obj/debug-shared/QTKitFullScreenVideoHandler.o .obj/debug-shared/MathMLNames.o .obj/debug-shared/MathMLElementFactory.o
    ...
    Undefined symbols for architecture x86_64:
    "_WKCreateMediaUIBackgroundView", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    "_WKCreateMediaUIControl", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    "_WKQTClearMediaDownloadCache", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    "_WKQTClearMediaDownloadCacheForSite", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    "_WKQTGetSitesInMediaDownloadCache", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    "_WKQTIncludeOnlyModernMediaFileTypes", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    "_WKQTMovieDataRate", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    "_WKQTMovieDisableComponent", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    "_WKQTMovieGetType", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    "_WKQTMovieHasClosedCaptions", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    "_WKQTMovieMaxTimeLoaded", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    "_WKQTMovieMaxTimeLoadedChangeNotification", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    "_WKQTMovieMaxTimeSeekable", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    "_WKQTMovieResolvedURL", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    "_WKQTMovieSelectPreferredAlternates", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    "_WKQTMovieSetShowClosedCaptions", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    "_WKQTMovieViewSetDrawSynchronously", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    "_WKWindowSetAlpha", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    "_WKWindowSetScaledFrame", referenced from:
    InitWebCoreSystemInterface() in WebSystemInterface.o
    ld: symbol(s) not found for architecture x86_64
    collect2: ld returned 1 exit status
    make[3]: *** [../../../../../../lib/QtWebKit.framework/QtWebKit_debug] Error 1
    make[2]: *** [debug-all] Error 2
    make[1]: *** [sub-WebKit-qt-QtWebKit-pro-make_default-ordered] Error 2
    make: *** [sub-webkit-make_default-ordered] Error 2

    Is anyone else experiencing the same issue?



  • I'm experiencing this problem, too. Trying to build qt4-mac with MacPorts 2.1.2.
    It might be linked to this: https://trac.macports.org/ticket/35313



  • There is a patch in review to fix this issue: https://codereview.qt-project.org/#change,31646



  • It's happening to me as well, I just got my mac and using this build configuration:
    @
    ./configure -debug-and-release -opensource -largefile -plugin-sql-sqlite -no-qt3support -xmlpatterns -multimedia -audio-backend -svg -webkit -javascript-jit -script -scripttools -declarative -declarative-debug -qt-zlib -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -openssl -I /usr/include -L /usr/lib
    @

    How do I apply the patch on "change 31646":https://codereview.qt-project.org/#change,31646 ?

    I'm also using mountain lion, and I'm a bit new to the mac, so if someone can help me step by step, I would be really grateful

    EDIT:
    Also found another patch that is related to the issue in the macports link specified above, it's "change 31759":https://codereview.qt-project.org/#change,31759 which is related to QtWebKit



  • You could also change the build environment to Qt 4.8.0, I personally find it more stable, and it gives me less errors and warnings.



  • Yes but I would like to use 4.8.2 as it has many bug fixes and stuff on QML which I'm using, so it would be nice if someone could help me apply the patches



  • Ok I figured out how to apply the patch 31646, also patch 31759 is about the same as 31646.

    There was just a small difference in the QtWebKit.pro file and needed to add the mountain lion interface library to the webkit project.

    When applying the patch, I'd recommend to download the file libWebKitSystemInterfaceMountainLion.a from the github repository mentioned in the patch comments at the beginning of the page instead of the one in the patch page, because there's an 8kb difference when downloading from the patch page than straight from github, I don't know what are the differences but I wouldn't want to find out after 2 hours of building Qt that it was just zip file rubbish ;)


Log in to reply
 

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