Open JACKYLUO1991 opened 7 years ago
这是Ubuntu16.04下PCL的一个Bug,见:[https://haoyu.love/blog371.html] 和 [https://bugs.launchpad.net/ubuntu/+source/vtk6/+bug/1573234] 总而言之,你需要在CMakeLists.txt中添加一句: list(REMOVE_ITEM PCL_LIBRARIES "vtkproj4") 才能使得编译通过。
已在github issue中回复。
祝好
Xiang Gao (高翔) Ph. D. Student in Tsinghua University Room 428, Main Building, Beijing, 100084 Tel: (+86)18811360537
在 2017年5月19日,下午4:44,actionLUO notifications@github.com 写道:
高博您好:请教一个问题~~~ 我使用ubuntu16.04,build时显示: /usr/bin/ld: cannot find -lvtkproj4 collect2: error: ld returned 1 exit status CMakeFiles/joinMap.dir/build.make:350: recipe for target 'joinMap' failed make[2]: [joinMap] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/joinMap.dir/all' failed Makefile:83: recipe for target 'all' failed make[1]: [CMakeFiles/joinMap.dir/all] Error 2 make: [all] Error 2 Failure: Exit code 2 *** 怎么解决?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gaoxiang12/slambook/issues/18, or mute the thread https://github.com/notifications/unsubscribe-auth/AGU_95Cnsy2YUD63h6FgUXPU2b3tF7lnks5r7VZsgaJpZM4NgPcS.
高博您好:请教一个问题~~~ 我使用ubuntu16.04,build时显示: /usr/bin/ld: cannot find -lvtkproj4 collect2: error: ld returned 1 exit status CMakeFiles/joinMap.dir/build.make:350: recipe for target 'joinMap' failed make[2]: [joinMap] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/joinMap.dir/all' failed Makefile:83: recipe for target 'all' failed make[1]: [CMakeFiles/joinMap.dir/all] Error 2 make: [all] Error 2 Failure: Exit code 2 *** 怎么解决?