ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How can i create a package compiled on raspberry pi?

asked 2014-11-08 12:57:14 -0500

MarcosM gravatar image

updated 2014-11-10 11:05:31 -0500

I´ve created a package in ROS Groovy installed on Ubuntu 12.04 with two very simple nodes that communicate sending a float32 to start learning with ROS but what i really need is to implemnet this on raspberry pi.I did the same steps in the two cases and it works on the computer but I get an error during compilation on the raspberry pi package.In the case of the raspberry pi i used leafpad text editor to create the two cpp files. Where may be the error?Are the cpp files created on Leafpad valid?

The error that i get is next>

Linking CXX executable ../bin/enviarnum /usr/bin/ld: cannot find -l:/usr/lib/ /usr/bin/ld: cannot find -l:/usr/lib/ /usr/bin/ld: cannot find -l:/usr/lib/ /usr/bin/ld: cannot find -l:/usr/lib/ /usr/bin/ld: cannot find -l:/usr/lib/ /usr/bin/ld: cannot find -l:/usr/lib/ /usr/bin/ld: cannot find -l:/usr/lib/ collect2: ld returned 1 exit status CMakeFiles/enviarnum.dir/build.make:103: recipe for target '../bin/enviarnum' failed make[3]: * [../bin/enviarnum] Error 1 make[3]: Leaving directory '/home/pi/catkin_ws/src/pruebas/build'

edit retag flag offensive close merge delete


It would be helpful to share the error message you get while compiling.

Mehdi. gravatar image Mehdi.  ( 2014-11-09 19:21:07 -0500 )edit

2 Answers

Sort by » oldest newest most voted

answered 2014-11-11 00:07:58 -0500

Mehdi. gravatar image

As the error message shows, you don't have boost libraries installed. I am not sure for the raspberry Pi but from what I saw boost is available in the repository.

sudo apt-get install libboost1.50-all

should fix your problem (not sure though which is the last version available for arm architectures).

If not, you could download boost and compile it by yourself but this would take a lot of time if done directly on the raspberry Pi (better do it on a raspberry emulator on your computer)

Boost webpage

The text editor doesn't have any influence on your cpp file. Cpp files are just text.

edit flag offensive delete link more

answered 2014-11-11 02:44:07 -0500

MarcosM gravatar image

I have the boost libraries installed because when I try to install it again it advise me that I have already that library and looking for them in the directory /usr/lib/liboost they appear there. Maybe the error can be in the path where ROS searches the libraries. Thank you for answer.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-11-08 12:56:01 -0500

Seen: 646 times

Last updated: Nov 11 '14