qmake error: Project ERROR: failed to parse default search paths from compiler output on MacOS Sonoma 14.0 & QT Version 5.15.13
-
wrote on 21 Sept 2023, 05:56 last edited by
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
-
wrote on 21 Sept 2023, 06:04 last edited by
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. -
wrote on 21 Sept 2023, 15:28 last edited by
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 -
-
-
wrote on 3 Oct 2023, 13:06 last edited by
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
wrote on 3 Oct 2023, 17:57 last edited byI 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.
-
wrote on 6 Oct 2023, 03:53 last edited by
I have replaced toolchain.prf but still getting same error.
-
wrote on 6 Oct 2023, 11:03 last edited by
Hi, try deleting your <projectname>.pro.user file and restart Qt Creator.
-
wrote on 9 Oct 2023, 06:20 last edited by
@hskoglund
I have replaced toolchain.prf & also deleted the <projectname>.pro.user file, but still getting same error. -
wrote on 9 Oct 2023, 07:30 last edited by
Try updating to Qt 5.15.16
If all else fails, try changing from qmake to CMake. -
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 herewrote on 1 Dec 2023, 16:25 last edited by@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.