Skip to content

undefined reference to `nanoflann::KdTreeFLANN<pcl::PointXYZI>::KdTreeFLANN(nanoflann::KdTreeFLANN<pcl::PointXYZI> const&) #1

@ubicray

Description

@ubicray

Hey!
First of all, great work!
I've been looking for a replacement for FAST_LIO_SAM, wanted to give this one a try
I keep getting this error when trying to build tho:

ros1_ws/install/nano_gicp/lib/libnanoflann.so: undefined reference to `nanoflann::KdTreeFLANNpcl::PointXYZI::KdTreeFLANN(nanoflann::KdTreeFLANNpcl::PointXYZI const&)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [CMakeFiles/fast_lio_sam_sc_qn_node.dir/build.make:324: devel/lib/fast_lio_sam_sc_qn/fast_lio_sam_sc_qn_node] Error 1
make[1]: *** [CMakeFiles/Makefile2:2759: CMakeFiles/fast_lio_sam_sc_qn_node.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

I believe it's because there are 2 distinct libs named nanoflann included
I would like to not have to build packages in separate steps
How would I go about achieving that? Or would you recommend going for the SC-less version?

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