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

rosmake perception_pcl after change of pcl source

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

Stefan gravatar image

Hi,

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

Stefan

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

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

Stefan gravatar image

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

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/libpcl_visualization.so
/usr/bin/ld: cannot find -lsensor_msgs
collect2: ld returned 1 exit status
make[2]: * [lib/libpcl_visualization.so.1.6.0] Error 1
make[1]:
[visualization/CMakeFiles/pcl_visualization.dir/all] Error 2
make: *
* [all] Error 2

Thanks Stefan

edit flag offensive delete link more

Comments

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 -0500 )edit

That works! Thanks

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

That works!

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

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

bhaskara gravatar image

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

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

instead.

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 396 times

Last updated: May 10 '12