Robotics StackExchange | Archived questions

Illegal Instruction Error when compiling opencv_apps

I am trying to use a Raspberry Pi3 running Raspbian Stretch with ROS Kinetic. I've installed the following package https://github.com/ros-perception/opencv_apps in a new catkin workspace, and then ran the command 'catkin make'. The problem occurs somewhere during Building CXX objects, which it gives an internal compile error. If I were to run 'catkin make' it will say "Internal compile error: Illegal Instruction" if I run 'catkin make -D' then it says "Internal compile error: Segmentation Fault'.

Any clues as to whats going on?

Asked by mbfg on 2019-09-19 19:18:05 UTC

Comments

Most likely your RPi is running out of memory.

Two things:

  • enable swap
  • run only a single job with make (catkin_make -j1)

Asked by gvdhoorn on 2019-09-20 06:15:23 UTC

Answers