Skip to content
New issue

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

Error while making #82

Open
jeremy7703 opened this issue Oct 25, 2024 · 4 comments
Open

Error while making #82

jeremy7703 opened this issue Oct 25, 2024 · 4 comments

Comments

@jeremy7703
Copy link

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

@ptrem
Copy link

ptrem commented Nov 14, 2024

I get the same error. Any solution on that?

@adeelferozmirza
Copy link

use this, this repo is no more useful

https://github.com/RainerKuemmerle/g2o

@jeremy7703
Copy link
Author

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?

@ptrem
Copy link

ptrem commented Nov 23, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants