/ usr / bin / ld:找不到-lvtkGUISupportQt

时间:2019-05-24 14:22:22

标签: ubuntu ros 3d-mapping

我正在尝试构建我在github上发现的package,当我运行命令make时,它给我Title中的错误。

我正在使用Ubuntu 16.04,似乎缺少了一个库,但不知道如何在Ubuntu上解决问题。

这是我收到的完整消息:

hamza@hamza-Latitude-5590:~/rtabmap/build$ make 
[  4%] Built hamza@hamza-Latitude-5590:~/rtabmap/build$ make 
[  4%] Built target rtabmap_utilite
[  4%] Built target res_tool
[  4%] Linking CXX shared library ../../../bin/librtabmap_core.so
/usr/bin/ld: cannot find -lvtkGUISupportQt
collect2: error: ld returned 1 exit status
corelib/src/CMakeFiles/rtabmap_core.dir/build.make:3041: recipe for target '../bin/librtabmap_core.so.0.19.2' failed
make[2]: *** [../bin/librtabmap_core.so.0.19.2] Error 1
CMakeFiles/Makefile2:267: recipe for target 'corelib/src/CMakeFiles/rtabmap_core.dir/all' failed
make[1]: *** [corelib/src/CMakeFiles/rtabmap_core.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
target rtabmap_utilite
[  4%] Built target res_tool
[  4%] Linking CXX shared library ../../../bin/librtabmap_core.so
/usr/bin/ld: cannot find -lvtkGUISupportQt
collect2: error: ld returned 1 exit status
corelib/src/CMakeFiles/rtabmap_core.dir/build.make:3041: recipe for target '../bin/librtabmap_core.so.0.19.2' failed
make[2]: *** [../bin/librtabmap_core.so.0.19.2] Error 1
CMakeFiles/Makefile2:267: recipe for target 'corelib/src/CMakeFiles/rtabmap_core.dir/all' failed
make[1]: *** [corelib/src/CMakeFiles/rtabmap_core.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

1 个答案:

答案 0 :(得分:0)

您遇到的是带有QT插件版本问题的pcl版本。旧版本和新版本不兼容。我遇到了这个b4。

(1)使用任何其他软件包都可以使用的正确版本pcl进行构建。

(2)或仅用户docker来安装此rtabmap。这样,所有条件都将得到满足。

点击此处的链接以详细了解https://github.com/introlab/rtabmap/wiki/Installation#docker