"catkin_make" on my Raspberry Pi is so slow. Is there any idea to improve this?

asked 2020-12-18 00:41:17 -0500

murakami gravatar image

updated 2020-12-18 00:47:27 -0500

Hello. I'm ROS beginner trying to move my robot with Raspberry Pi.

When I build my packages with "catkin_make", it always stops once with the error "internal compiler error". If I do it one more, It finishes correctly.

I guess it's because of the performance of a Raspberry Pi. But I want to build packages faster. Is there any idea to reduce time for "catkin_make"?

Thanks for your help.

edit retag flag offensive close merge delete

Comments

I have an idea but I think it should be more a problem than a solution. Nevertheless i will leave it here just to help to undersand how c++ works a little more.

There is elements which are produced at compile time and others at runtime. In order to put an example we could say that global and static variables are created at compile time but local variables inside function are created at runtime. So, if you put less golbal variables, the compile time should be smaller. Nevertheless, for me seems a bad idea cause can make the runtime code more heavy.

So, like that, you could try to define elements which are defined at compile time to be defined at runtime, but soon or late they will be defined (there is no magic) so, i think it should be better to thefine them at compile time.

Solrac3589 gravatar image Solrac3589  ( 2020-12-18 03:38:36 -0500 )edit

Does it also gives the error when you first clean the workspace? And you can make specific packages (so you don't have to make you whole workspace if you just modified one package): https://answers.ros.org/question/5417...

crnewton gravatar image crnewton  ( 2020-12-18 09:18:59 -0500 )edit