Re: RTAB-Map is not built with Python3 support
Posted by saipuneeth on
URL: http://official-rtab-map-forum.206.s1.nabble.com/RTAB-Map-is-not-built-with-Python3-support-tp10100p10103.html
root@luke:/# which rtabmap
/opt/ros/noetic/bin/rtabmap
After I tried to remove ros-noetic-rtabmap* and then
and i tried make -j4 in /workspace/rtabmap/build , I got
.....
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `pcl::io::saveVTKFile(std::string const&, pcl::PCLPointCloud2 const&, unsigned int)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `PointMatcher<float>::DataPoints::getFeatureViewByName(std::string const&) const'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `uNumber2Str(unsigned int)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `pcl::search::Search<pcl::PointXYZI>::getName() const'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `gtsam::demangle(char const*)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `cv::VideoCapture::open(std::string const&, int)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `pcl::search::Search<pcl::PointXYZRGB>::Search(std::string const&, bool)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `cv::getBuildInformation()'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `ULogger::kDefaultLogFileName'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `cv::internal::WriteStructContext::WriteStructContext(cv::FileStorage&, std::string const&, int, std::string const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `uNumber2Str(double, int, bool)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `g2o::Factory::knowsTag(std::string const&, int*) const'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `pcl::PLYWriter::writeASCII(std::string const&, pcl::PCLPointCloud2 const&, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&, int, bool)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `UDirectory::exists(std::string const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `PointMatcherSupport::Parametrizable::getParamValueString(std::string const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `PointMatcher<float>::DataPoints::getDescriptorRowViewByName(std::string const&, unsigned int) const'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `pcl::OpenNIGrabber::OpenNIGrabber(std::string const&, pcl::OpenNIGrabber::Mode const&, pcl::OpenNIGrabber::Mode const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `cv::Algorithm::getDefaultName() const'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `pcl::VLPGrabber::VLPGrabber(std::string const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `PointMatcher<float>::DataPoints::getDescriptorCopyByName(std::string const&) const'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `PointMatcher<float>::DataPoints::getDescriptorRowViewByName(std::string const&, unsigned int)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: 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)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `UVariant::UVariant(std::string const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `uFormat(char const*, ...)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `gtsam::print(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, std::string const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `pcl::VLPGrabber::getName() const'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `UFile::exists(std::string const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `gtsam::Pose3::print(std::string const&) const'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `pcl::search::Search<pcl::PointXYZINormal>::Search(std::string const&, bool)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `grid_map::GridMap::operator[](std::string const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `gtsam::NonlinearOptimizerParams::print(std::string const&) const'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `pcl::PLYWriter::writeBinary(std::string const&, pcl::PCLPointCloud2 const&, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&, bool)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `ULogger::registerCurrentThread(std::string const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `uNumber2Str(float, int, bool)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `PointMatcher<float>::DataPoints::descriptorExists(std::string const&) const'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `cv::Algorithm::save(std::string const&) const'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `pcl::search::Search<pcl::PointXYZ>::Search(std::string const&, bool)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `pcl::PCDReader::read(std::string const&, pcl::PCLPointCloud2&, int)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `UFile::getExtension(std::string const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `ULogger::setType(ULogger::Type, std::string const&, bool)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `UFile::rename(std::string const&, std::string const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `gtsam::Pose2::print(std::string const&) const'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `pcl::search::Search<pcl::PointXYZRGB>::getName() const'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `cv::operator<<(cv::FileStorage&, std::string const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `pcl::search::Search<pcl::PointNormal>::getName() const'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `grid_map::GridMap::operator[](std::string const&) const'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `uStr2Int(std::string const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `g2o::writeCCSMatrix(std::string const&, int, int, int const*, int const*, double const*, bool)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `pcl::PCDWriter::setLockingPermissions(std::string const&, boost::interprocess::file_lock&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `uStr2Double(std::string const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `cv::imencode(std::string const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `UFile::getName(std::string const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `UFile::erase(std::string const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `grid_map::GridMap::setBasicLayers(std::vector<std::string, std::allocator<std::string> > const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `pcl::PLYReader::read(std::string const&, pcl::PCLPointCloud2&, Eigen::Matrix<float, 4, 1, 0, 4, 1>&, Eigen::Quaternion<float, 0>&, int&, int)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `PointMatcher<float>::Matcher::Matcher(std::string const&, std::vector<PointMatcherSupport::Parametrizable::ParameterDoc, std::allocator<PointMatcherSupport::Parametrizable::ParameterDoc> >, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `pcl::search::Search<pcl::PointXYZINormal>::getName() const'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `PointMatcher<float>::DataPoints::getFeatureViewByName(std::string const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `UDirectory::homeDir()'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `PointMatcherSupport::InvalidElement::InvalidElement(std::string const&)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `grid_map::GridMap::add(std::string const&, double)'
/usr/bin/ld: ../../bin/librtabmap_core.so.0.21.5: undefined reference to `uBool2Str(bool)'
collect2: error: ld returned 1 exit status
make[2]: *** [tools/ExtractObject/CMakeFiles/extractObject.dir/build.make:190: bin/rtabmap-extractObject] Error 1
make[1]: *** [CMakeFiles/Makefile2:1153: tools/ExtractObject/CMakeFiles/extractObject.dir/all] Error 2
make: *** [Makefile:152: all] Error 2