【发布时间】:2017-06-11 10:49:10
【问题描述】:
我正在使用 arch 并且最近更新了我的系统。从那以后,我无法使用Point Cloud Library 链接项目。我在链接期间收到此错误消息:
[100%] Linking CXX executable cloud_viewer
/usr/bin/ld: warning: libboost_system.so.1.63.0, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../lib/libpcl_common.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_thread.so.1.63.0, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../lib/libpcl_common.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_iostreams.so.1.63.0, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../lib/libpcl_io.so, not found (try using -rpath or -rpath-link)
我尝试创建符号链接libboost_xxxxx.so.1.63.0 -> libboost_xxxxx.so.1.64.0
但是,虽然现在链接工作正常,但在执行过程中程序崩溃了。
我应该尝试安装旧的boot library 还是有更好的解决方案?
【问题讨论】:
-
你应该安装旧的库,肯定的。
-
另一种选择是假设您当前使用的任何内容都没有被贬低,并使用 1.64.0 重新编译源代码。如果您遇到一些编译器错误,请更新受影响的源并希望获得最好的结果。如果他们是我的消息来源,我会这样做。如果您正在编译其他人的源代码,那么我会选择只安装旧版本。
-
您是否在更新前的某个时间点编译了点云库?
标签: c++ boost linker shared-libraries