Revisiting project build
-
First of all, merry xmas to all.
I've opened Qt Creator this morning, on my iMAC:
macOS Monterey iMac (Retina 5K, 27-inch, Late 2015) Processor 4 GHz Quad-Core Intel Core i7 Memory 16 GB 1867 MHz DDR3 Graphics AMD Radeon R9 M395X 4 GB
Qt Creator 9.0.1:
``
Based on Qt 6.4.0 (Clang 13.0 (Apple), x86_64)
Built on Dec 14 2022 02:30:00
From revision 938231cf0dI've deleted the build folder for a project and selected the kit **Qt 5.15.2 clang 64bit**. The build folder: build-mdFIO-Qt_5_15_2_for_macOS-Debug I've run **qmake** on the project and it displays in the Issues:
:-1: error: No rule to make target
mdFIO'. Stop.If I try to rebuild the project:
:-1: warning: No rule to make target
mdFIO'. Stop. /Users/sy/Qt/5.15.2/clang_64/mkspecs/features/mac/sdk.mk:22: warning: *** ^. Stop. :-1: error: No rule to make target
mdFIO'. Stop.I've tried cleaning out the build folder entirely but the loop in continuous, what can I do? what could be the problem?
-
@SPlatten said in Revisiting project build:
The platform SDK has been changed from version 12.3 to version 13.1.
check this out
https://stackoverflow.com/questions/65952224/qtcreator-fails-on-macos-sdk-11-1delete this one?
/Users/[my username]/.qmake.stash -
First of all, merry xmas to all.
I've opened Qt Creator this morning, on my iMAC:
macOS Monterey iMac (Retina 5K, 27-inch, Late 2015) Processor 4 GHz Quad-Core Intel Core i7 Memory 16 GB 1867 MHz DDR3 Graphics AMD Radeon R9 M395X 4 GB
Qt Creator 9.0.1:
``
Based on Qt 6.4.0 (Clang 13.0 (Apple), x86_64)
Built on Dec 14 2022 02:30:00
From revision 938231cf0dI've deleted the build folder for a project and selected the kit **Qt 5.15.2 clang 64bit**. The build folder: build-mdFIO-Qt_5_15_2_for_macOS-Debug I've run **qmake** on the project and it displays in the Issues:
:-1: error: No rule to make target
mdFIO'. Stop.If I try to rebuild the project:
:-1: warning: No rule to make target
mdFIO'. Stop. /Users/sy/Qt/5.15.2/clang_64/mkspecs/features/mac/sdk.mk:22: warning: *** ^. Stop. :-1: error: No rule to make target
mdFIO'. Stop.I've tried cleaning out the build folder entirely but the loop in continuous, what can I do? what could be the problem?
So I've moved on, after searching around I found that there needs to be a source file in the build with the same name as the make file, in my case I renamed main.cpp to mdFIO.cpp.
I also removed the contents of the build file including any hidden files, then rebuilt project, now the issue is:
08:48:02: Running steps for project mdFIO... 08:48:02: Starting: "/Users/sy/Qt/5.15.2/clang_64/bin/qmake" /Users/sy/XMLMPAM/mdFIO/mdFIO.pro -spec macx-clang CONFIG+=debug CONFIG+=qml_debug CONFIG+=force_debug_info CONFIG+=separate_debug_info 08:48:11: The process "/Users/sy/Qt/5.15.2/clang_64/bin/qmake" exited normally. 08:48:11: Starting: "/usr/bin/make" -f /Users/sy/XMLMPAM/build-mdFIO-Desktop_Qt_5_15_2_clang_64bit-Debug/Makefile qmake_all The platform SDK has been changed from version 12.3 to version 13.1. This requires a fresh build. Please wipe the build directory completely, including any .qmake.stash and .qmake.cache files generated by qmake. /Users/sy/Qt/5.15.2/clang_64/mkspecs/features/mac/sdk.mk:22: *** ^. Stop. 08:48:12: The process "/usr/bin/make" exited with code 2. Error while building/deploying project mdFIO (kit: Desktop Qt 5.15.2 clang 64bit) When executing step "qmake" 08:48:12: Elapsed time: 00:09.
I've done as suggested, however it doesn't help and this is a never ending loop.
-
So I've moved on, after searching around I found that there needs to be a source file in the build with the same name as the make file, in my case I renamed main.cpp to mdFIO.cpp.
I also removed the contents of the build file including any hidden files, then rebuilt project, now the issue is:
08:48:02: Running steps for project mdFIO... 08:48:02: Starting: "/Users/sy/Qt/5.15.2/clang_64/bin/qmake" /Users/sy/XMLMPAM/mdFIO/mdFIO.pro -spec macx-clang CONFIG+=debug CONFIG+=qml_debug CONFIG+=force_debug_info CONFIG+=separate_debug_info 08:48:11: The process "/Users/sy/Qt/5.15.2/clang_64/bin/qmake" exited normally. 08:48:11: Starting: "/usr/bin/make" -f /Users/sy/XMLMPAM/build-mdFIO-Desktop_Qt_5_15_2_clang_64bit-Debug/Makefile qmake_all The platform SDK has been changed from version 12.3 to version 13.1. This requires a fresh build. Please wipe the build directory completely, including any .qmake.stash and .qmake.cache files generated by qmake. /Users/sy/Qt/5.15.2/clang_64/mkspecs/features/mac/sdk.mk:22: *** ^. Stop. 08:48:12: The process "/usr/bin/make" exited with code 2. Error while building/deploying project mdFIO (kit: Desktop Qt 5.15.2 clang 64bit) When executing step "qmake" 08:48:12: Elapsed time: 00:09.
I've done as suggested, however it doesn't help and this is a never ending loop.
07:15:21: Running steps for project mdFIO... 07:15:21: Starting: "/Users/sy/Qt/5.15.2/clang_64/bin/qmake" /Users/sy/XMLMPAM/mdFIO/mdFIO.pro -spec macx-clang CONFIG+=debug CONFIG+=qml_debug CONFIG+=force_debug_info CONFIG+=separate_debug_info 07:15:22: The process "/Users/sy/Qt/5.15.2/clang_64/bin/qmake" exited normally. 07:15:22: Starting: "/usr/bin/make" -f /Users/sy/XMLMPAM/build-mdFIO-Desktop_Qt_5_15_2_clang_64bit-Debug/Makefile qmake_all /Users/sy/Qt/5.15.2/clang_64/mkspecs/features/mac/sdk.mk:22: *** ^. Stop. The platform SDK has been changed from version 12.3 to version 13.1. This requires a fresh build. Please wipe the build directory completely, including any .qmake.stash and .qmake.cache files generated by qmake. 07:15:22: The process "/usr/bin/make" exited with code 2. Error while building/deploying project mdFIO (kit: Desktop Qt 5.15.2 clang 64bit) When executing step "qmake" 07:15:22: Elapsed time: 00:01.
Is there anything that can be done?
-
Hi,
The brutal way: disable the check in the file.
The correct way: rebuild Qt with the latest SDK.
-
Hi,
The brutal way: disable the check in the file.
The correct way: rebuild Qt with the latest SDK.
-
@SPlatten said in Revisiting project build:
The platform SDK has been changed from version 12.3 to version 13.1.
check this out
https://stackoverflow.com/questions/65952224/qtcreator-fails-on-macos-sdk-11-1delete this one?
/Users/[my username]/.qmake.stash -
@SPlatten said in Revisiting project build:
@SGaist , I’m completely up to date, are you suggesting I switch the SDK?
No, if you want to use the latest SDK as Apple recommends, you need to either rebuild your Qt 5.15.2 (or go with the latest of the 5.15 series if you build it anyway). Or make the test a no-op, which should work but might open other cans of worms.