When i try to install this package using either pip or cloning repository, following, quite verbose, errors happen on GKextCPy compilation step:
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /usr/local/lib/python3.5/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1821:0,
from /usr/local/lib/python3.5/dist-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /usr/local/lib/python3.5/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
from GKextCPy_wrap.cxx:3665:
/usr/local/lib/python3.5/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
GKextCPy_wrap.cxx: In instantiation of ‘PyObject* ConvertFromEigenToNumpyMatrix(Eigen::MatrixBase<Derived>*, void*, bool) [with Derived = Eigen::Matrix<int, -1, -1>; PyObject = _object]’:
GKextCPy_wrap.cxx:17355:75: required from here
GKextCPy_wrap.cxx:6084:39: warning: unused variable ‘cpp_data’ [-Wunused-variable]
typename Derived::Scalar* cpp_data= static_cast<typename Derived::Scalar*>(data);
^
GKextCPy_wrap.cxx: In instantiation of ‘void ConvertFromNumpyToEigenMatrix(Eigen::MatrixBase<Derived>*, PyObject*) [with Derived = Eigen::Matrix<int, -1, -1>; PyObject = _object]’:
GKextCPy_wrap.cxx:17446:47: required from here
GKextCPy_wrap.cxx:6157:14: warning: unused variable ‘numpy_is_row_major’ [-Wunused-variable]
bool numpy_is_row_major = array_is_contiguous(in);
^
GKextCPy_wrap.cxx:6159:13: warning: unused variable ‘numpy_type_code’ [-Wunused-variable]
int numpy_type_code = array_type(in);
^
GKextCPy_wrap.cxx: In instantiation of ‘PyObject* ConvertFromEigenToNumpyMatrix(Eigen::MatrixBase<Derived>*, void*, bool) [with Derived = Eigen::Matrix<double, -1, -1>; PyObject = _object]’:
GKextCPy_wrap.cxx:18783:85: required from here
GKextCPy_wrap.cxx:6084:39: warning: unused variable ‘cpp_data’ [-Wunused-variable]
typename Derived::Scalar* cpp_data= static_cast<typename Derived::Scalar*>(data);
^
GKextCPy_wrap.cxx: In instantiation of ‘void ConvertFromNumpyToEigenMatrix(Eigen::MatrixBase<Derived>*, PyObject*) [with Derived = Eigen::Matrix<double, -1, 1>; PyObject = _object]’:
GKextCPy_wrap.cxx:19689:47: required from here
GKextCPy_wrap.cxx:6157:14: warning: unused variable ‘numpy_is_row_major’ [-Wunused-variable]
bool numpy_is_row_major = array_is_contiguous(in);
^
GKextCPy_wrap.cxx:6159:13: warning: unused variable ‘numpy_type_code’ [-Wunused-variable]
int numpy_type_code = array_type(in);
^
GKextCPy_wrap.cxx: In instantiation of ‘PyObject* ConvertFromEigenToNumpyMatrix(Eigen::MatrixBase<Derived>*, void*, bool) [with Derived = Eigen::Matrix<double, -1, 1>; PyObject = _object]’:
GKextCPy_wrap.cxx:19695:85: required from here
GKextCPy_wrap.cxx:6084:39: warning: unused variable ‘cpp_data’ [-Wunused-variable]
typename Derived::Scalar* cpp_data= static_cast<typename Derived::Scalar*>(data);
^
In file included from /usr/include/eigen3/Eigen/Core:367:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/Matrix.h: In instantiation of ‘Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(const T&) [with T = swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >; _Scalar = int; int _Rows = -1; int _Cols = -1; int _Options = 0; int _MaxRows = -1; int _MaxCols = -1]’:
GKextCPy_wrap.cxx:4755:7: required from ‘void swig::assign(const SwigPySeq&, Seq*) [with SwigPySeq = swig::SwigPySequence_Cont<Eigen::Matrix<int, -1, -1> >; Seq = std::vector<Eigen::Matrix<int, -1, -1> >]’
GKextCPy_wrap.cxx:4777:12: required from ‘static int swig::traits_asptr_stdseq<Seq, T>::asptr(PyObject*, swig::traits_asptr_stdseq<Seq, T>::sequence**) [with Seq = std::vector<Eigen::Matrix<int, -1, -1> >; T = Eigen::Matrix<int, -1, -1>; PyObject = _object; swig::traits_asptr_stdseq<Seq, T>::sequence = std::vector<Eigen::Matrix<int, -1, -1> >]’
GKextCPy_wrap.cxx:4838:52: required from ‘static int swig::traits_asptr<std::vector<_RealType> >::asptr(PyObject*, std::vector<_RealType>**) [with T = Eigen::Matrix<int, -1, -1>; PyObject = _object]’
GKextCPy_wrap.cxx:3816:37: required from ‘int swig::asptr(PyObject*, Type**) [with Type = std::vector<Eigen::Matrix<int, -1, -1> >; PyObject = _object]’
GKextCPy_wrap.cxx:16925:34: required from here
/usr/include/eigen3/Eigen/src/Core/Matrix.h:296:31: error: no matching function for call to ‘Eigen::Matrix<int, -1, -1>::_init1(const swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >&)’
Base::template _init1<T>(x);
^
In file included from /usr/include/eigen3/Eigen/Core:366:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:740:30: note: candidate: template<class T> void Eigen::PlainObjectBase<Derived>::_init1(Eigen::Index, typename Eigen::internal::enable_if<(((typename Eigen::internal::dense_xpr_base<Derived>::type:: SizeAtCompileTime != 1) || (! Eigen::internal::is_convertible<T, typename Eigen::internal::traits<T>::Scalar>::value)) && ((! Eigen::internal::is_same<typename Eigen::internal::traits<T>::XprKind, Eigen::ArrayXpr>::value) || (typename Eigen::internal::dense_xpr_base<Derived>::type:: SizeAtCompileTime == Eigen::Dynamic))), T>::type*) [with T = T; Derived = Eigen::Matrix<int, -1, -1>]
EIGEN_STRONG_INLINE void _init1(Index size, typename internal::enable_if< (Base::SizeAtCompileTime!=1 || !internal::is_convertible<T, Scalar>::value)
^
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:740:30: note: template argument deduction/substitution failed:
In file included from /usr/include/eigen3/Eigen/Core:367:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/Matrix.h:296:31: note: cannot convert ‘x’ (type ‘const swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >’) to type ‘Eigen::Index {aka long int}’
Base::template _init1<T>(x);
^
In file included from /usr/include/eigen3/Eigen/Core:366:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:753:30: note: candidate: template<class T> void Eigen::PlainObjectBase<Derived>::_init1(const Scalar&, typename Eigen::internal::enable_if<((typename Eigen::internal::dense_xpr_base<Derived>::type:: SizeAtCompileTime == 1) && Eigen::internal::is_convertible<T, typename Eigen::internal::traits<T>::Scalar>::value), T>::type*) [with T = T; Derived = Eigen::Matrix<int, -1, -1>]
EIGEN_STRONG_INLINE void _init1(const Scalar& val0, typename internal::enable_if<Base::SizeAtCompileTime==1 && internal::is_convertible<T, Scalar>::value,T>::type* = 0)
^
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:753:30: note: template argument deduction/substitution failed:
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h: In substitution of ‘template<class T> void Eigen::PlainObjectBase<Derived>::_init1(const Scalar&, typename Eigen::internal::enable_if<((typename Eigen::internal::dense_xpr_base<Derived>::type:: SizeAtCompileTime == 1) && Eigen::internal::is_convertible<T, typename Eigen::internal::traits<T>::Scalar>::value), T>::type*) [with T = swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >]’:
/usr/include/eigen3/Eigen/src/Core/Matrix.h:296:31: required from ‘Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(const T&) [with T = swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >; _Scalar = int; int _Rows = -1; int _Cols = -1; int _Options = 0; int _MaxRows = -1; int _MaxCols = -1]’
GKextCPy_wrap.cxx:4755:7: required from ‘void swig::assign(const SwigPySeq&, Seq*) [with SwigPySeq = swig::SwigPySequence_Cont<Eigen::Matrix<int, -1, -1> >; Seq = std::vector<Eigen::Matrix<int, -1, -1> >]’
GKextCPy_wrap.cxx:4777:12: required from ‘static int swig::traits_asptr_stdseq<Seq, T>::asptr(PyObject*, swig::traits_asptr_stdseq<Seq, T>::sequence**) [with Seq = std::vector<Eigen::Matrix<int, -1, -1> >; T = Eigen::Matrix<int, -1, -1>; PyObject = _object; swig::traits_asptr_stdseq<Seq, T>::sequence = std::vector<Eigen::Matrix<int, -1, -1> >]’
GKextCPy_wrap.cxx:4838:52: required from ‘static int swig::traits_asptr<std::vector<_RealType> >::asptr(PyObject*, std::vector<_RealType>**) [with T = Eigen::Matrix<int, -1, -1>; PyObject = _object]’
GKextCPy_wrap.cxx:3816:37: required from ‘int swig::asptr(PyObject*, Type**) [with Type = std::vector<Eigen::Matrix<int, -1, -1> >; PyObject = _object]’
GKextCPy_wrap.cxx:16925:34: required from here
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:753:30: error: invalid use of incomplete type ‘struct Eigen::internal::enable_if<false, swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> > >’
In file included from /usr/include/eigen3/Eigen/Core:295:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/util/Meta.h:131:45: note: declaration of ‘struct Eigen::internal::enable_if<false, swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> > >’
template<bool Condition, typename T> struct enable_if;
^
In file included from /usr/include/eigen3/Eigen/Core:366:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/Matrix.h: In instantiation of ‘Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(const T&) [with T = swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >; _Scalar = int; int _Rows = -1; int _Cols = -1; int _Options = 0; int _MaxRows = -1; int _MaxCols = -1]’:
GKextCPy_wrap.cxx:4755:7: required from ‘void swig::assign(const SwigPySeq&, Seq*) [with SwigPySeq = swig::SwigPySequence_Cont<Eigen::Matrix<int, -1, -1> >; Seq = std::vector<Eigen::Matrix<int, -1, -1> >]’
GKextCPy_wrap.cxx:4777:12: required from ‘static int swig::traits_asptr_stdseq<Seq, T>::asptr(PyObject*, swig::traits_asptr_stdseq<Seq, T>::sequence**) [with Seq = std::vector<Eigen::Matrix<int, -1, -1> >; T = Eigen::Matrix<int, -1, -1>; PyObject = _object; swig::traits_asptr_stdseq<Seq, T>::sequence = std::vector<Eigen::Matrix<int, -1, -1> >]’
GKextCPy_wrap.cxx:4838:52: required from ‘static int swig::traits_asptr<std::vector<_RealType> >::asptr(PyObject*, std::vector<_RealType>**) [with T = Eigen::Matrix<int, -1, -1>; PyObject = _object]’
GKextCPy_wrap.cxx:3816:37: required from ‘int swig::asptr(PyObject*, Type**) [with Type = std::vector<Eigen::Matrix<int, -1, -1> >; PyObject = _object]’
GKextCPy_wrap.cxx:16925:34: required from here
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:762:30: note: candidate: template<class T> void Eigen::PlainObjectBase<Derived>::_init1(const Index&, typename Eigen::internal::enable_if<((((! Eigen::internal::is_same<long int, typename Eigen::internal::traits<T>::Scalar>::value) && Eigen::internal::is_same<long int, T>::value) && (typename Eigen::internal::dense_xpr_base<Derived>::type:: SizeAtCompileTime == 1)) && Eigen::internal::is_convertible<T, typename Eigen::internal::traits<T>::Scalar>::value), T*>::type*) [with T = T; Derived = Eigen::Matrix<int, -1, -1>]
EIGEN_STRONG_INLINE void _init1(const Index& val0,
^
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:762:30: note: template argument deduction/substitution failed:
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h: In substitution of ‘template<class T> void Eigen::PlainObjectBase<Derived>::_init1(const Index&, typename Eigen::internal::enable_if<((((! Eigen::internal::is_same<long int, typename Eigen::internal::traits<T>::Scalar>::value) && Eigen::internal::is_same<long int, T>::value) && (typename Eigen::internal::dense_xpr_base<Derived>::type:: SizeAtCompileTime == 1)) && Eigen::internal::is_convertible<T, typename Eigen::internal::traits<T>::Scalar>::value), T*>::type*) [with T = swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >]’:
/usr/include/eigen3/Eigen/src/Core/Matrix.h:296:31: required from ‘Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(const T&) [with T = swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >; _Scalar = int; int _Rows = -1; int _Cols = -1; int _Options = 0; int _MaxRows = -1; int _MaxCols = -1]’
GKextCPy_wrap.cxx:4755:7: required from ‘void swig::assign(const SwigPySeq&, Seq*) [with SwigPySeq = swig::SwigPySequence_Cont<Eigen::Matrix<int, -1, -1> >; Seq = std::vector<Eigen::Matrix<int, -1, -1> >]’
GKextCPy_wrap.cxx:4777:12: required from ‘static int swig::traits_asptr_stdseq<Seq, T>::asptr(PyObject*, swig::traits_asptr_stdseq<Seq, T>::sequence**) [with Seq = std::vector<Eigen::Matrix<int, -1, -1> >; T = Eigen::Matrix<int, -1, -1>; PyObject = _object; swig::traits_asptr_stdseq<Seq, T>::sequence = std::vector<Eigen::Matrix<int, -1, -1> >]’
GKextCPy_wrap.cxx:4838:52: required from ‘static int swig::traits_asptr<std::vector<_RealType> >::asptr(PyObject*, std::vector<_RealType>**) [with T = Eigen::Matrix<int, -1, -1>; PyObject = _object]’
GKextCPy_wrap.cxx:3816:37: required from ‘int swig::asptr(PyObject*, Type**) [with Type = std::vector<Eigen::Matrix<int, -1, -1> >; PyObject = _object]’
GKextCPy_wrap.cxx:16925:34: required from here
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:762:30: error: invalid use of incomplete type ‘struct Eigen::internal::enable_if<false, swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >*>’
In file included from /usr/include/eigen3/Eigen/Core:295:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/util/Meta.h:131:45: note: declaration of ‘struct Eigen::internal::enable_if<false, swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >*>’
template<bool Condition, typename T> struct enable_if;
^
In file included from /usr/include/eigen3/Eigen/Core:366:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/Matrix.h: In instantiation of ‘Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(const T&) [with T = swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >; _Scalar = int; int _Rows = -1; int _Cols = -1; int _Options = 0; int _MaxRows = -1; int _MaxCols = -1]’:
GKextCPy_wrap.cxx:4755:7: required from ‘void swig::assign(const SwigPySeq&, Seq*) [with SwigPySeq = swig::SwigPySequence_Cont<Eigen::Matrix<int, -1, -1> >; Seq = std::vector<Eigen::Matrix<int, -1, -1> >]’
GKextCPy_wrap.cxx:4777:12: required from ‘static int swig::traits_asptr_stdseq<Seq, T>::asptr(PyObject*, swig::traits_asptr_stdseq<Seq, T>::sequence**) [with Seq = std::vector<Eigen::Matrix<int, -1, -1> >; T = Eigen::Matrix<int, -1, -1>; PyObject = _object; swig::traits_asptr_stdseq<Seq, T>::sequence = std::vector<Eigen::Matrix<int, -1, -1> >]’
GKextCPy_wrap.cxx:4838:52: required from ‘static int swig::traits_asptr<std::vector<_RealType> >::asptr(PyObject*, std::vector<_RealType>**) [with T = Eigen::Matrix<int, -1, -1>; PyObject = _object]’
GKextCPy_wrap.cxx:3816:37: required from ‘int swig::asptr(PyObject*, Type**) [with Type = std::vector<Eigen::Matrix<int, -1, -1> >; PyObject = _object]’
GKextCPy_wrap.cxx:16925:34: required from here
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:775:30: note: candidate: template<class T> void Eigen::PlainObjectBase<Derived>::_init1(const Scalar*) [with T = T; Derived = Eigen::Matrix<int, -1, -1>]
EIGEN_STRONG_INLINE void _init1(const Scalar* data){
^
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:775:30: note: template argument deduction/substitution failed:
In file included from /usr/include/eigen3/Eigen/Core:367:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/Matrix.h:296:31: note: cannot convert ‘x’ (type ‘const swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >’) to type ‘const Scalar* {aka const int*}’
Base::template _init1<T>(x);
^
In file included from /usr/include/eigen3/Eigen/Core:366:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:782:30: note: candidate: template<class T, class OtherDerived> void Eigen::PlainObjectBase<Derived>::_init1(const Eigen::DenseBase<ElseDerived>&) [with T = T; OtherDerived = OtherDerived; Derived = Eigen::Matrix<int, -1, -1>]
EIGEN_STRONG_INLINE void _init1(const DenseBase<OtherDerived>& other){
^
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:782:30: note: template argument deduction/substitution failed:
In file included from /usr/include/eigen3/Eigen/Core:367:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/Matrix.h:296:31: note: ‘const swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >’ is not derived from ‘const Eigen::DenseBase<Derived>’
Base::template _init1<T>(x);
^
In file included from /usr/include/eigen3/Eigen/Core:366:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:789:30: note: candidate: template<class T, class OtherDerived> void Eigen::PlainObjectBase<Derived>::_init1(const Eigen::EigenBase<OtherDerived>&) [with T = T; OtherDerived = OtherDerived; Derived = Eigen::Matrix<int, -1, -1>]
EIGEN_STRONG_INLINE void _init1(const EigenBase<OtherDerived>& other){
^
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:789:30: note: template argument deduction/substitution failed:
In file included from /usr/include/eigen3/Eigen/Core:367:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/Matrix.h:296:31: note: ‘const swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >’ is not derived from ‘const Eigen::EigenBase<OtherDerived>’
Base::template _init1<T>(x);
^
In file included from /usr/include/eigen3/Eigen/Core:366:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:795:30: note: candidate: template<class T, class OtherDerived> void Eigen::PlainObjectBase<Derived>::_init1(const Eigen::ReturnByValue<OtherDerived>&) [with T = T; OtherDerived = OtherDerived; Derived = Eigen::Matrix<int, -1, -1>]
EIGEN_STRONG_INLINE void _init1(const ReturnByValue<OtherDerived>& other)
^
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:795:30: note: template argument deduction/substitution failed:
In file included from /usr/include/eigen3/Eigen/Core:367:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/Matrix.h:296:31: note: ‘const swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >’ is not derived from ‘const Eigen::ReturnByValue<OtherDerived>’
Base::template _init1<T>(x);
^
In file included from /usr/include/eigen3/Eigen/Core:366:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:803:30: note: candidate: template<class T, class OtherDerived, int ColsAtCompileTime> void Eigen::PlainObjectBase<Derived>::_init1(const Eigen::RotationBase<OtherDerived, ColsAtCompileTime>&) [with T = T; OtherDerived = OtherDerived; int ColsAtCompileTime = ColsAtCompileTime; Derived = Eigen::Matrix<int, -1, -1>]
EIGEN_STRONG_INLINE void _init1(const RotationBase<OtherDerived,ColsAtCompileTime>& r)
^
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:803:30: note: template argument deduction/substitution failed:
In file included from /usr/include/eigen3/Eigen/Core:367:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/Matrix.h:296:31: note: ‘const swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >’ is not derived from ‘const Eigen::RotationBase<OtherDerived, ColsAtCompileTime>’
Base::template _init1<T>(x);
^
In file included from /usr/include/eigen3/Eigen/Core:366:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:811:30: note: candidate: template<class T> void Eigen::PlainObjectBase<Derived>::_init1(const Scalar&, typename Eigen::internal::enable_if<((((typename Eigen::internal::dense_xpr_base<Derived>::type:: SizeAtCompileTime != Eigen::Dynamic) && (typename Eigen::internal::dense_xpr_base<Derived>::type:: SizeAtCompileTime != 1)) && Eigen::internal::is_convertible<T, typename Eigen::internal::traits<T>::Scalar>::value) && Eigen::internal::is_same<typename Eigen::internal::traits<T>::XprKind, Eigen::ArrayXpr>::value), T>::type*) [with T = T; Derived = Eigen::Matrix<int, -1, -1>]
EIGEN_STRONG_INLINE void _init1(const Scalar& val0,
^
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:811:30: note: template argument deduction/substitution failed:
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h: In substitution of ‘template<class T> void Eigen::PlainObjectBase<Derived>::_init1(const Scalar&, typename Eigen::internal::enable_if<((((typename Eigen::internal::dense_xpr_base<Derived>::type:: SizeAtCompileTime != Eigen::Dynamic) && (typename Eigen::internal::dense_xpr_base<Derived>::type:: SizeAtCompileTime != 1)) && Eigen::internal::is_convertible<T, typename Eigen::internal::traits<T>::Scalar>::value) && Eigen::internal::is_same<typename Eigen::internal::traits<T>::XprKind, Eigen::ArrayXpr>::value), T>::type*) [with T = swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >]’:
/usr/include/eigen3/Eigen/src/Core/Matrix.h:296:31: required from ‘Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(const T&) [with T = swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >; _Scalar = int; int _Rows = -1; int _Cols = -1; int _Options = 0; int _MaxRows = -1; int _MaxCols = -1]’
GKextCPy_wrap.cxx:4755:7: required from ‘void swig::assign(const SwigPySeq&, Seq*) [with SwigPySeq = swig::SwigPySequence_Cont<Eigen::Matrix<int, -1, -1> >; Seq = std::vector<Eigen::Matrix<int, -1, -1> >]’
GKextCPy_wrap.cxx:4777:12: required from ‘static int swig::traits_asptr_stdseq<Seq, T>::asptr(PyObject*, swig::traits_asptr_stdseq<Seq, T>::sequence**) [with Seq = std::vector<Eigen::Matrix<int, -1, -1> >; T = Eigen::Matrix<int, -1, -1>; PyObject = _object; swig::traits_asptr_stdseq<Seq, T>::sequence = std::vector<Eigen::Matrix<int, -1, -1> >]’
GKextCPy_wrap.cxx:4838:52: required from ‘static int swig::traits_asptr<std::vector<_RealType> >::asptr(PyObject*, std::vector<_RealType>**) [with T = Eigen::Matrix<int, -1, -1>; PyObject = _object]’
GKextCPy_wrap.cxx:3816:37: required from ‘int swig::asptr(PyObject*, Type**) [with Type = std::vector<Eigen::Matrix<int, -1, -1> >; PyObject = _object]’
GKextCPy_wrap.cxx:16925:34: required from here
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:811:30: error: invalid use of incomplete type ‘struct Eigen::internal::enable_if<false, swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> > >’
In file included from /usr/include/eigen3/Eigen/Core:295:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/util/Meta.h:131:45: note: declaration of ‘struct Eigen::internal::enable_if<false, swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> > >’
template<bool Condition, typename T> struct enable_if;
^
In file included from /usr/include/eigen3/Eigen/Core:366:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/Matrix.h: In instantiation of ‘Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(const T&) [with T = swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >; _Scalar = int; int _Rows = -1; int _Cols = -1; int _Options = 0; int _MaxRows = -1; int _MaxCols = -1]’:
GKextCPy_wrap.cxx:4755:7: required from ‘void swig::assign(const SwigPySeq&, Seq*) [with SwigPySeq = swig::SwigPySequence_Cont<Eigen::Matrix<int, -1, -1> >; Seq = std::vector<Eigen::Matrix<int, -1, -1> >]’
GKextCPy_wrap.cxx:4777:12: required from ‘static int swig::traits_asptr_stdseq<Seq, T>::asptr(PyObject*, swig::traits_asptr_stdseq<Seq, T>::sequence**) [with Seq = std::vector<Eigen::Matrix<int, -1, -1> >; T = Eigen::Matrix<int, -1, -1>; PyObject = _object; swig::traits_asptr_stdseq<Seq, T>::sequence = std::vector<Eigen::Matrix<int, -1, -1> >]’
GKextCPy_wrap.cxx:4838:52: required from ‘static int swig::traits_asptr<std::vector<_RealType> >::asptr(PyObject*, std::vector<_RealType>**) [with T = Eigen::Matrix<int, -1, -1>; PyObject = _object]’
GKextCPy_wrap.cxx:3816:37: required from ‘int swig::asptr(PyObject*, Type**) [with Type = std::vector<Eigen::Matrix<int, -1, -1> >; PyObject = _object]’
GKextCPy_wrap.cxx:16925:34: required from here
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:822:30: note: candidate: template<class T> void Eigen::PlainObjectBase<Derived>::_init1(const Index&, typename Eigen::internal::enable_if<((((((! Eigen::internal::is_same<long int, typename Eigen::internal::traits<T>::Scalar>::value) && Eigen::internal::is_same<long int, T>::value) && (typename Eigen::internal::dense_xpr_base<Derived>::type:: SizeAtCompileTime != Eigen::Dynamic)) && (typename Eigen::internal::dense_xpr_base<Derived>::type:: SizeAtCompileTime != 1)) && Eigen::internal::is_convertible<T, typename Eigen::internal::traits<T>::Scalar>::value) && Eigen::internal::is_same<typename Eigen::internal::traits<T>::XprKind, Eigen::ArrayXpr>::value), T*>::type*) [with T = T; Derived = Eigen::Matrix<int, -1, -1>]
EIGEN_STRONG_INLINE void _init1(const Index& val0,
^
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:822:30: note: template argument deduction/substitution failed:
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h: In substitution of ‘template<class T> void Eigen::PlainObjectBase<Derived>::_init1(const Index&, typename Eigen::internal::enable_if<((((((! Eigen::internal::is_same<long int, typename Eigen::internal::traits<T>::Scalar>::value) && Eigen::internal::is_same<long int, T>::value) && (typename Eigen::internal::dense_xpr_base<Derived>::type:: SizeAtCompileTime != Eigen::Dynamic)) && (typename Eigen::internal::dense_xpr_base<Derived>::type:: SizeAtCompileTime != 1)) && Eigen::internal::is_convertible<T, typename Eigen::internal::traits<T>::Scalar>::value) && Eigen::internal::is_same<typename Eigen::internal::traits<T>::XprKind, Eigen::ArrayXpr>::value), T*>::type*) [with T = swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >]’:
/usr/include/eigen3/Eigen/src/Core/Matrix.h:296:31: required from ‘Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(const T&) [with T = swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >; _Scalar = int; int _Rows = -1; int _Cols = -1; int _Options = 0; int _MaxRows = -1; int _MaxCols = -1]’
GKextCPy_wrap.cxx:4755:7: required from ‘void swig::assign(const SwigPySeq&, Seq*) [with SwigPySeq = swig::SwigPySequence_Cont<Eigen::Matrix<int, -1, -1> >; Seq = std::vector<Eigen::Matrix<int, -1, -1> >]’
GKextCPy_wrap.cxx:4777:12: required from ‘static int swig::traits_asptr_stdseq<Seq, T>::asptr(PyObject*, swig::traits_asptr_stdseq<Seq, T>::sequence**) [with Seq = std::vector<Eigen::Matrix<int, -1, -1> >; T = Eigen::Matrix<int, -1, -1>; PyObject = _object; swig::traits_asptr_stdseq<Seq, T>::sequence = std::vector<Eigen::Matrix<int, -1, -1> >]’
GKextCPy_wrap.cxx:4838:52: required from ‘static int swig::traits_asptr<std::vector<_RealType> >::asptr(PyObject*, std::vector<_RealType>**) [with T = Eigen::Matrix<int, -1, -1>; PyObject = _object]’
GKextCPy_wrap.cxx:3816:37: required from ‘int swig::asptr(PyObject*, Type**) [with Type = std::vector<Eigen::Matrix<int, -1, -1> >; PyObject = _object]’
GKextCPy_wrap.cxx:16925:34: required from here
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:822:30: error: invalid use of incomplete type ‘struct Eigen::internal::enable_if<false, swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >*>’
In file included from /usr/include/eigen3/Eigen/Core:295:0,
from GKextCPy.h:16,
from GKextCPy_wrap.cxx:3143:
/usr/include/eigen3/Eigen/src/Core/util/Meta.h:131:45: note: declaration of ‘struct Eigen::internal::enable_if<false, swig::SwigPySequence_Ref<Eigen::Matrix<int, -1, -1> >*>’
template<bool Condition, typename T> struct enable_if;
^
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
I`ve tried both pyton2 and python3, error is the same. Eigen3 is 3.3~beta1-2 version , pkg-config is 0.29.1, numpy is 1.15.0.
Any help is appreciated.