CMake Error: The current CMakeCache.txt directory /home/zkc/opencv-4.4.0/build/CMakeCache.txt is different than the directory /home/zkc/software/opencv-4.4.0/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt CMake Error: The source "/home/zkc/opencv-4.4.0/CMakeLists.txt" does not match the source "/home/zkc/software/opencv-4.4.0/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory.
时间: 2023-05-11 18:04:47 浏览: 741
opencv4.5.0-cache.zip
这个错误是由于 CMakeCache.txt 文件所在的目录与创建该文件时的目录不同导致的。这可能会导致二进制文件被创建在错误的位置。如果您不确定,请重新编辑 CMakeCache.txt 文件。另外,源文件目录也不匹配,需要使用不同的源目录重新运行 cmake。
阅读全文