subhashini.d
Posts: 1
Joined: Mon Sep 09, 2019 12:51 pm

Error in make -j4

Mon Sep 09, 2019 12:59 pm

I am using the OS as raspbian buster and trying to configure opencv 3.1.0 and python 3.
I am following the tutorial given in https://www.deciphertechnic.com/install ... pberry-pi/

I am getting errors when doing step 9, "make -j4".

Errors are:
make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/build.make:128: modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:4170: modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

Please help me to figure this out. I have redone the steps but getting the same error every time.

User avatar
topguy
Posts: 5759
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Error in make -j4

Mon Sep 09, 2019 1:33 pm

What model Pi are you running this on ? This is very often a "out of memory" problem.

Test with "make" or "make -j2" and see if it continue the build or not.

Ernst
Posts: 1230
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: Error in make -j4

Mon Sep 09, 2019 6:36 pm

subhashini.d wrote:
Mon Sep 09, 2019 12:59 pm
I am using the OS as raspbian buster and trying to configure opencv 3.1.0 and python 3.
I am following the tutorial given in https://www.deciphertechnic.com/install ... pberry-pi/
The tutorial uses opencv 3.4.1, why are you using 3.1.0 ?
subhashini.d wrote:
Mon Sep 09, 2019 12:59 pm
I am getting errors when doing step 9, "make -j4".

Errors are:
make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/build.make:128: modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:4170: modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
for 3.1.0 it may help to search with google for the string "cap_ffmpeg.cpp.o] Error 1"
for 3.4.1 it may help to look at this link: https://bugs.gentoo.org/691480
The road to insanity is paved with static ip addresses

Return to “Beginners”