**Cmake error: the source… Does not match the used to generate cache Re-run cmake…
Solution:
Delete the CMakeLists.txt.user file in the project.
problem is solved. Later, it is found that the file is also a cache file, which contains the compilation status information of the project before, such as the debug directory. In cmake, if there is this file, the compiler will use the relevant cache information in this file, so various errors will occur:
delete the file and restart cmake, A new file is regenerated.
Read More:
- [Solved] Cmake compile opencv open-source project Error: but it set OpenCV_FOUND to FALSE so package “OpenCV” is considered to be…
- CMake Error: The source directory “opencv Install Catalog“ does not appear to contain CMakeLists.txt.
- Cmake compile cocos2d-x error [How to Solve]
- [Solved] CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
- Cmake Compile opencv error: The system is: Windows – 10.0.19042 – AMD64 (Log File)
- [Solved] Opencv Compile Error: (CMake Error: The following variables are used in this project, but they are set to not)
- No match for ‘operator =’ both ends of the equal sign do not match
- How to Solve QT Error: The build directory needs to be at the same level as the source directory.
- [Solved] CMake Error: The current CMakeCache.txt directory is different than xxx
- [Solved] CCS compilation and debug error: Source lookup: unable to restore CPU specific source container – expecting valid source container id value.
- [Solved] cmake: symbol lookup error: cmake: undefined symbol: _ZN4Json5ValueC1ERKSs
- [Solved] ORB_SLAM3 Compile Error: opencv4.0 not found four
- [Solved] Mac Cmake Complie openmp Error: fatal error: ‘omp.h‘ file not found
- [Solved] CMake Error: Could not create named generator Visual Studio 16 2019 -A Win64
- [Solved] QT Compile Error: nmake: fatal error u1077
- [Solved] MindSpore Error: ValueError: Minimum inputs size 0 does not match…
- error: src refspec master does not match any [How to Solve]
- [Solved] CMake Error Cannot specify link libraries for target “variational“ which is not built by this projec
- [Solved] CMake Error: Could not create named generator Visual Studio 16 2019
- error: src refspec master does not match any [How to Solve]