qmake error: Project ERROR: failed to parse default search paths from compiler output on MacOS Sonoma 14.0 & QT Version 5.15.13
-
After updating the macOS from 13.4 to 14 we are getting the following error while building mac OSX build.
qmake error: Project ERROR: failed to parse default search paths from compiler output.
We are using QT version 5.15.13 & also we have updated the xcode version to Version 15.0
-
Hi, I got the same error yesterday and I am still on Ventura 13.5.2.
For me that error ("... failed to parse default search patterns...) started yesterday when my Xcode was updated to version 15.0.I have Qt 6.5.2.
The error only occurs for projects using qmake (i.e. .pro files).
Projects with CMake still work fine. -
S SGaist referenced this topic on
-
H hskoglund referenced this topic on
-
hi,
I have applied this patch to /Users/username/Qt/5.15.15/macos/mkspecs/features/toolchain.prf
But I still get the same Error.
Project ERROR: failed to parse default search paths from compiler output
1: error: Error while parsing fileEnvironment: Ventura 13.5.1 on M1 Macintosh with Qt 5.15.5
-
hi,
I have applied this patch to /Users/username/Qt/5.15.15/macos/mkspecs/features/toolchain.prf
But I still get the same Error.
Project ERROR: failed to parse default search paths from compiler output
1: error: Error while parsing fileEnvironment: Ventura 13.5.1 on M1 Macintosh with Qt 5.15.5
I have found a solution here (last entry):
https://bugreports.qt.io/browse/QTBUG-117747?jql=project %3D QTBUG AND component %3D "Build tools%3A qmake"I have now replaced my copy of clang_64/mkspecs/features/toolchain.prf with the one available at https://github.com/qt/qtbase/blob/dev/mkspecs/features/toolchain.prf.
This did the trick and worked for me.
-
I have replaced toolchain.prf but still getting same error.
-
@hskoglund
I have replaced toolchain.prf & also deleted the <projectname>.pro.user file, but still getting same error. -
Fixed in https://bugreports.qt.io/browse/QTBUG-117225
If you don't wait for Qt 6.5.3 or 5.15.16 you can apply the fix yourself, by editing ~/Qt/6.5.2/macos/mkspecs/features/toolchain.prf
see here@hskoglund I've had this exact issue after updating to sonoma and the instructions you provided have fixed my issue (at least).
I just manually edited the file and after that projects are compiling again.