当我试图在Ubuntu上为java构建OpenCV时,我得到了以下错误:
[ 61%] Built target opencv_test_objdetect
Generating opencl_kernels.cpp, opencl_kernels.hpp
CMake Error at /home/dinhvantan/opencv/opencv/cmake/cl2cpp.cmake:50 (string):
string does not recognize sub-command MD5
make[2]: *** [modules/ocl/opencl_kernels.cpp] Error 1
make[1]: *** [modules/ocl/CMakeFiles/opencv_ocl.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 70%] Built target opencv_legacy
make: *** [all] Error 2
有人能告诉我解决这个问题需要做什么吗?
此链接建议您需要升级到较新的CMake版本。
您可以升级到新的Ubuntu版本,也可以使用PPA,或者从源代码构建CMake。