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

Revision history [back]

You should replace

target_link_libraries(testPCD ${catkin_LIBRARIES}  ${Boost_LIBRARIES} ${PCL_LIBRARY_DIRS})

By

target_link_libraries(testPCD ${catkin_LIBRARIES}  ${Boost_LIBRARIES} ${PCL_LIBRARY})

You should replace

target_link_libraries(testPCD ${catkin_LIBRARIES}  ${Boost_LIBRARIES} ${PCL_LIBRARY_DIRS})

By

target_link_libraries(testPCD ${catkin_LIBRARIES}  ${Boost_LIBRARIES} ${PCL_LIBRARY})

EDIT :

try to had

include_directories(${PCL_INCLUDE_DIRS})
#link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

in your CMakeList

You should replace

target_link_libraries(testPCD ${catkin_LIBRARIES}  ${Boost_LIBRARIES} ${PCL_LIBRARY_DIRS})

By

target_link_libraries(testPCD ${catkin_LIBRARIES}  ${Boost_LIBRARIES} ${PCL_LIBRARY})
${PCL_LIBRARY}

EDIT :

try to had

include_directories(${PCL_INCLUDE_DIRS})
#link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

in your CMakeList