Unsolved Add New..., Add Existing Files..., Add Existing Directory... all greyed out in a qMake project, episode 3
-
Re: [Add New...](Add Existing Files...)
Is there anything new under the sun ?
I just downloaded a binary installation for qt, and ran the installation. Here's what the "About" says:
Qt Creator 7.0.2 Based on Qt 6.2.3 (Clang 13.0 (Apple), 64 bit) Built on May 23 2022 01:27:08 From revision ac1e86fe74
Started a band new project, and I want to add some existing files. Like many others apparently, Add Existing... are all grayed out.
This is a continuation from "episode 2", which can be found here: https://forum.qt.io/topic/104597/add-new-add-existing-files-add-existing-directory-all-greyed-out-in-a-qmake-project-episode-2/2
The only (and I mean only) change from the plain version is my adding the beautifier plugin. Can't believe that that would be the problem, particularly since if I configure qt creator to not load it, the problem persists.
Would be nice if this was fixed.
Reported this bug: https://bugreports.qt.io/browse/QTCREATORBUG-27891
-
Would be nice if this was fixed.
What is the bug number you reported this under?
-
@ChrisW67 My sincere apologies, I imagined that this bug had been reported by others before. I will make a bug report and post it here as soon as I have done so.
-
@oin-oin so, same as the old topic :D
have you selected and configured a correct and working kit for your new project ?
I think it will remain greyed out, until you have that set up correctly
-
@J-Hilk Thanks for the suggestion. I think everything is configured ok (at least nothing is complaining, as far as I can see).
What would the warning signs look like ? What should I look out for ? (Yes, I am a qt newbie). The only complaint I see is a warning about not selecting an ios device, but I'm not building for ios, my CMAKE_OSX_DEPLOYMENT_TARGET is 10.14. I did leave the CMAKE_OSX_ARCHITECTURES field empty, not really knowing what to put there.
-
@oin-oin ah cmake!
should have asked about that from the beginning.
QtCreator does not support adding files to cmake projects via the wizards. IIRC that is due to the way cmake is working. There is no one right way to add files, so QtC doesn't do it automatically.
You will have to add them manually in the CmakeList.txt
see here:
https://forum.qt.io/topic/134251/how-to-add-existing-files-to-a-cmake-project -
@J-Hilk OK, thank you for the clarification, and sorry about the qmake/cmake mixup.