问题描述
我在虚拟环境和conda版本4.5.12中使用了Python 3.6.9。当我尝试制作时,出现以下错误。
In file included from /home/m/opencv_contrib/modules/reg/samples/map_test.cpp:43:0:
/home/m/opencv/modules/imgcodecs/include/opencv2/imgcodecs/imgcodecs_c.h:1:2: error: #error "This header with legacy C API declarations has been removed from OpenCV. Legacy constants are available from legacy/constants_c.h file."
#error "This header with legacy C API declarations has been removed from OpenCV. Legacy constants are available from legacy/constants_c.h file."
^~~~~
modules/reg/CMakeFiles/example_reg_map_test.dir/build.make:62: recipe for target 'modules/reg/CMakeFiles/example_reg_map_test.dir/samples/map_test.cpp.o' Failed
make[2]: *** [modules/reg/CMakeFiles/example_reg_map_test.dir/samples/map_test.cpp.o] Error 1
CMakeFiles/Makefile2:3696: recipe for target 'modules/reg/CMakeFiles/example_reg_map_test.dir/all' Failed
make[1]: *** [modules/reg/CMakeFiles/example_reg_map_test.dir/all] Error 2
Makefile:162: recipe for target 'all' Failed
make: *** [all] Error 2**
请帮助我修复它。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)