Project ERROR: failed to parse default search paths from compiler output
-
I am trying out a QT project, specifically this one: https://gitlab.com/eql/lqml. My machine is Mac m1. My installation is
brew
and online installer (I tried both).I have not been successful in compiling this project using qmake, the error being:
Project ERROR: failed to parse default search paths from compiler output
There seems to be two posts on this forum, but I am struggling to get it to apply to my case.
So I added
-d
to qmake and found out:DEBUG 1: /opt/homebrew/Cellar/qt@5/5.15.8_3/mkspecs/features/toolchain.prf:291: calling built-in isEmpty(QMAKE_DEFAULT_LIBDIRS)
DEBUG 1: /opt/homebrew/Cellar/qt@5/5.15.8_3/mkspecs/features/toolchain.prf:291: test function returned trueFor some reason nothing was added to
QMAKE_DEFAULT_LIBDIRS
, whilst parsing the compiler output.
Inspecting the compiler output (I have taken out the bits I think is most relevant to lib path):-L. -L/lib -L/opt/homebrew/lib -v /var/folders/p4/fdb1p15530n00cx05d2xjkgm0000gn/T/--b0e304.o -lc++ -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.1.6/lib/darwin/libclang_rt.osx.a" "@(#)PROGRAM:ld PROJECT:ld64-764" "BUILD 11:29:07 May 17 2022" "configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em" "ld: warning: directory not found for option '-L/lib'" "Library search paths:" \t. \t/opt/homebrew/lib \t/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib "Framework search paths:" \t/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/