
You should post here the package file and the cmake file, it seems like you didn't write them correctly. Anyway make sure you have these in the package.xml:
<build_depend>pcl_conversions</build_depend>
<build_depend>pcl_ros</build_depend>
<run_depend>pcl_conversions</run_depend>
<run_depend>pcl_ros</run_depend>
and then in the CMakeLists.txt file you should have something like this:
find_package(catkin REQUIRED COMPONENTS
pcl_conversions
pcl_ros
)
target_link_libraries(executable_name
${catkin_LIBRARIES}
${roslib_LIBRARIES}
${PCL_LIBRARIES}
)
I hope this helps
Originally posted by marcozorzi with karma: 46 on 2016-06-02
This answer was ACCEPTED on the original site
Post score: 3
Original comments
Comment by dinesh on 2016-06-02:
CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "pcl_ros" with any
of the following names:
pcl_rosConfig.cmake
pcl_ros-config.cmake
Add the installation prefix of "pcl_ros" to CMAKE_PRE
Comment by dinesh on 2016-06-02:
now this error is coming.
Comment by marcozorzi on 2016-06-02:
Then try to add this one to the cmake file
## System dependencies are found with CMake's conventions
find_package(PCL 1.7 REQUIRED COMPONENTS)
Then give it a catkin_make clean and then again catkin_make an let me know.
Of course I am assuming that you have pcl 1.7 installed correctly
Comment by dinesh on 2016-06-03:
pcl 1.7 is installed, but still getting problems.
Comment by dinesh on 2016-06-03:
hurray it is finally working. i dont know exactly what was the problem, but after reinstalling the package and rewriting the codes, it is now not showing any error. thanks for your feedback sir, by the way.
Comment by marcozorzi on 2016-06-05:
Glad I could help!