uoip / g2opy

Python binding of SLAM graph optimization framework g2o
680 stars 177 forks source link

Error while making #82

Open jeremy7703 opened 4 weeks ago

jeremy7703 commented 4 weeks ago

In file included from /home/jeremy/vis_nav_player/g2opy/python/g2o.cpp:1: /home/jeremy/vis_nav_player/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h: At global scope: /home/jeremy/vis_navplayer/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:1088:13: error: ‘pybind11::class<type, options>& pybind11::class<type, options>::def(const char*, Func&&, const Extra& ...) [with Func = pybind11::detail::initimpl::constructor::execute(Class&, const Extra& ...) [with Class = pybind11::class<Eigen::Rotation2D >; Extra = {}; typename std::enable_if<(! Class::has_alias), int>::type = 0; Args = {const Eigen::Matrix<double, 2, 2, 0, 2, 2>&}]::<lambda(pybind11::detail::value_and_holder&, const Eigen::Matrix<double, 2, 2>&)>; Extra = {pybind11::detail::is_new_styleconstructor}; type = Eigen::Rotation2D; options = {}]’, declared using local type ‘pybind11::detail::initimpl::constructor::execute(Class&, const Extra& ...) [with Class = pybind11::class_<Eigen::Rotation2D >; Extra = {}; typename std::enable_if<(! Class::has_alias), int>::type = 0; Args = {const Eigen::Matrix<double, 2, 2, 0, 2, 2>&}]::<lambda(pybind11::detail::value_andholder&, const Eigen::Matrix<double, 2, 2>&)>’, is used but never defined [-fpermissive] 1088 | class &def(const char *name_, Func&& f, const Extra&... extra) { | ^~~ make[2]: [python/CMakeFiles/g2o.dir/build.make:63: python/CMakeFiles/g2o.dir/g2o.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:1345: python/CMakeFiles/g2o.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

ptrem commented 1 week ago

I get the same error. Any solution on that?

adeelferozmirza commented 4 days ago

use this, this repo is no more useful

https://github.com/RainerKuemmerle/g2o