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

rosmake perception_pcl after change of pcl source

asked 2012-05-09 23:52:33 -0600

Stefan gravatar image


I use the source based installed version of pcl-trunk (perception_pcl_electric_unstable). I changed some visualization functions and want to compile them. Is there a way to compile only the changed part of pcl or do I need compile everything with

rosmake pcl --pre-clean?

It would save me a lot of time!

Thanks a lot


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-05-10 11:26:45 -0600

Stefan gravatar image

updated 2012-05-10 11:28:06 -0600

Thanks for your answer!

Thats the error I get: I thinks that has something to do with the reimplementation of sensor_msgs in pcl. That files will be deleted in the Makefile of perception_pcl/pcl/

Linking CXX shared library ../lib/
/usr/bin/ld: cannot find -lsensor_msgs
collect2: ld returned 1 exit status
make[2]: * [lib/] Error 1
[visualization/CMakeFiles/pcl_visualization.dir/all] Error 2
make: *
* [all] Error 2

Thanks Stefan

edit flag offensive delete link more


Ah ok. So if you look in the Makefile found in the root of the pcl package directory, there are a couple of lines that export library path variables. Copy and paste these into your shell before doing the above.

bhaskara gravatar image bhaskara  ( 2012-05-11 10:16:09 -0600 )edit

That works! Thanks

Stefan gravatar image Stefan  ( 2012-05-12 02:03:16 -0600 )edit

That works!

Stefan gravatar image Stefan  ( 2012-05-12 02:03:18 -0600 )edit

answered 2012-05-10 10:26:40 -0600

bhaskara gravatar image

updated 2012-05-10 10:27:52 -0600

Sure, just do

$ roscd pcl/build/pcl_trunk/build
$ make
$ make install

I believe the make install should work; if not, just do

$ cp ../lib/* `rospack find pcl`/lib


edit flag offensive delete link more

Question Tools


Asked: 2012-05-09 23:52:33 -0600

Seen: 380 times

Last updated: May 10 '12