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 in installing on ubuntu 20.04 #58

Open
Ali007788 opened this issue Nov 9, 2021 · 5 comments
Open

Error in installing on ubuntu 20.04 #58

Ali007788 opened this issue Nov 9, 2021 · 5 comments

Comments

@Ali007788
Copy link

I'm trying to install the library on ubuntu 20.04, python 3.8.10 and eigen 3.3.7.
I already tried this solution #48 but while running make -j8 command, I got this error:

`[ 99%] Building CXX object python/CMakeFiles/g2o.dir/g2o.cpp.o
In file included from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:16,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
82 | decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
| ^
In file included from /usr/include/python3.8/pystate.h:10,
from /usr/include/python3.8/genobject.h:11,
from /usr/include/python3.8/Python.h:121,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/usr/include/python3.8/pythread.h:100:36: note: declared here
100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void);
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:16,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
82 | decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
| ^
In file included from /usr/include/python3.8/pystate.h:10,
from /usr/include/python3.8/genobject.h:11,
from /usr/include/python3.8/Python.h:121,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/usr/include/python3.8/pythread.h:100:36: note: declared here
100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void);
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:16,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
82 | decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
| ^
In file included from /usr/include/python3.8/pystate.h:10,
from /usr/include/python3.8/genobject.h:11,
from /usr/include/python3.8/Python.h:121,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/usr/include/python3.8/pythread.h:100:36: note: declared here
100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void);
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:16,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
82 | decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
| ^
In file included from /usr/include/python3.8/pystate.h:10,
from /usr/include/python3.8/genobject.h:11,
from /usr/include/python3.8/Python.h:121,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/usr/include/python3.8/pythread.h:100:36: note: declared here
100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void);
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:16,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/internals.h:167:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
167 | internals_ptr->tstate = PyThread_create_key();
| ^
In file included from /usr/include/python3.8/pystate.h:10,
from /usr/include/python3.8/genobject.h:11,
from /usr/include/python3.8/Python.h:121,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/usr/include/python3.8/pythread.h:100:36: note: declared here
100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void);
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:16,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/internals.h:167:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
167 | internals_ptr->tstate = PyThread_create_key();
| ^
In file included from /usr/include/python3.8/pystate.h:10,
from /usr/include/python3.8/genobject.h:11,
from /usr/include/python3.8/Python.h:121,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/usr/include/python3.8/pythread.h:100:36: note: declared here
100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void);
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:16,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/internals.h:168:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
168 | PyThread_set_key_value(internals_ptr->tstate, tstate);
| ^
In file included from /usr/include/python3.8/pystate.h:10,
from /usr/include/python3.8/genobject.h:11,
from /usr/include/python3.8/Python.h:121,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/usr/include/python3.8/pythread.h:102:36: note: declared here
102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:16,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/internals.h:168:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
168 | PyThread_set_key_value(internals_ptr->tstate, tstate);
| ^
In file included from /usr/include/python3.8/pystate.h:10,
from /usr/include/python3.8/genobject.h:11,
from /usr/include/python3.8/Python.h:121,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/usr/include/python3.8/pythread.h:102:36: note: declared here
102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, const char*, const std::type_info* const*, pybind11::size_t)’:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:320:74: warning: cast between incompatible function types from ‘PyObject* ()(PyObject, PyObject*, PyObject*)’ {aka ‘object* ()(_object, object*, object*)’} to ‘PyCFunction’ {aka ‘object* ()(_object, object*)’} [-Wcast-function-type]
320 | rec->def->ml_meth = reinterpret_cast(dispatcher);
| ^
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:1741:75: warning: ‘void
PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations]
1741 | tstate = (PyThreadState ) PyThread_get_key_value(internals.tstate);
| ^
In file included from /usr/include/python3.8/pystate.h:10,
from /usr/include/python3.8/genobject.h:11,
from /usr/include/python3.8/Python.h:121,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/usr/include/python3.8/pythread.h:104:39: note: declared here
104 | Py_DEPRECATED(3.7) PyAPI_FUNC(void ) PyThread_get_key_value(int key);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:1741:75: warning: ‘void
PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations]
1741 | tstate = (PyThreadState ) PyThread_get_key_value(internals.tstate);
| ^
In file included from /usr/include/python3.8/pystate.h:10,
from /usr/include/python3.8/genobject.h:11,
from /usr/include/python3.8/Python.h:121,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/usr/include/python3.8/pythread.h:104:39: note: declared here
104 | Py_DEPRECATED(3.7) PyAPI_FUNC(void ) PyThread_get_key_value(int key);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:1753:60: warning: ‘int PyThread_set_key_value(int, void
)’ is deprecated [-Wdeprecated-declarations]
1753 | PyThread_set_key_value(internals.tstate, tstate);
| ^
In file included from /usr/include/python3.8/pystate.h:10,
from /usr/include/python3.8/genobject.h:11,
from /usr/include/python3.8/Python.h:121,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/usr/include/python3.8/pythread.h:102:36: note: declared here
102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:1753:60: warning: ‘int PyThread_set_key_value(int, void
)’ is deprecated [-Wdeprecated-declarations]
1753 | PyThread_set_key_value(internals.tstate, tstate);
| ^
In file included from /usr/include/python3.8/pystate.h:10,
from /usr/include/python3.8/genobject.h:11,
from /usr/include/python3.8/Python.h:121,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/usr/include/python3.8/pythread.h:102:36: note: declared here
102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:1792:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations]
1792 | PyThread_delete_key_value(detail::get_internals().tstate);
| ^
In file included from /usr/include/python3.8/pystate.h:10,
from /usr/include/python3.8/genobject.h:11,
from /usr/include/python3.8/Python.h:121,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/usr/include/python3.8/pythread.h:105:37: note: declared here
105 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:1792:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations]
1792 | PyThread_delete_key_value(detail::get_internals().tstate);
| ^
In file included from /usr/include/python3.8/pystate.h:10,
from /usr/include/python3.8/genobject.h:11,
from /usr/include/python3.8/Python.h:121,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/usr/include/python3.8/pythread.h:105:37: note: declared here
105 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:1820:52: warning: ‘int PyThread_set_key_value(int, void
)’ is deprecated [-Wdeprecated-declarations]
1820 | PyThread_set_key_value(key, nullptr);
| ^
In file included from /usr/include/python3.8/pystate.h:10,
from /usr/include/python3.8/genobject.h:11,
from /usr/include/python3.8/Python.h:121,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/usr/include/python3.8/pythread.h:102:36: note: declared here
102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:1820:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
1820 | PyThread_set_key_value(key, nullptr);
| ^
In file included from /usr/include/python3.8/pystate.h:10,
from /usr/include/python3.8/genobject.h:11,
from /usr/include/python3.8/Python.h:121,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/usr/include/python3.8/pythread.h:102:36: note: declared here
102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:1833:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
1833 | PyThread_set_key_value(key, tstate);
| ^
In file included from /usr/include/python3.8/pystate.h:10,
from /usr/include/python3.8/genobject.h:11,
from /usr/include/python3.8/Python.h:121,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/usr/include/python3.8/pythread.h:102:36: note: declared here
102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:1833:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
1833 | PyThread_set_key_value(key, tstate);
| ^
In file included from /usr/include/python3.8/pystate.h:10,
from /usr/include/python3.8/genobject.h:11,
from /usr/include/python3.8/Python.h:121,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/detail/common.h:111,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pytypes.h:12,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13,
from /home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43,
from /home/tufreiberg/g2opy/python/g2o.cpp:1:
/usr/include/python3.8/pythread.h:102:36: note: declared here
102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tufreiberg/g2opy/python/g2o.cpp:19:
/home/tufreiberg/g2opy/python/core/base_unary_edge.h: In function ‘void g2o::declareBaseUnaryEdge(pybind11::module&)’:
/home/tufreiberg/g2opy/python/core/base_unary_edge.h:33:40: warning: unused parameter ‘m’ [-Wunused-parameter]
33 | void declareBaseUnaryEdge(py::module & m) {
| ~~~~~~~~~~~~~^
In file included from /home/tufreiberg/g2opy/python/g2o.cpp:20:
/home/tufreiberg/g2opy/python/core/base_binary_edge.h: In function ‘void g2o::declareBaseBinaryEdge(pybind11::module&)’:
/home/tufreiberg/g2opy/python/core/base_binary_edge.h:40:41: warning: unused parameter ‘m’ [-Wunused-parameter]
40 | void declareBaseBinaryEdge(py::module & m) {
| ~~~~~~~~~~~~~^
In file included from /home/tufreiberg/g2opy/python/g2o.cpp:25:
/home/tufreiberg/g2opy/python/core/linear_solver.h: In function ‘void g2o::declareLinearSolver(pybind11::module&)’:
/home/tufreiberg/g2opy/python/core/linear_solver.h:38:39: warning: unused parameter ‘m’ [-Wunused-parameter]
38 | void declareLinearSolver(py::module & m) {
| ~~~~~~~~~~~~~^
In file included from /home/tufreiberg/g2opy/python/core/eigen_types.h:2,
from /home/tufreiberg/g2opy/python/g2o.cpp:12:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/eigen.h: In instantiation of ‘pybind11::detail::EigenConformable::EigenConformable(pybind11::detail::EigenIndex, pybind11::detail::EigenIndex, pybind11::detail::EigenIndex, pybind11::detail::EigenIndex) [with bool EigenRowMajor = false; pybind11::detail::EigenIndex = long int]’:
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/eigen.h:153:61: required from ‘static pybind11::detail::EigenConformable<pybind11::detail::EigenProps<Type>::row_major> pybind11::detail::EigenProps<Type>::conformable(const pybind11::array&) [with Type = Eigen::Matrix<double, 3, 1>]’
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/eigen.h:267:39: required from ‘bool pybind11::detail::type_caster<Type, typename std::enable_if<std::is_same<pybind11::detail::bools<pybind11::detail::negation<std::is_same<pybind11::detail::bools<decltype (pybind11::detail::is_template_base_of_implEigen::DenseBase::check((typename pybind11::detail::intrinsic_type::type*)(nullptr)))::value, std::is_base_of<Eigen::MapBase<Derived, 0>, T>::value, true>, pybind11::detail::bools<true, decltype (pybind11::detail::is_template_base_of_implEigen::DenseBase::check((typename pybind11::detail::intrinsic_type::type*)(nullptr)))::value, std::is_base_of<Eigen::MapBase<Derived, 0>, T>::value> > >::value, decltype (pybind11::detail::is_template_base_of_implEigen::PlainObjectBase::check((typename pybind11::detail::intrinsic_type::type*)(nullptr)))::value, true>, pybind11::detail::bools<true, pybind11::detail::negation<std::is_same<pybind11::detail::bools<decltype (pybind11::detail::is_template_base_of_implEigen::DenseBase::check((typename pybind11::detail::intrinsic_type::type*)(nullptr)))::value, std::is_base_of<Eigen::MapBase<Derived, 0>, T>::value, true>, pybind11::detail::bools<true, decltype (pybind11::detail::is_template_base_of_implEigen::DenseBase::check((typename pybind11::detail::intrinsic_type::type*)(nullptr)))::value, std::is_base_of<Eigen::MapBase<Derived, 0>, T>::value> > >::value, decltype (pybind11::detail::is_template_base_of_implEigen::PlainObjectBase::check((typename pybind11::detail::intrinsic_type::type*)(nullptr)))::value> >::value, void>::type>::load(pybind11::handle, bool) [with Type = Eigen::Matrix<double, 3, 1>; typename std::enable_if<std::is_same<pybind11::detail::bools<pybind11::detail::negation<std::is_same<pybind11::detail::bools<decltype (pybind11::detail::is_template_base_of_implEigen::DenseBase::check((typename pybind11::detail::intrinsic_type::type*)(nullptr)))::value, std::is_base_of<Eigen::MapBase<Derived, 0>, T>::value, true>, pybind11::detail::bools<true, decltype (pybind11::detail::is_template_base_of_implEigen::DenseBase::check((typename pybind11::detail::intrinsic_type::type*)(nullptr)))::value, std::is_base_of<Eigen::MapBase<Derived, 0>, T>::value> > >::value, decltype (pybind11::detail::is_template_base_of_implEigen::PlainObjectBase::check((typename pybind11::detail::intrinsic_type::type*)(nullptr)))::value, true>, pybind11::detail::bools<true, pybind11::detail::negation<std::is_same<pybind11::detail::bools<decltype (pybind11::detail::is_template_base_of_implEigen::DenseBase::check((typename pybind11::detail::intrinsic_type::type*)(nullptr)))::value, std::is_base_of<Eigen::MapBase<Derived, 0>, T>::value, true>, pybind11::detail::bools<true, decltype (pybind11::detail::is_template_base_of_implEigen::DenseBase::check((typename pybind11::detail::intrinsic_type::type*)(nullptr)))::value, std::is_base_of<Eigen::MapBase<Derived, 0>, T>::value> > >::value, decltype (pybind11::detail::is_template_base_of_implEigen::PlainObjectBase::check((typename pybind11::detail::intrinsic_type::type*)(nullptr)))::value> >::value, void>::type = void]’
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:1852:9: required from ‘bool pybind11::detail::argument_loader::load_impl_sequence(pybind11::detail::function_call&, pybind11::detail::index_sequence<Is ...>) [with long unsigned int ...Is = {0, 1}; Args = {Eigen::Matrix<double, 3, 1, 0, 3, 1>&, Eigen::Matrix<double, 3, 1, 0, 3, 1>&}]’
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:1832:50: required from ‘bool pybind11::detail::argument_loader::load_args(pybind11::detail::function_call&) [with Args = {Eigen::Matrix<double, 3, 1, 0, 3, 1>&, Eigen::Matrix<double, 3, 1, 0, 3, 1>&}]’
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:135:17: required from ‘void pybind11::cpp_function::initialize(Func&&, Return (*)(Args ...), const Extra& ...) [with Func = g2o::declareEigenTypes(pybind11::module&)::<lambda(Eigen::Matrix<double, 3, 1>&, Eigen::Matrix<double, 3, 1>&)>; Return = Eigen::Quaternion; Args = {Eigen::Matrix<double, 3, 1, 0, 3, 1>&, Eigen::Matrix<double, 3, 1, 0, 3, 1>&}; Extra = {pybind11::name, pybind11::scope, pybind11::sibling}]’
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:65:9: required from ‘pybind11::cpp_function::cpp_function(Func&&, const Extra& ...) [with Func = g2o::declareEigenTypes(pybind11::module&)::<lambda(Eigen::Matrix<double, 3, 1>&, Eigen::Matrix<double, 3, 1>&)>; Extra = {pybind11::name, pybind11::scope, pybind11::sibling}; = void]’
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:1097:22: required from ‘pybind11::class<type, options>& pybind11::class_<type_, options>::def_static(const char*, Func&&, const Extra& ...) [with Func = g2o::declareEigenTypes(pybind11::module&)::<lambda(Eigen::Matrix<double, 3, 1>&, Eigen::Matrix<double, 3, 1>&)>; Extra = {}; type_ = Eigen::Quaternion; options = {}]’
/home/tufreiberg/g2opy/python/core/eigen_types.h:183:14: required from here
/home/tufreiberg/g2opy/EXTERNAL/pybind11/include/pybind11/eigen.h:83:20: warning: implicitly-declared ‘Eigen::Stride<-1, -1>& Eigen::Stride<-1, -1>::operator=(const Eigen::Stride<-1, -1>&)’ is deprecated [-Wdeprecated-copy]
83 | stride = {EigenRowMajor ? rstride : cstride /* outer stride /,
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
84 | EigenRowMajor ? cstride : rstride /
inner stride */ };
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/eigen3/Eigen/Core:468,
from /home/tufreiberg/g2opy/g2o/core/eigen_types.h:30,
from /home/tufreiberg/g2opy/build/g2o/config.h:26,
from /home/tufreiberg/g2opy/g2o/core/g2o_core_api.h:13,
from /home/tufreiberg/g2opy/g2o/core/hyper_graph.h:40,
from /home/tufreiberg/g2opy/python/core/hyper_graph.h:5,
from /home/tufreiberg/g2opy/python/g2o.cpp:3:
/usr/include/eigen3/Eigen/src/Core/Stride.h:71:5: note: because ‘Eigen::Stride<-1, -1>’ has user-provided ‘Eigen::Stride<InnerStrideAtCompileTime, OuterStrideAtCompileTime>::Stride(const Eigen::Stride<InnerStrideAtCompileTime, OuterStrideAtCompileTime>&) [with int _OuterStrideAtCompileTime = -1; int _InnerStrideAtCompileTime = -1]’
71 | Stride(const Stride& other)
| ^~~~~~

`

Has anyone an idea how to solve it?

@Polydynamical
Copy link

I had a similar problem. I just deleted the g2opy folder, cloned this repo and just copy pasted the build instructions. After an hour of working on it, it magically works

@Ali007788
Copy link
Author

@Polydynamical
Thanks for your reply. I'm confused and I think that I couldn't get what you mean by ' I just deleted the g2opy folder, cloned this repo and just copy pasted the build instructions'
Which repo did you clone?
Can you explain the steps that you did to get it working?
Thanks

@Polydynamical
Copy link

Polydynamical commented Nov 16, 2021

I deleted everything related to g2opy and then restarted my installation

@Ali007788
Copy link
Author

@Polydynamical I already tried what you said. But I still have the same problem!
Can you tell me which version of eigen and pybind11 did you use by installation?
Thanks

@Twenkid
Copy link

Twenkid commented Nov 28, 2021

Change make -j8 to make -j3 or -j2 or if it still doesn't complete: -j1. Watch the memory usage during the build with htop.
If you add -B - it will rebuild from scratch (clean).

Given the point of break, I guess that may be out of memory error - at least I had similar issues, when building on a virtual machine with limited memory and with swap turned off (sudo swapoff -a). RAM usage seemed to reach nearly 7 GB in some places even for 3 threads... on Xubuntu 20.04.

-j8 means 8 threads. So try with -j3 or -j2 etc. If you have a few cores and small memory some complicated parts of the compilation run out of resources.

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