Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Can't get qmake to work from command line on MacOS High Sierra
Qt 6.12 LTS is out! See what's new in the release blog

Can't get qmake to work from command line on MacOS High Sierra

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 2.6k Views 2 Watching
  • 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.
  • L Offline
    L Offline
    lordnoriyuki
    wrote on last edited by
    #1

    MacOS High Sierra 10.13
    QT 5.9.2 or QT 5.10.0 beta

    Installed QT in ~/Qt

    I can build just fine from QtCreator, but if I try to use qmake from the command line I always get (for any project I try):

    Project ERROR: failed to parse default search paths from compiler output

    For example, from the basiclayouts example:

    /Users/###/Qt/5.10.0/clang_64/bin/qmake -o Makefile ../basiclayouts/basiclayouts.pro -spec macx-clang CONFIG+=debug CONFIG+=x86_64 CONFIG+=qml_debug
    Project ERROR: failed to parse default search paths from compiler output
    

    With debug on qmake, it looks like this is the point where it fails:

    DEBUG 1: /Users/###/Qt/5.10.0/clang_64/mkspecs/features/toolchain.prf:142: calling built-in isEmpty(QMAKE_DEFAULT_LIBDIRS)
    

    So QMAKE_DEFAULT_LIBDIRS is empty but isn't expected to be.

    Clang version details:

    Apple LLVM version 9.0.0 (clang-900.0.37)
    Target: x86_64-apple-darwin17.0.0
    

    Any ideas what I've got set up wrong?

    Thanks

    1 Reply Last reply
    1

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt
    • Unsolved