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
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_nav_player/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_style_constructor}; 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_and_holder&, 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
The text was updated successfully, but these errors were encountered:
I get the same error. Any solution on that?
Sorry, something went wrong.
use this, this repo is no more useful
https://github.com/RainerKuemmerle/g2o
use this, this repo is no more useful https://github.com/RainerKuemmerle/g2o
I am afraid that link is g2o written in C++, does that work well with my project written in python?
As described in: miquelmassot/g2o-python#40
I used this repo: https://github.com/miquelmassot/g2o-python and the pymem branch from https://github.com/RainerKuemmerle/g2o.git. Worked for me. I also use it inside my Python Project.
No branches or pull requests
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_nav_player/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_style_constructor}; 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_and_holder&, 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
The text was updated successfully, but these errors were encountered: