Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV3.4.1 build erron issue on Ubuntu 16.04 LTS

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?