Ask Your Question
0

make -j4 fails when installing openCV for ubuntu 16.04

asked 2017-09-19 09:34:04 -0500

When make -j4 it ended up fails like this:

[ 86%] Linking CXX executable ../../bin/opencv_perf_stitching

[ 87%] Built target opencv_test_stitching

[ 87%] Generating pyopencv_generated_include.h, pyopencv_generated_funcs.h, pyopencv_generated_types.h, pyopencv_generated_type_reg.h, pyopencv_generated_ns_reg.h

/bin/sh: 1: /home/jbd/.virtualenv/OCR/bin/python: not found

modules/python2/CMakeFiles/opencv_python2.dir/build.make:325: recipe for target 'modules/python2/pyopencv_generated_include.h' failed

make[2]: * [modules/python2/pyopencv_generated_include.h] Error 127

CMakeFiles/Makefile2:21825: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/all' failed

make[1]: * [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2

make[1]: * Waiting for unfinished jobs....

[ 87%] Built target opencv_perf_stitching

Makefile:160: recipe for target 'all' failed

make: * [all] Error 2

I've searched everywhere for 2 weeks for the solution but none of them are any help, is there any solution?

edit retag flag offensive close merge delete

Comments

/home/jbd/.virtualenv/OCR/bin/python -- probably no snake living there.

what did you pass to cmake for the python params ?

berak gravatar imageberak ( 2017-09-19 09:44:37 -0500 )edit

cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D INSTALL_C_EXAMPLES=ON \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D WITH_TBB=ON \ -D WITH_V4L=ON \ -D WITH_QT=ON \ -D WITH_OPENGL=ON \ -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \ -D BUILD_EXAMPLES=ON .. something like this...

GalangZero13 gravatar imageGalangZero13 ( 2017-09-19 10:01:52 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
-3

answered 2017-09-19 19:47:01 -0500

supra56 gravatar image

Don't use any numbers between 2 to 4. Used make -j1. That will take at least 3hrs.

edit flag offensive delete link more

Comments

this does not answer the question at all

berak gravatar imageberak ( 2017-09-19 19:48:29 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-09-19 09:34:04 -0500

Seen: 678 times

Last updated: Sep 19 '17