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

make in Ubuntu error,I went to 99 percent but failed #46

Open
1761865308 opened this issue Jul 18, 2020 · 12 comments
Open

make in Ubuntu error,I went to 99 percent but failed #46

1761865308 opened this issue Jul 18, 2020 · 12 comments

Comments

@1761865308
Copy link

Building CXX object python/CMakeFiles/g2o.dir/g2o.cpp.o
........
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

@SmileyScientist
Copy link

Same here

@1761865308
Copy link
Author

Same here

I successly install g2opy in ubuntu 18.0 and python 3.8,you can replace your eigen3 by legacy version(eigen 3.4.4),good luck for you

@SmileyScientist
Copy link

@1761865308 , Thank you so much! I will try it right away!

@ValeriiaIZH
Copy link

I still have the same error.
ubuntu 18.04, python 3.8, eigen 3.3.4-4.

@koide3
Copy link

koide3 commented Oct 6, 2020

I encountered the same problem on Ubuntu 20.04. In my case, I could build the library by changing:

        .def("x", (double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::x)
        .def("y", (double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::y)
        .def("z", (double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::z)
        .def("w", (double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::w)

in g2opy/python/core/eigen_types.h to:

        .def("x", [](const Eigen::Quaterniond& q) { return q.x(); })
        .def("y", [](const Eigen::Quaterniond& q) { return q.y(); })
        .def("z", [](const Eigen::Quaterniond& q) { return q.z(); })
        .def("w", [](const Eigen::Quaterniond& q) { return q.w(); })

@adeelakram03
Copy link

I have the same issue.

@1761865308 , Thank you so much! I will try it right away!

I have same issue. Did you find solution ?

LukasBommes pushed a commit to lukasbommes-forked-projects/g2opy that referenced this issue Jul 7, 2021
@Ali007788
Copy link

I still have the same problem!
ubuntu 20.4, python 3.8.10 and eigen 3.3.7
Has anyone an idea how to solve it?

@Twenkid
Copy link

Twenkid commented Nov 28, 2021

@Ali007788

Try the koide3's solution - it has just worked for me.

@Ali007788
Copy link

@Twenkid
I already tried it, but the building went to 99% then I got this #58!
any tips?

@Twenkid
Copy link

Twenkid commented Nov 28, 2021

Maybe out of memory error?
Try: make -j3 -B
Or -j1 (number of threads, -B -rebuild, -d debug;)
Watch the RAM usage with htop.

BTW, that combination "make -j8" is often given by default, but sometimes it is too much - for virtual machines etc. and there are no notes about that in the building instructions.

@mjunsen123
Copy link

mjunsen123 commented Feb 16, 2024

Follow koide3's solution and downgrade my python from 3.11 to 3.9 works for me

@keeperlibofan
Copy link

I encountered the same problem on Ubuntu 20.04. In my case, I could build the library by changing:

        .def("x", (double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::x)
        .def("y", (double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::y)
        .def("z", (double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::z)
        .def("w", (double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::w)

in g2opy/python/core/eigen_types.h to:

        .def("x", [](const Eigen::Quaterniond& q) { return q.x(); })
        .def("y", [](const Eigen::Quaterniond& q) { return q.y(); })
        .def("z", [](const Eigen::Quaterniond& q) { return q.z(); })
        .def("w", [](const Eigen::Quaterniond& q) { return q.w(); })

It is useful!!! And I solved this problem.

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

9 participants