Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation problems... #42

Closed
Qyilin opened this issue Feb 23, 2021 · 2 comments
Closed

Compilation problems... #42

Qyilin opened this issue Feb 23, 2021 · 2 comments

Comments

@Qyilin
Copy link

Qyilin commented Feb 23, 2021

Hi, Thank you for your great work.
But I'm stuck with a compilation problem.

  • Errors
    /home/swbot/slamware/slamros/forest_ws/SC_LeGO_LOAM_addGPS/devel/lib/libfast_gicp.so: undefined reference topcl::search::Searchpcl::PointXYZI::getName() const'
    collect2: error: ld returned 1 exit status
    fast_gicp/CMakeFiles/gicp_align.dir/build.make:429: recipe for target '/home/swbot/slamware/slamros/forest_ws/SC_LeGO_LOAM_addGPS/devel/lib/fast_gicp/gicp_align' failed
    make[2]: *** [/home/swbot/slamware/slamros/forest_ws/SC_LeGO_LOAM_addGPS/devel/lib/fast_gicp/gicp_align] Error 1
    CMakeFiles/Makefile2:504: recipe for target 'fast_gicp/CMakeFiles/gicp_align.dir/all' failed
    make[1]: *** [fast_gicp/CMakeFiles/gicp_align.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    /home/swbot/slamware/slamros/forest_ws/SC_LeGO_LOAM_addGPS/devel/lib/libfast_gicp.so: undefined reference to pcl::search::Search<pcl::PointXYZ>::getName() const' /home/swbot/slamware/slamros/forest_ws/SC_LeGO_LOAM_addGPS/devel/lib/libfast_gicp.so: undefined reference to pcl::search::Searchpcl::PointXYZI::getName() const'
    collect2: error: ld returned 1 exit status
    fast_gicp/CMakeFiles/gicp_kitti.dir/build.make:429: recipe for target '/home/swbot/slamware/slamros/forest_ws/SC_LeGO_LOAM_addGPS/devel/lib/fast_gicp/gicp_kitti' failed
    `

I tried adding #include <pcl/search/impl/search.hpp> to all the files in SRC directory.
But they don't seem to help.

  • Environment
    Ubunto 18.04
    PCL 1.8

Sincerely.

@Qyilin Qyilin closed this as completed Mar 6, 2021
@russellyq
Copy link

Hi I met a similar problem.

How did you solve it ?

Thanks in advance

@Qyilin
Copy link
Author

Qyilin commented Jun 23, 2021

Hi I met a similar problem.

How did you solve it ?

Thanks in advance
you can take a look at this link : https://blog.csdn.net/qq_47093464/article/details/117653955?spm=1001.2014.3001.5502

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants