Rogerrubens
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

Hi,

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

unzip opencv-2.4.8
cd opencv-2.4.8
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local..
make <-- HERE
sudo make install
I am getting this error:

....Continuation....
[ 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
root@raspberrypi:/opencv-2.4.8/release#


Do You know what I might be doing wrong?

Thank you.

User avatar
hanzelpeter
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”