Description
I try to compile Dlib on Raspberry Pi 3 with Ubuntu 16.04 OS but it always stop in the middle.
I run 'cmake --build . --config Release'
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-5/README.Bugs for instructions.
CMakeFiles/dlib_.dir/build.make:86: recipe for target 'CMakeFiles/dlib_.dir/src/matrix.cpp.o' failed
make[2]: *** [CMakeFiles/dlib_.dir/src/matrix.cpp.o] Error 4
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/dlib_.dir/all' failed
make[1]: *** [CMakeFiles/dlib_.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
trungdn@trungdn-desktop:/src/dlib/python_examples/build$ ^C/src/dlib/python_examples/build$
trungdn@trungdn-desktop:
Activity
e-fominov commentedon May 20, 2016
This is possible means not enough memory. How to change spaw space
Why building from python_examples?
Did you tried to follow instructions from readme.txt?
Are you able to build and run normal examples?
trungdn commentedon May 20, 2016
No. I tried the normal way and it still stop in the middle. I will try to swap mem.
trungdn commentedon May 23, 2016
Yes. It worked when I swap mem by 2Gb.
Thank you very much.
parthlathiya2697 commentedon Feb 15, 2021
Worked like charm. Memory was the issue. My AWS instance had only 1 gb space. Reading the problem intuition, I created a swap space of 6 more gb and it worked.
Now, I'm able to complete installation.
Thanks
Regards 🤗