xmake-io / xrepo

🗂️ A cross-platform C/C++ package manager based on Xmake
https://xrepo.xmake.io
Apache License 2.0
361 stars 16 forks source link

下载g2o报错 #41

Open MisakawaConan opened 7 months ago

MisakawaConan commented 7 months ago

Xmake 版本

xmake v2.8.9+20240415

操作系统版本和架构

x86_64 ubuntu22

描述问题

无法直接下载g2o

期待的结果

无法直接下载g2o

工程配置

xrepo install g2o

附加信息和错误日志

/usr/bin/ld: /home//.xmake/packages/g/g2o/2020.12.23/9b8103c400e143d99e420d91049fc78f/lib/libg2o_core.a(sparse_optimizer.cpp.o): in function g2o::SparseOptimizer::optimize(int, bool)': sparse_optimizer.cpp:(.text+0x1afb): undefined reference tog2o::get_monotonic_time()' /usr/bin/ld: sparse_optimizer.cpp:(.text+0x1bea): undefined reference to g2o::get_monotonic_time()' /usr/bin/ld: sparse_optimizer.cpp:(.text+0x1c11): undefined reference tog2o::get_monotonic_time()' /usr/bin/ld: sparse_optimizer.cpp:(.text+0x1c39): undefined reference to g2o::get_monotonic_time()' /usr/bin/ld: /home//.xmake/packages/g/g2o/2020.12.23/9b8103c400e143d99e420d91049fc78f/lib/libg2o_core.a(optimization_algorithm.cpp.o): in functiong2o::OptimizationAlgorithm::~OptimizationAlgorithm()': optimization_algorithm.cpp:(.text+0x58): undefined reference to g2o::PropertyMap::~PropertyMap()' /usr/bin/ld: /home//.xmake/packages/g/g2o/2020.12.23/9b8103c400e143d99e420d91049fc78f/lib/libg2o_core.a(optimization_algorithm.cpp.o): in functiong2o::OptimizationAlgorithm::updatePropertiesFromString(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)': optimization_algorithm.cpp:(.text+0x2f9): undefined reference to g2o::PropertyMap::updateMapFromString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/bin/ld: /home/.xmake/packages/g/g2o/2020.12.23/9b8103c400e143d99e420d91049fc78f/lib/libg2o_core.a(optimizable_graph.cpp.o): in functiong2o::OptimizableGraph::setRenamedTypesFromString(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)': optimizable_graph.cpp:(.text+0x42a4): undefined reference to `g2o::strSplit(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /usr/bin/ld: optimizable_graph.cpp:(.text+0x431b): undefined reference to g2o::strSplit(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/bin/ld: optimizable_graph.cpp:(.text+0x45a9): undefined reference tog2o::trim(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /usr/bin/ld: optimizable_graph.cpp:(.text+0x45bd): undefined reference to g2o::trim(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/bin/ld: /home//.xmake/packages/g/g2o/2020.12.23/9b8103c400e143d99e420d91049fc78f/lib/libg2o_core.a(optimizable_graph.cpp.o): in functiong2o::OptimizableGraph::load(std::istream&)': optimizable_graph.cpp:(.text+0x6f89): undefined reference to g2o::readLine(std::istream&, std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >&)' /usr/bin/ld: /home//.xmake/packages/g/g2o/2020.12.23/9b8103c400e143d99e420d91049fc78f/lib/libg2o_core.a(parameter_container.cpp.o): in functiong2o::ParameterContainer::read(std::istream&, std::map<std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::less<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, std::cxx11::basic_string<char, std::char_traits, std::allocator > > > > const*)': parameter_container.cpp:(.text+0x87f): undefined reference to g2o::readLine(std::istream&, std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >&)' /usr/bin/ld: parameter_container.cpp:(.text+0x9ef): undefined reference tog2o::readLine(std::istream&, std::cxx11::basic_stringstream<char, std::char_traits, std::allocator >&)' /usr/bin/ld: /home//.xmake/packages/g/g2o/2020.12.23/9b8103c400e143d99e420d91049fc78f/lib/libg2o_core.a(hyper_graph_action.cpp.o): in function g2o::DrawAction::refreshPropertyPtrs(g2o::HyperGraphElementAction::Parameters*)': hyper_graph_action.cpp:(.text+0x6e0): undefined reference tog2o::BaseProperty::BaseProperty(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /usr/bin/ld: hyper_graph_action.cpp:(.text+0x702): undefined reference to g2o::PropertyMap::addProperty(g2o::BaseProperty*)' /usr/bin/ld: hyper_graph_action.cpp:(.text+0x89a): undefined reference tog2o::BaseProperty::BaseProperty(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /usr/bin/ld: hyper_graph_action.cpp:(.text+0x8ba): undefined reference to g2o::PropertyMap::addProperty(g2o::BaseProperty*)' /usr/bin/ld: hyper_graph_action.cpp:(.text+0x960): undefined reference totypeinfo for g2o::BaseProperty' /usr/bin/ld: hyper_graph_action.cpp:(.text+0x997): undefined reference to typeinfo for g2o::BaseProperty' /usr/bin/ld: /home//.xmake/packages/g/g2o/2020.12.23/9b8103c400e143d99e420d91049fc78f/lib/libg2o_core.a(hyper_graph_action.cpp.o): in functiong2o::DrawAction::Parameters::~Parameters()': hyper_graph_action.cpp:(.text._ZN3g2o10DrawAction10ParametersD2Ev[_ZN3g2o10DrawAction10ParametersD5Ev]+0x1c): undefined reference to g2o::PropertyMap::~PropertyMap()' /usr/bin/ld: /home//.xmake/packages/g/g2o/2020.12.23/9b8103c400e143d99e420d91049fc78f/lib/libg2o_core.a(hyper_graph_action.cpp.o): in functiong2o::DrawAction::Parameters::~Parameters()': hyper_graph_action.cpp:(.text._ZN3g2o10DrawAction10ParametersD0Ev[_ZN3g2o10DrawAction10ParametersD5Ev]+0x1c): undefined reference to g2o::PropertyMap::~PropertyMap()' /usr/bin/ld: /home//.xmake/packages/g/g2o/2020.12.23/9b8103c400e143d99e420d91049fc78f/lib/libg2o_core.a(hyper_graph_action.cpp.o): in functiong2o::Property::~Property()': hyper_graph_action.cpp:(.text._ZN3g2o8PropertyIbED2Ev[_ZN3g2o8PropertyIbED5Ev]+0x13): undefined reference to g2o::BaseProperty::~BaseProperty()' /usr/bin/ld: /home//.xmake/packages/g/g2o/2020.12.23/9b8103c400e143d99e420d91049fc78f/lib/libg2o_core.a(hyper_graph_action.cpp.o): in functiong2o::Property::~Property()': hyper_graph_action.cpp:(.text._ZN3g2o8PropertyIbED0Ev[_ZN3g2o8PropertyIbED5Ev]+0x17): undefined reference to g2o::BaseProperty::~BaseProperty()' /usr/bin/ld: /home//.xmake/packages/g/g2o/2020.12.23/9b8103c400e143d99e420d91049fc78f/lib/libg2o_core.a(hyper_graph_action.cpp.o):(.data.rel.ro._ZTIN3g2o8PropertyIbEE[_ZTIN3g2o8PropertyIbEE]+0x10): undefined reference totypeinfo for g2o::BaseProperty' collect2: error: ld returned 1 exit status