【问题标题】:PCL linker error related to VTK与 VTK 相关的 PCL 链接器错误
【发布时间】:2016-02-01 18:27:50
【问题描述】:

尝试编译 pcl 1.7.2 机器: Archlinux

其他库: vtk 6.2.x

我收到以下错误:

Building CXX object io/tools/CMakeFiles/pcl_convert_pcd_ascii_binary.dir/convert_pcd_ascii_binary.cpp.o
[  6%] Linking CXX executable ../../bin/pcl_convert_pcd_ascii_binary
/usr/lib/libvtkIOParallel.so.1: undefined reference to `Json::Value::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/lib/libvtkIOParallel.so.1: undefined reference to `Json::Value::getMemberNames[abi:cxx11]() const'
/usr/lib/libvtkIOParallel.so.1: undefined reference to `Json::Reader::getFormattedErrorMessages[abi:cxx11]() const'
/usr/lib/libvtkIOParallel.so.1: undefined reference to `Json::Value::asString[abi:cxx11]() const'
collect2: error: ld returned 1 exit status
io/tools/CMakeFiles/pcl_convert_pcd_ascii_binary.dir/build.make:287: polecenia dla obiektu 'bin/pcl_convert_pcd_ascii_binary' nie powiodły się
make[2]: *** [bin/pcl_convert_pcd_ascii_binary] Błąd 1
CMakeFiles/Makefile2:332: polecenia dla obiektu 'io/tools/CMakeFiles/pcl_convert_pcd_ascii_binary.dir/all' nie powiodły się
make[1]: *** [io/tools/CMakeFiles/pcl_convert_pcd_ascii_binary.dir/all] 

谁能告诉我那些引用 Json::Value 是什么? 这是 VTK 的一部分 - 还是一些可选的库?

有什么解决办法吗?

【问题讨论】:

    标签: compiler-errors makefile vtk archlinux


    【解决方案1】:

    好像 Archlinux & pcl 也需要安装 jsoncpp 库。 (是VTK的可选依赖)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-27
      • 2018-02-12
      • 2018-06-22
      相关资源
      最近更新 更多