I am simply trying to compile a program in ROS . I already linked all the necessary libraries but this one I can’t find. All I am getting is the following error in codeblocks (also in eclipse).
Anybody know how to get rid of this error? Or even which library it require?
cmake_minimum_required(VERSION 2.8.3)
project(gpuvoxelgetpointcloud)
find_package(catkin REQUIRED COMPONENTS
cmake_modules
roscpp
rospy
std_msgs
sensor_msgs
cv_bridge
image_transport
pcl_conversions
pcl_ros
)
find_package(icl_core REQUIRED )
find_package(gpu_voxels REQUIRED)
find_package(Boost COMPONENTS system REQUIRED)
find_package(orocos_kdl REQUIRED)
find_package(CUDA REQUIRED)
find_package(PCL 1.7 REQUIRED)
#include <pcl_ros/transforms.h>
#include <pcl/conversions.h>
#include <pcl/PCLPointCloud2.h>
I have add
find_package(PCL 1.7 REQUIRED)
catkin_package(
CATKIN_DEPENDS
pcl_conversions
sensor_msgs
roscpp)
add_definitions(
${icl_core_DEFINITIONS}
${gpu_voxels_DEFINITIONS}
${PCL_DEFINITIONS}
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
)
link_directories(${PCL_LIBRARY_DIRS} )
target_include_directories (DistanceKinectDemo
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
PUBLIC ${gpu_voxels_INCLUDE_DIRS}
PUBLIC ${orocos_kdl_INCLUDE_DIRS} # this should be removed in upcoming versions.
PUBLIC ${CUDA_INCLUDE_DIRS}
PUBLIC ${PCL_INCLUDE_DIRS}
)
target_link_libraries (DistanceKinectDemo
LINK_PUBLIC ${Boost_SYSTEM_LIBRARY}
LINK_PUBLIC ${icl_core_LIBRARIES}
LINK_PUBLIC ${gpu_voxels_LIBRARIES}
LINK_PUBLIC ${icl_core_logging_LIBRARIES}
LINK_PUBLIC ${CUDA_LIBRARIES}
LINK_PUBLIC ${PCL_LIBARIES}
)
in CMakeLists.txt
and have
<build_depend>libpcl-all-dev</build_depend>
<run_depend>libpcl-all</run_depend>
<build_depend>pcl_conversions</build_depend>
<build_depend>pcl_ros</build_depend>
<run_depend>pcl_conversions</run_depend>
<run_depend>pcl_ros</run_depend>