How to build Opencv C++ on a DragonBoard

103 Views Asked by At

I am trying to build opencv library on a single board computer called DragonBoard 410C, which has a 1GB Ram, 8GB eMMC, linaro distribution for that board. When I am trying to build opencv it give me the following message:

c++: fatal error: Killed signal terminated program cc1plus

What I knew is that I had to make the built with only one process using -j1 option for the built. Nevertheless, the built never complete and stops on the same file @ 40%. I noticed that the RAM usage is rising to more than 90% of its capacity. The RAM idle usage 0.41GB/0.89GB.

Therefore, is it beyond the capability of the DragonBoard, or I am doing the build wrong?

Error message:

[  1%] Built target libopenjp2
[  5%] Built target carotene_objs
[  6%] Built target tegra_hal
[  6%] Built target opencv_videoio_plugins
[  7%] Built target ittnotify
[ 15%] Built target opencv_core
[ 20%] Built target opencv_imgproc
[ 29%] Built target libwebp
[ 37%] Built target IlmImf
[ 39%] Built target opencv_imgcodecs
[ 40%] Built target opencv_videoio
[ 40%] Built target opencv_highgui
[ 40%] Built target opencv_ts
[ 40%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_operations.cpp.o
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [modules/core/CMakeFiles/opencv_test_core.dir/build.make:496: modules/core/CMakeFiles/opencv_test_core.dir/test/test_operations.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1788: modules/core/CMakeFiles/opencv_test_core.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
0

There are 0 best solutions below