Skip to content

Can't found PCL library when using ndt_omp in other catkin packages #67

@WilliamGong

Description

@WilliamGong

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:
WindowsTerminal_Q7jPKwPQL0
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions