Oxford-PTAM / PTAM-GPL

PTAM (Parallel Tracking and Mapping) re-released under GPLv3.
GNU General Public License v3.0
790 stars 360 forks source link

PTAM make error with TooN #10

Closed eddytheblack closed 8 years ago

eddytheblack commented 8 years ago

I have an issue where after installing all dependencies and attempting to run make on the PTAM project I get errors to do with template argument deduction/substitution.

Examples being:

In file included from /usr/local/include/TooN/TooN.h:355:0,
                 from GLWindow2.h:12,
                 from System.h:14,
                 from main.cc:6:
/usr/local/include/TooN/internal/diagmatrix.h:185:1: note: template<int R, int C, int Size, class P1, class P2, class B1, class B2> TooN::Matrix<R, C, typename TooN::Internal::MultiplyType<P1, P2>::type> TooN::operator*(const TooN::Matrix<R, C, P1, B1>&, const TooN::DiagonalMatrix<Size, P2, B2>&)
 operator* (const Matrix<R, C, P1, B1>& m, const DiagonalMatrix<Size, P2, B2>& d){
 ^
/usr/local/include/TooN/internal/diagmatrix.h:185:1: note:   template argument deduction/substitution failed:
In file included from /usr/local/include/TooN/TooN.h:360:0,
                 from GLWindow2.h:12,
                 from System.h:14,
                 from main.cc:6:
/usr/local/include/TooN/helpers.h:375:31: note:   ‘TooN::Operator<TooN::Internal::Identity<TooN::Internal::One> >’ is not derived from ‘const TooN::Matrix<R, C, P1, B1>’
   while(norm_inf(A - Identity*1.0) > 0.5){

Am I missing something?