Important: Please read the Qt Code of Conduct -

Building QT from Git fails on my Mavericks - Been struggeling for days now

  • Hi,

    I have been working with Qt4 and OpenCV in several projects in the past and compiled them on Mac OS, Windows and Linux.

    I need to upgrade to OpenCV3 for a new project now, and have big trouble setting up a working environment and I'd really appreciate some help.

    In the past, my problems were always "fixable" as soon as I had a installation of both OpenCV and Qt from the current Git repository, so I'd like to try that again.

    Unfortunately, compiling Qt from Git fails:

    /Applications/ -headerpad_max_install_names -Wl,-syslibroot,/Applications/ -mmacosx-version-min=10.6 -o .obj/wigglywidget.o .obj/dialog.o .obj/main.o .obj/moc_wigglywidget.o .obj/moc_dialog.o -F/Users/sir/qt5/qtbase/lib -framework QtWidgets -framework QtGui -framework QtCore -framework OpenGL -framework AGL
    make: *** [module-qtbase-all] Error 2
    sir:qt5 sir$

    I have recently upgraded to OS X 10.9.4, installed a new XCode and Build tools and I do have a homebrew installation with some tools running. Brew doctor gives no warnings or errors.

    Qt5 installs ok with the Installer DMG and would also be a way forward, but then OpenCV fails to compile with Qt which I absolutely need.

    You can find the complete build attempt from checkout to error here:
    "Build Snippet":

    Any help would be greatly appreciated,



    ps. I've just discovered my first Qt code fragment still on my HDD has just reached 10 years of age :D


    Running make all again results in


    cd fetchmore/ && ( test -e Makefile || /Users/sir/qt5/qtbase/bin/qmake /Users/sir/qt5/qtbase/examples/widgets/itemviews/fetchmore/ -o Makefile ) && /Applications/ -f Makefile all
    ../tst_qpluginloader.cpp:325:39: error: use of undeclared identifier 'QMachOParser'
    QTest::newRow("/dev/null") << int(QMachOParser::NotSuitable);
    ../tst_qpluginloader.cpp:326:49: error: use of undeclared identifier 'QMachOParser'
    QTest::newRow("elftest/") << int(QMachOParser::NotSuitable);
    Error 2

Log in to reply