simple.cpp for octomap not compiling on MacOS

asked 2021-02-15 13:37:20 -0600

robots_brr gravatar image

while trying to run the simple.cpp file on the terminal, I get the error:

Undefined symbols for architecture x86_64:

"octomap::OcTreeNode::addValue(float const&)", referenced from: octomap::OccupancyOcTreeBase<octomap::octreenode>::updateNodeLogOdds(octomap::OcTreeNode, float const&) const in simple1-23a0fa.o "octomap::OcTreeNode::OcTreeNode()", referenced from: octomap::OcTreeBaseImpl<octomap::octreenode, octomap::abstractoccupancyoctree="">::readData(std::__1::basic_istream<char, std::__1::char_traits<char=""> >&) in simple1-23a0fa.o octomap::OccupancyOcTreeBase<octomap::octreenode>::readBinaryData(std::__1::basic_istream<char, std::__1::char_traits<char=""> >&) in simple1-23a0fa.o octomap::OccupancyOcTreeBase<octomap::octreenode>::updateNode(octomap::OcTreeKey const&, float, bool) in simple1-23a0fa.o octomap::OccupancyOcTreeBase<octomap::octreenode>::setNodeValue(octomap::OcTreeKey const&, float, bool) in simple1-23a0fa.o octomap::OcTreeBaseImpl<octomap::octreenode, octomap::abstractoccupancyoctree="">::createNodeChild(octomap::OcTreeNode, unsigned int) in simple1-23a0fa.o "octomap::OcTreeNode::~OcTreeNode()", referenced from: octomap::OcTreeBaseImpl<octomap::octreenode, octomap::abstractoccupancyoctree="">::deleteNodeRecurs(octomap::OcTreeNode) in simple1-23a0fa.o octomap::OcTreeBaseImpl<octomap::octreenode, octomap::abstractoccupancyoctree="">::deleteNodeChild(octomap::OcTreeNode, unsigned int) in simple1-23a0fa.o "octomap::Pointcloud::transform(octomath::Pose6D)", referenced from: octomap::OccupancyOcTreeBase<octomap::octreenode>::insertPointCloud(octomap::Pointcloud const&, octomath::Vector3 const&, octomath::Pose6D const&, double, bool, bool) in simple1-23a0fa.o "octomap::Pointcloud::Pointcloud(octomap::Pointcloud const&)", referenced from: octomap::OccupancyOcTreeBase<octomap::octreenode>::insertPointCloud(octomap::Pointcloud const&, octomath::Vector3 const&, octomath::Pose6D const&, double, bool, bool) in simple1-23a0fa.o "octomap::Pointcloud::Pointcloud()", referenced from: octomap::OccupancyOcTreeBase<octomap::octreenode>::computeDiscreteUpdate(octomap::Pointcloud const&, octomath::Vector3 const&, std::__1::unordered_set<octomap::octreekey, octomap::octreekey::keyhash,="" std::__1::equal_to<octomap::octreekey="">, std::__1::allocator<octomap::octreekey> >&, std::__1::unordered_set<octomap::octreekey, octomap::octreekey::keyhash,="" std::__1::equal_to<octomap::octreekey="">, std::__1::allocator<octomap::octreekey> >&, double) in simple1-23a0fa.o "octomap::Pointcloud::~Pointcloud()", referenced from: octomap::OccupancyOcTreeBase<octomap::octreenode>::insertPointCloud(octomap::Pointcloud const&, octomath::Vector3 const&, octomath::Pose6D const&, double, bool, bool) in simple1-23a0fa.o octomap::OccupancyOcTreeBase<octomap::octreenode>::computeDiscreteUpdate(octomap::Pointcloud const&, octomath::Vector3 const&, std::__1::unordered_set<octomap::octreekey, octomap::octreekey::keyhash,="" std::__1::equal_to<octomap::octreekey="">, std::__1::allocator<octomap::octreekey> >&, std::__1::unordered_set<octomap::octreekey, octomap::octreekey::keyhash,="" std::__1::equal_to<octomap::octreekey="">, std::__1::allocator<octomap::octreekey> >&, double) in simple1-23a0fa.o "octomap::AbstractOccupancyOcTree::writeBinary(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&)", referenced from: _main in simple1-23a0fa.o "octomap::OcTree::OcTree(double)", referenced from: _main in simple1-23a0fa.o "octomath::Pose6D::Pose6D(octomath::Pose6D const&)", referenced from: octomap::OccupancyOcTreeBase<octomap::octreenode>::insertPointCloud(octomap::Pointcloud const&, octomath::Vector3 const&, octomath::Pose6D const&, double, bool, bool) in simple1-23a0fa.o octomap::OccupancyOcTreeBase<octomap::octreenode>::insertPointCloud(octomap::ScanNode const&, double, bool, bool) in simple1-23a0fa.o "octomath::Pose6D::~Pose6D()", referenced from: octomap::OccupancyOcTreeBase<octomap::octreenode>::insertPointCloud(octomap::Pointcloud const&, octomath::Vector3 const&, octomath::Pose6D const&, double, bool, bool) in simple1-23a0fa.o octomap::OccupancyOcTreeBase<octomap::octreenode>::insertPointCloud(octomap::ScanNode const&, double, bool, bool) in simple1-23a0fa.o "octomath::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char=""> >&, octomath::Vector3 const&)", referenced from: print_query_info(octomath::Vector3, octomap::OcTreeNode) in simple1-23a0fa.o octomap::OcTreeBaseImpl<octomap::octreenode, octomap::abstractoccupancyoctree="">::search(octomath::Vector3 const&, unsigned int) const in simple1-23a0fa.o octomap::OcTreeBaseImpl<octomap::octreenode, octomap::abstractoccupancyoctree="">::computeRayKeys(octomath::Vector3 const&, octomath::Vector3 const&, octomap::KeyRay&) const in simple1-23a0fa.o "octomap::OcTreeNode::getMaxChildLogOdds() const", referenced from: octomap::OccupancyOcTreeBase<octomap::octreenode>::readBinaryNode ... (more)

edit retag flag offensive close merge delete