与VTK相关的PCL链接器错误

时间:2016-02-01 18:27:50

标签: compiler-errors makefile vtk archlinux

尝试compilepcl 1.7.2 机器: Archlinux

其他libs: vtk 6.2.x

我遇到了make错误:

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的一部分 - 还是一些可选的lib?

有任何修复想法吗?

1 个答案:

答案 0 :(得分:0)

似乎Archlinux&amp; pcl也需要安装jsoncpp库。 (这是VTK的可选依赖项。)