When I try to build OpenCV for java on Ubuntu I got the following error:
[ 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
Could anyone tell me what I need to do resolve this problem?
This link suggests you need to upgrade to a newer CMake version.
You could either upgrade to a new Ubuntu release, or use a PPA, or build CMake from source.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.