g2opy icon indicating copy to clipboard operation
g2opy copied to clipboard

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

Open 1761865308 opened this issue 4 years ago • 12 comments

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

1761865308 avatar Jul 18 '20 09:07 1761865308

Same here

SmileyScientist avatar Aug 09 '20 18:08 SmileyScientist

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

1761865308 avatar Aug 10 '20 02:08 1761865308

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

SmileyScientist avatar Aug 11 '20 11:08 SmileyScientist

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

ValeriiaIZH avatar Aug 25 '20 11:08 ValeriiaIZH

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(); })

koide3 avatar Oct 06 '20 10:10 koide3

I have the same issue.

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

I have same issue. Did you find solution ?

adeelakram03 avatar Jun 01 '21 09:06 adeelakram03

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?

Ali007788 avatar Nov 09 '21 20:11 Ali007788

@Ali007788

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

Twenkid avatar Nov 28 '21 09:11 Twenkid

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

Ali007788 avatar Nov 28 '21 11:11 Ali007788

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.

Twenkid avatar Nov 28 '21 12:11 Twenkid

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

mjunsen123 avatar Feb 16 '24 14:02 mjunsen123