我本来想在Ubuntu PC上运行这个项目,但是我收到了一个错误。
当我运行下面的代码时;
make
并且,在下面有一个错误;
asiye@asiye:~/Desktop/cmfd_framework/build$ make
Consolidate compiler generated dependencies of target common
[ 8%] Built target common
[ 10%] Building CXX object ground_truth_db/CMakeFiles/cmfdgt.dir/command_ground_truth.cpp.o
/home/asiye/Desktop/cmfd_framework/ground_truth_db/command_ground_truth.cpp:10:10: fatal error: cv.h: No such file or directory
10 | #include "cv.h"
| ^~~~
compilation terminated.
make[2]: * [ground_truth_db/CMakeFiles/cmfdgt.dir/build.make:76: ground_truth_db/CMakeFiles/cmfdgt.dir/command_ground_truth.cpp.o] Error 1
make[1]: * [CMakeFiles/Makefile2:205: ground_truth_db/CMakeFiles/cmfdgt.dir/all] Error 2
make: * [Makefile:91: all] Error 2
我认为Cmake找不到OpenCV库,但为什么呢?
你能向我解释一下是否有其他方法来解决这个问题吗?
顺祝商祺!
1条答案
按热度按时间jdzmm42g1#
Cmake多夏瑟布拉达Yunus Temurlenk
CMakeLists.txt文件