mp3guy / Kintinuous

Real-time large scale dense visual SLAM system
Other
914 stars 287 forks source link

cannot find -lvtkproj4 #51

Closed Jake-Watkins closed 5 years ago

Jake-Watkins commented 5 years ago

This is my error in make

[ 92%] Linking CXX executable Kintinuous /usr/bin/ld: cannot find -lvtkproj4 collect2: error: ld returned 1 exit status CMakeFiles/Kintinuous.dir/build.make:481: recipe for target 'Kintinuous' failed make[2]: [Kintinuous] Error 1 CMakeFiles/Makefile2:180: recipe for target 'CMakeFiles/Kintinuous.dir/all' failed make[1]: [CMakeFiles/Kintinuous.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

I tried using sudo ln -s /usr/lib/libvtkproj4.so.5.10 /usr/lib/libvtkproj4.so and sudo ln -s /usr/lib/libvtkproj4.so.5.10.1 /usr/lib/libvtkproj4.so

but I get flooded with this error either way

[ 92%] Linking CXX executable Kintinuous CMakeFiles/Kintinuous.dir/PangoVis.cpp.o: In function ConfigArgs::ConfigArgs(int, char**)': PangoVis.cpp:(.text._ZN10ConfigArgsC2EiPPc[_ZN10ConfigArgsC5EiPPc]+0x107): undefined reference topcl::console::parse_argument(int, char, char const*, std::string&)' PangoVis.cpp:(.text._ZN10ConfigArgsC2EiPPc[_ZN10ConfigArgsC5EiPPc]+0x120): undefined reference to pcl::console::parse_argument(int, char**, char const*, std::string&)' PangoVis.cpp:(.text._ZN10ConfigArgsC2EiPPc[_ZN10ConfigArgsC5EiPPc]+0x136): undefined reference topcl::console::parse_argument(int, char, char const*, std::string&)' PangoVis.cpp:(.text._ZN10ConfigArgsC2EiPPc[_ZN10ConfigArgsC5EiPPc]+0x14c): undefined reference to pcl::console::parse_argument(int, char**, char const*, std::string&)' libbackend.a(Deformation.cpp.o): In functionpcl::PCDWriter::write(std::string const&, pcl::PCLPointCloud2 const&, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&, bool)': Deformation.cpp:(.text._ZN3pcl9PCDWriter5writeERKSsRKNS_14PCLPointCloud2ERKN5Eigen6MatrixIfLi4ELi1ELi0ELi4ELi1EEERKNS6_10QuaternionIfLi0EEEb[_ZN3pcl9PCDWriter5writeERKSsRKNS_14PCLPointCloud2ERKN5Eigen6MatrixIfLi4ELi1ELi0ELi4ELi1EEERKNS6_10QuaternionIfLi0EEEb]+0xc): undefined reference to pcl::PCDWriter::writeASCII(std::string const&, pcl::PCLPointCloud2 const&, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&, int)' Deformation.cpp:(.text._ZN3pcl9PCDWriter5writeERKSsRKNS_14PCLPointCloud2ERKN5Eigen6MatrixIfLi4ELi1ELi0ELi4ELi1EEERKNS6_10QuaternionIfLi0EEEb[_ZN3pcl9PCDWriter5writeERKSsRKNS_14PCLPointCloud2ERKN5Eigen6MatrixIfLi4ELi1ELi0ELi4ELi1EEERKNS6_10QuaternionIfLi0EEEb]+0x11): undefined reference topcl::PCDWriter::writeBinary(std::string const&, pcl::PCLPointCloud2 const&, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&)' libbackend.a(Deformation.cpp.o): In function int pcl::PCDWriter::writeBinary<pcl::PointXYZRGBNormal>(std::string const&, pcl::PointCloud<pcl::PointXYZRGBNormal> const&)': Deformation.cpp:(.text._ZN3pcl9PCDWriter11writeBinaryINS_17PointXYZRGBNormalEEEiRKSsRKNS_10PointCloudIT_EE[_ZN3pcl9PCDWriter11writeBinaryINS_17PointXYZRGBNormalEEEiRKSsRKNS_10PointCloudIT_EE]+0xe9): undefined reference topcl::PCDWriter::setLockingPermissions(std::string const&, boost::interprocess::file_lock&)' Deformation.cpp:(.text._ZN3pcl9PCDWriter11writeBinaryINS_17PointXYZRGBNormalEEEiRKSsRKNS_10PointCloudIT_EE[_ZN3pcl9PCDWriter11writeBinaryINS_17PointXYZRGBNormalEEEiRKSsRKNS_10PointCloudIT_EE]+0x509): undefined reference to pcl::PCDWriter::resetLockingPermissions(std::string const&, boost::interprocess::file_lock&)' Deformation.cpp:(.text._ZN3pcl9PCDWriter11writeBinaryINS_17PointXYZRGBNormalEEEiRKSsRKNS_10PointCloudIT_EE[_ZN3pcl9PCDWriter11writeBinaryINS_17PointXYZRGBNormalEEEiRKSsRKNS_10PointCloudIT_EE]+0x7fe): undefined reference topcl::PCDWriter::resetLockingPermissions(std::string const&, boost::interprocess::file_lock&)' Deformation.cpp:(.text._ZN3pcl9PCDWriter11writeBinaryINS_17PointXYZRGBNormalEEEiRKSsRKNS_10PointCloudIT_EE[_ZN3pcl9PCDWriter11writeBinaryINS_17PointXYZRGBNormalEEEiRKSsRKNS_10PointCloudIT_EE]+0x8f4): undefined reference to pcl::PCDWriter::resetLockingPermissions(std::string const&, boost::interprocess::file_lock&)' Deformation.cpp:(.text._ZN3pcl9PCDWriter11writeBinaryINS_17PointXYZRGBNormalEEEiRKSsRKNS_10PointCloudIT_EE[_ZN3pcl9PCDWriter11writeBinaryINS_17PointXYZRGBNormalEEEiRKSsRKNS_10PointCloudIT_EE]+0x9f4): undefined reference topcl::PCDWriter::resetLockingPermissions(std::string const&, boost::interprocess::file_lock&)' Deformation.cpp:(.text._ZN3pcl9PCDWriter11writeBinaryINS_17PointXYZRGBNormalEEEiRKSsRKNS_10PointCloudIT_EE[_ZN3pcl9PCDWriter11writeBinaryINS_17PointXYZRGBNormalEEEiRKSsRKNS_10PointCloudIT_EE]+0xb8b): undefined reference to pcl::PCDWriter::resetLockingPermissions(std::string const&, boost::interprocess::file_lock&)' libbackend.a(Deformation.cpp.o): In functionint pcl::PCDWriter::writeASCII(std::string const&, pcl::PointCloud const&, int)': Deformation.cpp:(.text._ZN3pcl9PCDWriter10writeASCIIINS_17PointXYZRGBNormalEEEiRKSsRKNS_10PointCloudIT_EEi[_ZN3pcl9PCDWriter10writeASCIIINS_17PointXYZRGBNormalEEEiRKSsRKNS_10PointCloudIT_EEi]+0xce): undefined reference to pcl::PCDWriter::setLockingPermissions(std::string const&, boost::interprocess::file_lock&)' Deformation.cpp:(.text._ZN3pcl9PCDWriter10writeASCIIINS_17PointXYZRGBNormalEEEiRKSsRKNS_10PointCloudIT_EEi[_ZN3pcl9PCDWriter10writeASCIIINS_17PointXYZRGBNormalEEEiRKSsRKNS_10PointCloudIT_EEi]+0x773): undefined reference topcl::PCDWriter::resetLockingPermissions(std::string const&, boost::interprocess::file_lock&)' libbackend.a(CloudSliceProcessor.cpp.o): In function pcl::Feature<pcl::PointXYZRGB, pcl::Normal>::initCompute()': CloudSliceProcessor.cpp:(.text._ZN3pcl7FeatureINS_11PointXYZRGBENS_6NormalEE11initComputeEv[_ZN3pcl7FeatureINS_11PointXYZRGBENS_6NormalEE11initComputeEv]+0x326): undefined reference topcl::search::Search::Search(std::string const&, bool)' libbackend.a(MeshGenerator.cpp.o): In function MeshGenerator::save()': MeshGenerator.cpp:(.text+0x174c): undefined reference topcl::io::savePLYFile(std::string const&, pcl::PolygonMesh const&, unsigned int)' libbackend.a(MeshGenerator.cpp.o): In function pcl::search::OrganizedNeighbor<pcl::PointXYZRGBNormal>::OrganizedNeighbor(bool, float, unsigned int)': MeshGenerator.cpp:(.text._ZN3pcl6search17OrganizedNeighborINS_17PointXYZRGBNormalEEC2Ebfj[_ZN3pcl6search17OrganizedNeighborINS_17PointXYZRGBNormalEEC5Ebfj]+0x37): undefined reference topcl::search::Search::Search(std::string const&, bool)' libbackend.a(IncrementalMesh.cpp.o): In function IncrementalMesh::saveMesh(std::string)': IncrementalMesh.cpp:(.text+0x10a): undefined reference topcl::io::savePLYFile(std::string const&, pcl::PolygonMesh const&, unsigned int)' collect2: error: ld returned 1 exit status CMakeFiles/Kintinuous.dir/build.make:481: recipe for target 'Kintinuous' failed make[2]: [Kintinuous] Error 1 CMakeFiles/Makefile2:180: recipe for target 'CMakeFiles/Kintinuous.dir/all' failed make[1]: [CMakeFiles/Kintinuous.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

I'm on Ubuntu 16.04 using pcl from the 16.04 apt repo and the current pangolin master branch

It looks related to this issue: https://bugs.launchpad.net/ubuntu/+source/vtk6/+bug/1573234 but following the advice i have appended list(REMOVE_ITEM PCL_LIBRARIES "vtkproj4") to the end of CMakeLists.txt but i get the same issue

I've also tried cloning boost and pcl from git and compiling from there but I'm having issues compiling pcl because of this :

../lib/libpcl_visualization.so.1.8.1.99: undefined reference to `boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::string&)' even though I can see the file and function

Any advice would be appreciated

Jake-Watkins commented 5 years ago

I realized this is the same issue mentioned on the front page. I'm just going to try to get pcl to build.