[Solved]How to build Qt 5.3.2 from source on OS X 10.9?



  • I am trying build Qt 5.3.2 from source on OS X 10.9, but I get this error:

    @
    /opt/qt-everywhere-opensource-src-5.3.2/qtbase/lib/libQt5Widgets.a(qmacnativewidget_mac.o)
    ld: 1 duplicate symbol for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[4]: *** [embeddedqwindow.app/Contents/MacOS/embeddedqwindow] Error 1
    make[3]: *** [sub-embeddedqwindow-make_first] Error 2
    make[2]: *** [sub-macextras-make_first] Error 2
    make[1]: *** [sub-examples-make_first] Error 2
    make: *** [module-qtmacextras-make_first] Error 2
    @

    Anybody can help-me?



  • @export PATH=/usr/bin:/bin:/usr/sbin:/sbin
    ./configure -debug-and-release -prefix /usr/local/Qt-5.3.2 -nomake examples -sdk macosx10.9 -no-c++11
    make
    make install
    make generate_docs
    make qch_docs
    make install_qch_docs@

    tested with Qt5.3.2, Mac OS X 10.9 & Xcode 5. Note, if you omit the '-no-c++11' you won't be able to deploy on Mac OS X 10.6.



  • Thanks so much sandy.martel.
    It`s works fine for me.

    Thanks again. You saved me.


Log in to reply
 

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