ninja: error: 'D:/PROJECT/masb/鍩烘湰绠楁硶/褰掑苟鎺掑簭.cpp', needed by 'CMakeFiles/masb.dir/鍩烘湰绠楁硶/褰掑苟鎺掑簭.cpp.obj', missing and no known rule to make it
时间: 2023-05-30 13:07:59 浏览: 303
This error message is indicating that there is a missing file, '褰掑苟鎺掑簭.cpp', which is needed by the CMakeFiles/masb.dir/鍩烘湰绠楁硶/褰掑苟鎺掑簭.cpp.obj object file. The error message also suggests that there is no known rule to generate this file.
Possible solutions to this error include:
1. Check that the file '褰掑苟鎺掑簭.cpp' exists in the specified directory 'D:/PROJECT/masb/鍩烘湰绠楁硶/'. If the file is missing, add it to the directory.
2. Check that the file '褰掑苟鎺掑簭.cpp' is included in the CMakeLists.txt file for the project. If it is not included, add it to the list of source files.
3. Check that the file '褰掑苟鎺掑簭.cpp' is not misspelled or has the correct file extension. If the file is misspelled or has the wrong extension, rename it to the correct name and extension.
4. Check that the CMakeLists.txt file includes the appropriate rules to generate the object file. If there are no rules, add the appropriate rules to generate the object file.
5. If none of the above solutions work, try deleting the CMakeCache.txt file and rebuilding the project.
阅读全文