Trouble building Qt on Mac



  • I need to produce both a 5.6.2 compile of Qt (for short term bugfix of our product from 5.6.0) and a compile of 5.8.0 (for testing purposes before we move the product forward). I need Windows and Mac builds. I have already succeeded with windows. On mac, I'm getting a strange behaviors that has not happened to me before.

    With 5.6.2, configure will complete without error, but running 'make' will simply output:

    /Users/wmacdonald/QtSrc/qtbase/bin/qmake -o Makefile qt.pro
    /Users/wmacdonald/QtSrc/qtbase/bin/qmake -o Makefile qt.pro
    make: Nothing to be done for `first'.

    A -Wall run outputs this:

    /Users/wmacdonald/QtSrc/Makefile:74: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:75: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:118: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:127: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:132: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:132: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:132: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:135: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:135: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:135: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:158: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:160: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:164: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:165: Opening parenthesis without prior test name.
    /Users/wmacdonald/QtSrc/Makefile:165: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:165: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:165: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:165: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:168: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:168: Extra characters after test expression.
    /Users/wmacdonald/QtSrc/Makefile:169: Extra characters after test expression.
    Error processing project file: Makefile
    make: *** [Makefile] Error 3

    With 5.8.0, the result is even more strange. Configure simply pretends not to recognize any command line options. It does not even recognize -prefix, or -nomake. running configure with no options produces the following:

    *Creating qmake...
    ..Done.

    Running configuration tests...
    Done running configuration tests.

    Configure summary:

    Qt is now configured for building. Just run 'make'.
    Once everything is built, you must run 'make install'.
    Qt will be installed into /usr/local/Qt-5.8.0

    Prior to reconfiguration, make sure you remove any leftovers from
    the previous build.*

    Running 'make' outputs

    */Users/wmacdonald/QtSrc2/qtbase/bin/qmake -o Makefile qt.pro -qtconf /Users/wmacdonald/QtSrc2/qtbase/bin/qt.conf --

    Running configuration tests...
    Done running configuration tests.

    Configure summary:*

    Anyone seen either of these before?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Where did you download your sources from ?



  • directly from qt.io. I downloaded the Qt 5.6.2 source package with UNIX line endings.


  • Lifetime Qt Champion

    Which one exactly ? There are several possibilities for Unix.



  • It's the .tar.gz UNIX Line endings from the developer accounts download page

    log in -> downloads -> "Qt" and "5.6.2" from the drop downs -> Qt Source Package, UNIX Line endings.

    I get the filename qt-everywhere-enterprise-src-5.6.2.tar.gz

    The open source package from here http://download.qt.io/archive/qt/5.6/5.6.2/single/qt-everywhere-opensource-src-5.6.2.tar.gz gives me the same trouble.


Log in to reply
 

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