Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

qmake error: Project ERROR: failed to parse default search paths from compiler output on MacOS High Sierra



  • I just encountered the same problem like here: Can't get qmake to work from command line on MacOS High Sierra

    It seems that clang on High Sierra got a bit more picky when it comes to paths from environment variables.

    I had something like this in my .profile:

    export LD_PATH="$LD_PATH:$HOME/.local/lib"
    

    But LD_PATH was empty before this line, so the content had a colon in the beginning. E.g. like this:

    :/Users/hvoigt/.local/lib
    

    That lead to the error. Removing the colon or the content made qmake work again.

    I would blame this on OSX High Sierra, because I upgraded a machine to it which had a previous Qt installation lying around which worked fine before the upgrade.

    I thought I might put this solution out there, so others do not need to use as much time to solve this as I did.


Log in to reply