使用CMake的Qt Creator项目:删除文件的问题

时间:2018-01-18 20:11:34

标签: c++ qt cmake

所以这是来自CMake和Qt的新人的快速(可能是无聊的)问题。

我目前正在使用Qt Creator和CMake一起创建一些项目。我有2个C ++文件,我必须删除它们不再在代码库中的任何地方使用。我已经从项目中删除了它们,CMakeLists.txt文件,修改了构建和qt_build目录,然后继续尝试重建。但是,在运行看起来像这样的qmake时,我似乎得到了警告......

15:03:03: Running steps for project Traveler...
15:03:03: Starting: "C:\Qt\5.9.2\msvc2017_64\bin\qmake.exe" C:\Users\someone\Traveler\Traveler.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"**    
Info: creating stash file C:\...\build-traveler-Desktop_Qt_5_9_2_MSVC2017_64bit-Debug\.qmake.stash
    WARNING: Failure to find: src\XX_Exceptions.cpp
    WARNING: Failure to find: include\XX_Exceptions.hpp
    WARNING: Failure to find: src\XX_Exceptions.cpp
    WARNING: Failure to find: include\XX_Exceptions.hpp
    15:03:07: The process "C:\Qt\5.9.2\msvc2017_64\bin\qmake.exe" exited normally.
    15:03:07: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe" qmake_all

似乎qmake没有错误退出,但我真的不喜欢看到这些编译器警告(特别是重复,所以它出现在两个地方)。

然后,当我继续尝试建立......

15:16:27: Running steps for project Traveler...
15:16:27: Configuration unchanged, skipping qmake step.
15:16:27: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe" 
    C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
Error: dependent 'src\XX_Exceptions.cpp' does not exist.
jom: C:\Users\someone\build-Traveler-Desktop_Qt_5_9_2_MSVC2017_64bit-Debug\Makefile [debug] Error 2
15:16:28: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project Traveler (kit: Desktop Qt 5.9.2 MSVC2017 64bit)
The kit Desktop Qt 5.9.2 MSVC2017 64bit has configuration issues which might be the root cause for this problem.
When executing step "Make"

问题 ::在我编制构建目录之后,除了CMakeLists之外,是否有任何位置可以引用项目中的特定文件?

0 个答案:

没有答案