Posts: 3
Joined: Mon Sep 29, 2014 9:16 pm

Unable to build opencv on the raspberry pi running raspbian

Sun Oct 05, 2014 12:07 pm


I'm trying to install Opencv now.
In step:

unzip opencv-2.4.8
cd opencv-2.4.8
mkdir release
cd release
make <-- HERE
sudo make install
I am getting this error:

[ 71%] Building CXX object modules/gpu/CMakeFiles/opencv_perf_gpu.dir/perf/perf_features2d.cpp.o
[ 71%] Building CXX object modules/gpu/CMakeFiles/opencv_perf_gpu.dir/perf/perf_matop.cpp.o
[ 71%] Building CXX object modules/gpu/CMakeFiles/opencv_perf_gpu.dir/perf/perf_video.cpp.o
[ 71%] Building CXX object modules/gpu/CMakeFiles/opencv_perf_gpu.dir/perf/perf_imgproc.cpp.o
c++: internal compiler error: Morto (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
make[2]: ** [modules/gpu/CMakeFiles/opencv_perf_gpu.dir/perf/perf_imgproc.cpp.o] Erro 4
make[1]: ** [modules/gpu/CMakeFiles/opencv_perf_gpu.dir/all] Erro 2
make: ** [all] Erro 2

Do You know what I might be doing wrong?

Thank you.

User avatar
Posts: 75
Joined: Mon Jul 09, 2012 11:56 am

Re: Unable to build opencv on the raspberry pi running raspb

Sun Oct 05, 2014 12:18 pm

Hello. Please check logs a dmesg. Internal compiler error can be due to low swap space. I compiled some progs on RPi and it required 1gb of swap space.

Return to “General discussion”