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 QT from Git fails on my Mavericks - Been struggeling for days now
Forum Update on Monday, May 27th 2025

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

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 571 Views
  • 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.
  • S Offline
    S Offline
    sirius79
    wrote on last edited by
    #1

    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/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.6 -o wiggly.app/Contents/MacOS/wiggly .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":http://codeviewer.org/view/code:4265

    Any help would be greatly appreciated,

    Thanks!

    Wolfram

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


    EDIT

    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/fetchmore.pro -o Makefile ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -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/debugobj.so") << int(QMachOParser::NotSuitable);
    ^
    (...)
    Error 2

    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