Skip to content

Cannot make build on macosx #10

Description

@imranq

It seems to be an issue with Eigen, but I cannot get this package to install:

n file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/python/g2o.cpp:1: In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43: In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13: In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:16: /Volumes/IQSD/Projects/twitchslam-master/g2opy/EXTERNAL/pybind11/include/pybind11/detail/internals.h:82:14: warning: 'PyThread_create_key' is deprecated [-Wdeprecated-declarations] decltype(PyThread_create_key()) tstate = 0; // Usually an int but a ... ^ /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pythread.h:95:17: note: 'PyThread_create_key' has been explicitly marked deprecated here PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7); ^ In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/python/g2o.cpp:1: In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43: In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13: In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:16: /Volumes/IQSD/Projects/twitchslam-master/g2opy/EXTERNAL/pybind11/include/pybind11/detail/internals.h:167:33: warning: 'PyThread_create_key' is deprecated [-Wdeprecated-declarations] internals_ptr->tstate = PyThread_create_key(); ^ /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pythread.h:95:17: note: 'PyThread_create_key' has been explicitly marked deprecated here PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7); ^ In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/python/g2o.cpp:1: In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:43: In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/EXTERNAL/pybind11/include/pybind11/attr.h:13: In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/EXTERNAL/pybind11/include/pybind11/cast.h:16: /Volumes/IQSD/Projects/twitchslam-master/g2opy/EXTERNAL/pybind11/include/pybind11/detail/internals.h:168:9: warning: 'PyThread_set_key_value' is deprecated [-Wdeprecated-declarations] PyThread_set_key_value(internals_ptr->tstate, tstate); ^ /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pythread.h:97:17: note: 'PyThread_set_key_value' has been explicitly marked deprecated here PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7); ^ In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/python/g2o.cpp:1: /Volumes/IQSD/Projects/twitchslam-master/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:1741:36: warning: 'PyThread_get_key_value' is deprecated [-Wdeprecated-declarations] tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate); ^ /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pythread.h:98:20: note: 'PyThread_get_key_value' has been explicitly marked deprecated here PyAPI_FUNC(void *) PyThread_get_key_value(int key) Py_DEPRECATED(3.7); ^ In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/python/g2o.cpp:1: /Volumes/IQSD/Projects/twitchslam-master/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:1753:13: warning: 'PyThread_set_key_value' is deprecated [-Wdeprecated-declarations] PyThread_set_key_value(internals.tstate, tstate); ^ /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pythread.h:97:17: note: 'PyThread_set_key_value' has been explicitly marked deprecated here PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7); ^ In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/python/g2o.cpp:1: /Volumes/IQSD/Projects/twitchslam-master/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:1792:13: warning: 'PyThread_delete_key_value' is deprecated [-Wdeprecated-declarations] PyThread_delete_key_value(detail::get_internals().tstate); ^ /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pythread.h:99:18: note: 'PyThread_delete_key_value' has been explicitly marked deprecated here PyAPI_FUNC(void) PyThread_delete_key_value(int key) Py_DEPRECATED(3.7); ^ In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/python/g2o.cpp:1: /Volumes/IQSD/Projects/twitchslam-master/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:1820:17: warning: 'PyThread_set_key_value' is deprecated [-Wdeprecated-declarations] PyThread_set_key_value(key, nullptr); ^ /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pythread.h:97:17: note: 'PyThread_set_key_value' has been explicitly marked deprecated here PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7); ^ In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/python/g2o.cpp:1: /Volumes/IQSD/Projects/twitchslam-master/g2opy/EXTERNAL/pybind11/include/pybind11/pybind11.h:1833:13: warning: 'PyThread_set_key_value' is deprecated [-Wdeprecated-declarations] PyThread_set_key_value(key, tstate); ^ /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pythread.h:97:17: note: 'PyThread_set_key_value' has been explicitly marked deprecated here PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7); ^ In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/python/g2o.cpp:12: /Volumes/IQSD/Projects/twitchslam-master/g2opy/python/core/eigen_types.h:185:62: error: address of overloaded function 'x' does not match required type 'double () const' ...(double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::x) ^~~~~~~~~~~~~~~~~~~~~ /usr/local/include/eigen3/Eigen/src/Geometry/Quaternion.h:66:44: note: candidate function has different return type ('double' expected but has 'CoeffReturnType' (aka 'const double &')) EIGEN_DEVICE_FUNC inline CoeffReturnType x() const { return this->deri... ^ /usr/local/include/eigen3/Eigen/src/Geometry/Quaternion.h:75:52: note: candidate function has different return type ('double' expected but has 'NonConstCoeffReturnType' (aka 'double &')) EIGEN_DEVICE_FUNC inline NonConstCoeffReturnType x() { return this->de... ^ In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/python/g2o.cpp:12: /Volumes/IQSD/Projects/twitchslam-master/g2opy/python/core/eigen_types.h:186:62: error: address of overloaded function 'y' does not match required type 'double () const' ...(double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::y) ^~~~~~~~~~~~~~~~~~~~~ /usr/local/include/eigen3/Eigen/src/Geometry/Quaternion.h:68:44: note: candidate function has different return type ('double' expected but has 'CoeffReturnType' (aka 'const double &')) EIGEN_DEVICE_FUNC inline CoeffReturnType y() const { return this->deri... ^ /usr/local/include/eigen3/Eigen/src/Geometry/Quaternion.h:77:52: note: candidate function has different return type ('double' expected but has 'NonConstCoeffReturnType' (aka 'double &')) EIGEN_DEVICE_FUNC inline NonConstCoeffReturnType y() { return this->de... ^ In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/python/g2o.cpp:12: /Volumes/IQSD/Projects/twitchslam-master/g2opy/python/core/eigen_types.h:187:62: error: address of overloaded function 'z' does not match required type 'double () const' ...(double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::z) ^~~~~~~~~~~~~~~~~~~~~ /usr/local/include/eigen3/Eigen/src/Geometry/Quaternion.h:70:44: note: candidate function has different return type ('double' expected but has 'CoeffReturnType' (aka 'const double &')) EIGEN_DEVICE_FUNC inline CoeffReturnType z() const { return this->deri... ^ /usr/local/include/eigen3/Eigen/src/Geometry/Quaternion.h:79:52: note: candidate function has different return type ('double' expected but has 'NonConstCoeffReturnType' (aka 'double &')) EIGEN_DEVICE_FUNC inline NonConstCoeffReturnType z() { return this->de... ^ In file included from /Volumes/IQSD/Projects/twitchslam-master/g2opy/python/g2o.cpp:12: /Volumes/IQSD/Projects/twitchslam-master/g2opy/python/core/eigen_types.h:188:62: error: address of overloaded function 'w' does not match required type 'double () const' ...(double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::w) ^~~~~~~~~~~~~~~~~~~~~ /usr/local/include/eigen3/Eigen/src/Geometry/Quaternion.h:72:44: note: candidate function has different return type ('double' expected but has 'CoeffReturnType' (aka 'const double &')) EIGEN_DEVICE_FUNC inline CoeffReturnType w() const { return this->deri... ^ /usr/local/include/eigen3/Eigen/src/Geometry/Quaternion.h:81:52: note: candidate function has different return type ('double' expected but has 'NonConstCoeffReturnType' (aka 'double &')) EIGEN_DEVICE_FUNC inline NonConstCoeffReturnType w() { return this->de... ^

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions