Can't found PCL library when using ndt_omp in other catkin packages
WilliamGong opened this issue · 0 comments
WilliamGong commented
I am trying to develop an odometry with ndt_omp. I import this package as the build depend and exec depend like other catkin packages.
To enable the cuda feature of PCL, I used the self-building version of PCL and modified the configuration of pcl_ros. It works well in building ndt_omp itself. However, when building my package, the error occurs:
It looks like that ndt_omp doesn't link to PCL. Therefore, I added the code below in CMakeLists.txt of ndt_omp and it works.
target_link_libraries(ndt_omp
${catkin_LIBRARIES}
${PCL_LIBRARIES}
)
However, it is strange that in the default ROS environment, all packages could be built without modifying ndt_omp. I do not understand why it occurs at all.