Refreshing the build directory
-
I have updated from MacOS 10.14 to MacOS 10.15 and I use Qt 5.14.1. Typing "make clean" produces the message
"The platform SDK has been changed from version 10.14.6 to version 10.15.4.This requires a fresh build. Please wipe the build directory completely, including any .qmake.stash and .qmake.cache files generated by qmake."
Where can I find this build directory? -
Hi and welcome to devnet,
You can see it in the configuration of your project.
You can also see it in the build log.
It's also usually in the folder beside the one containing your sources. -
Not your Qt version, your project.
-
How are you triggering the compilation ?
Where is your app generated ? -
I log my console application on my iMac. I set
cd /texstudio
and I type the following lines
/usr/local/Cellar/qt/5.14.1/bin/qmake NO_POPPLER_PREVIEW=true texstudio.pro
make clean
make -j 4In the good case the texstudio.app is generated into the folder /texstudio. Then I move this application in the Application folder of MacOS
-
Then please start using out of source builds.
Call "make distclean" and then check for files like .qmake.cache. Remove them all.If you are using git then you can do "git clean -ddfx"
-
I send you the log of "make distclean"
make distclean
make: *** No rule to make target `texstudio'. Stop.
The platform SDK has been changed from version 10.14.6 to version 10.15.4.
This requires a fresh build. Please wipe the build directory completely,
including any .qmake.stash and .qmake.cache files generated by qmake.
/usr/local/Cellar/qt/5.14.1/mkspecs/features/mac/sdk.mk:22: *** ^. Stop. -
Are you sources version controlled ?
If not, did you manually remove the files suggested both in the error and me ? -
Nice it is fixed however I still recommend moving to out of source builds.
In any case, please mark the thread as solved so that other forum users may know a solution has been found.