ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How can i create a package compiled on raspberry pi?

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

MarcosM gravatar image

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

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/libboost_signals-mt.so /usr/bin/ld: cannot find -l:/usr/lib/libboost_filesystem-mt.so /usr/bin/ld: cannot find -l:/usr/lib/libboost_regex-mt.so /usr/bin/ld: cannot find -l:/usr/lib/liblog4cxx.so /usr/bin/ld: cannot find -l:/usr/lib/libboost_date_time-mt.so /usr/bin/ld: cannot find -l:/usr/lib/libboost_system-mt.so /usr/bin/ld: cannot find -l:/usr/lib/libboost_thread-mt.so 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

Comments

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

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

2 Answers

Sort by » oldest newest most voted
0

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

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
0

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

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

Question Tools

1 follower

Stats

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

Seen: 686 times

Last updated: Nov 11 '14