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

upgrading to pcl 1.3 in electric

asked 2011-11-09 01:37:24 -0500

Nick Armstrong-Crews gravatar image


I'm trying to use some features that are specific to pcl 1.3; I believe 1.0 or 1.1 is in the electric release?

So I downloaded/installed the (non-ROS) pcl 1.3 package with apt. But now the build system gets confused, and will compile against the 1.3 headers but link against the 1.0 libraries.

Errors appear as follows (many of these):

(.rodata._ZTVN3pcl6search17OrganizedNeighborINS_11PointXYZRGBEEE[vtable for pcl::search::OrganizedNeighbor<pcl::PointXYZRGB>]+0x68):
undefined reference to `pcl::search::OrganizedNeighbor<pcl::PointXYZRGB>::radiusSearch(int, double, std::vector<int, std::allocator<int> >&, std::vector<float, std::allocator<float> >&, int) const'

My CMakeLists.txt looks like:

find_package(PCL 1.3 REQUIRED COMPONENTS io)

rosbuild_add_executable(pcl_test src/pcl_test.cpp)
target_link_libraries(pcl_test ${PCL_LIBRARIES})

manifest.xml declares dependencies on pcl and pcl_ros (I have also tried omitting these deps, in the hopes the linker would then do The Right Thing)

Thanks mucho!


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-11-09 10:41:41 -0500

joq gravatar image

Please see the answers to this similar question.

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


Asked: 2011-11-09 01:37:24 -0500

Seen: 354 times

Last updated: Nov 09 '11