0

Trying to install OpenCV 3.1.0 on Raspbian Pi-2, came up with this error.

Linking CXX static library ../../lib/libopencv_ts.a [ 52%] Built target opencv_ts Makefile:147: recipe for target 'all' failed make: *** [all] Error 2

Can't find the specific issue.

3

2 Answers 2

1

Use a 2A, 5V Adapter, and in the make process type sudo make -j3 instead of -j4. In some cases, the RasPi cannot handle using all the processor cores.

Regarding the use of the mentioned adapter, the peripherals are hungry for current. The Pi is short-circuit protected, when it can't get enough current for all the peripherals, it automatically shuts down. so use a 2A, 5V adapter to prevent the Pi from shutting down automatically.

0

Ok its so simple. 2 things first.

1) Are you compiling with Contrib package?

2) Did you allocate process to execute the make command like make -j #number ?

If 1, then some of the contrib packages are legacy, so try to compile the package that you need alone.

If 2, So simple please don't allocate any process for make command. Because due to dependencies make command will fail. So just compile with make command alone like $ make

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.