We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xmake v2.8.9+20240415
x86_64 ubuntu22
无法直接下载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 to g2o::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 to g2o::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 function g2o::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 function g2o::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 function g2o::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<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+0x431b): 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+0x45a9): undefined reference to g2o::trim(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/bin/ld: optimizable_graph.cpp:(.text+0x45bd): undefined reference to g2o::trim(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /usr/bin/ld: /home//.xmake/packages/g/g2o/2020.12.23/9b8103c400e143d99e420d91049fc78f/lib/libg2o_core.a(optimizable_graph.cpp.o): in function g2o::OptimizableGraph::load(std::istream&)': optimizable_graph.cpp:(.text+0x6f89): undefined reference to g2o::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(parameter_container.cpp.o): in function g2o::ParameterContainer::read(std::istream&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<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*)': parameter_container.cpp:(.text+0x87f): undefined reference to g2o::readLine(std::istream&, std::__cxx11::basic_stringstream<char, std::char_traits, std::allocator >&)' /usr/bin/ld: parameter_container.cpp:(.text+0x9ef): 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(hyper_graph_action.cpp.o): in function g2o::DrawAction::refreshPropertyPtrs(g2o::HyperGraphElementAction::Parameters*)': hyper_graph_action.cpp:(.text+0x6e0): undefined reference to g2o::BaseProperty::BaseProperty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > 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 to g2o::BaseProperty::BaseProperty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > 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 to typeinfo 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 function g2o::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 function g2o::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 function g2o::Property<bool>::~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 function g2o::Property<bool>::~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 to `typeinfo for g2o::BaseProperty' collect2: error: ld returned 1 exit status
g2o::SparseOptimizer::optimize(int, bool)': sparse_optimizer.cpp:(.text+0x1afb): undefined reference to
g2o::get_monotonic_time()' /usr/bin/ld: sparse_optimizer.cpp:(.text+0x1c11): 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 function
g2o::PropertyMap::~PropertyMap()' /usr/bin/ld: /home//.xmake/packages/g/g2o/2020.12.23/9b8103c400e143d99e420d91049fc78f/lib/libg2o_core.a(optimization_algorithm.cpp.o): in function
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 function
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+0x431b): undefined reference to
g2o::trim(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/bin/ld: optimizable_graph.cpp:(.text+0x45bd): undefined reference to
g2o::OptimizableGraph::load(std::istream&)': optimizable_graph.cpp:(.text+0x6f89): undefined reference to
g2o::ParameterContainer::read(std::istream&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<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*)': 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: /home//.xmake/packages/g/g2o/2020.12.23/9b8103c400e143d99e420d91049fc78f/lib/libg2o_core.a(hyper_graph_action.cpp.o): in function
g2o::BaseProperty::BaseProperty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/bin/ld: hyper_graph_action.cpp:(.text+0x702): undefined reference to
g2o::BaseProperty::BaseProperty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/bin/ld: hyper_graph_action.cpp:(.text+0x8ba): undefined reference to
typeinfo for g2o::BaseProperty' /usr/bin/ld: hyper_graph_action.cpp:(.text+0x997): undefined reference to
g2o::DrawAction::Parameters::~Parameters()': hyper_graph_action.cpp:(.text._ZN3g2o10DrawAction10ParametersD2Ev[_ZN3g2o10DrawAction10ParametersD5Ev]+0x1c): undefined reference to
g2o::DrawAction::Parameters::~Parameters()': hyper_graph_action.cpp:(.text._ZN3g2o10DrawAction10ParametersD0Ev[_ZN3g2o10DrawAction10ParametersD5Ev]+0x1c): undefined reference to
g2o::Property<bool>::~Property()': hyper_graph_action.cpp:(.text._ZN3g2o8PropertyIbED2Ev[_ZN3g2o8PropertyIbED5Ev]+0x13): undefined reference to
g2o::Property<bool>::~Property()': hyper_graph_action.cpp:(.text._ZN3g2o8PropertyIbED0Ev[_ZN3g2o8PropertyIbED5Ev]+0x17): undefined reference to
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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 to
g2o::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 to
g2o::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 function
g2o::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 function
g2o::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 function
g2o::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<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+0x431b): 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+0x45a9): undefined reference to
g2o::trim(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/bin/ld: optimizable_graph.cpp:(.text+0x45bd): undefined reference to
g2o::trim(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'/usr/bin/ld: /home//.xmake/packages/g/g2o/2020.12.23/9b8103c400e143d99e420d91049fc78f/lib/libg2o_core.a(optimizable_graph.cpp.o): in function
g2o::OptimizableGraph::load(std::istream&)': optimizable_graph.cpp:(.text+0x6f89): undefined reference to
g2o::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(parameter_container.cpp.o): in function
g2o::ParameterContainer::read(std::istream&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<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*)': parameter_container.cpp:(.text+0x87f): undefined reference to
g2o::readLine(std::istream&, std::__cxx11::basic_stringstream<char, std::char_traits, std::allocator >&)'/usr/bin/ld: parameter_container.cpp:(.text+0x9ef): 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(hyper_graph_action.cpp.o): in function
g2o::DrawAction::refreshPropertyPtrs(g2o::HyperGraphElementAction::Parameters*)':hyper_graph_action.cpp:(.text+0x6e0): undefined reference to
g2o::BaseProperty::BaseProperty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > 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 to
g2o::BaseProperty::BaseProperty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > 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 to
typeinfo 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 function
g2o::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 function
g2o::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 function
g2o::Property<bool>::~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 function
g2o::Property<bool>::~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 to `typeinfo for g2o::BaseProperty'
collect2: error: ld returned 1 exit status
The text was updated successfully, but these errors were encountered: