OpenCV3.4.1 build erron issue on Ubuntu 16.04 LTS

asked 2018-04-01 03:29:22 -0600

Vahe gravatar image

Hello everyone, I'm trying to install OpenCV 3.4.1 on my Ubuntu 16.04 lts following the steps described in Ubuntu 16.04: How to install OpenCV After make -j4 command I'm geting the following error:

[ 86%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o /home/developer/opencv-3.4.1/modules/python/src2/cv2.cpp:22:40: fatal error: pyopencv_generated_include.h: No such file or directory compilation terminated. modules/python3/CMakeFiles/opencv_python3.dir/build.make:62: recipe for target 'modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o' failed make[2]: * [modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1 CMakeFiles/Makefile2:29211: recipe for target 'modules/python3/CMakeFiles/opencv_python3.dir/all' failed make[1]: [modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: ** [all] Error 2

Then I have tried "make gen_opencv_python_source" and "make all" commands. After that at the last step when I run make install I'm getting again the same error (see above). Could somebody tell how to solve this?

edit retag flag offensive close merge delete

Comments

Yes, in that tutorial there is not such command. I found it from https://github.com/opencv/opencv_contrib/issues/1354 link, but it does not solve the problem

Vahe gravatar imageVahe ( 2018-04-01 03:40:47 -0600 )edit