Matlab wrapper fails to install

Issue #371 resolved
Fredrik Bjerkås created an issue

Hello, when trying to make install with the matlab toolbox option enabled, i get the following errors:

.
.
.
[ 65%] Generating ../wrap/gtsam/gtsam_wrapper.cpp
Scanning dependencies of target gtsam_matlab_wrapper
[ 65%] Building CXX object gtsam/CMakeFiles/gtsam_matlab_wrapper.dir/__/wrap/gtsam/gtsam_wrapper.cpp.o
In file included from /home/fbjerkaas/Master/gtsam/gtsam/geometry/PinholeCamera.h:21:0,
                 from /home/fbjerkaas/Master/gtsam/build/wrap/gtsam/gtsam_wrapper.cpp:21:
/home/fbjerkaas/Master/gtsam/gtsam/geometry/PinholePose.h: In instantiation of gtsam::Point3 gtsam::PinholeBaseK<CALIBRATION>::backproject(const gtsam::Point2&, double, gtsam::OptionalJacobian<3, 6>, gtsam::OptionalJacobian<3, 2>, gtsam::OptionalJacobian<3, 1>, gtsam::OptionalJacobian<3, gtsam::PinholeBaseK<CALIBRATION>::DimK>) const [with CALIBRATION = gtsam::Cal3DS2]’:
/home/fbjerkaas/Master/gtsam/build/wrap/gtsam/gtsam_wrapper.cpp:25639:83:   required from here
/home/fbjerkaas/Master/gtsam/gtsam/geometry/PinholePose.h:141:74: error: no matching function for call to gtsam::Cal3DS2::calibrate(const gtsam::Point2&, Matrix2K*, gtsam::Matrix22*) const
                                                  Dresult_dp ? &Dpn_dp : 0);
                                                                          ^
In file included from /home/fbjerkaas/Master/gtsam/gtsam/geometry/Cal3DS2.h:21:0,
                 from /home/fbjerkaas/Master/gtsam/build/wrap/gtsam/gtsam_wrapper.cpp:14:
/home/fbjerkaas/Master/gtsam/gtsam/geometry/Cal3DS2_Base.h:129:10: note: candidate: gtsam::Point2 gtsam::Cal3DS2_Base::calibrate(const gtsam::Point2&, double) const
   Point2 calibrate(const Point2& p, const double tol=1e-5) const;
          ^
/home/fbjerkaas/Master/gtsam/gtsam/geometry/Cal3DS2_Base.h:129:10: note:   candidate expects 2 arguments, 3 provided
In file included from /home/fbjerkaas/Master/gtsam/gtsam/geometry/PinholeCamera.h:21:0,
                 from /home/fbjerkaas/Master/gtsam/build/wrap/gtsam/gtsam_wrapper.cpp:21:
/home/fbjerkaas/Master/gtsam/gtsam/geometry/PinholePose.h: In instantiation of gtsam::Point3 gtsam::PinholeBaseK<CALIBRATION>::backproject(const gtsam::Point2&, double, gtsam::OptionalJacobian<3, 6>, gtsam::OptionalJacobian<3, 2>, gtsam::OptionalJacobian<3, 1>, gtsam::OptionalJacobian<3, gtsam::PinholeBaseK<CALIBRATION>::DimK>) const [with CALIBRATION = gtsam::Cal3Unified]’:
/home/fbjerkaas/Master/gtsam/build/wrap/gtsam/gtsam_wrapper.cpp:25876:83:   required from here
/home/fbjerkaas/Master/gtsam/gtsam/geometry/PinholePose.h:141:74: error: no matching function for call to gtsam::Cal3Unified::calibrate(const gtsam::Point2&, Matrix2K*, gtsam::Matrix22*) const
                                                  Dresult_dp ? &Dpn_dp : 0);
                                                                          ^
In file included from /home/fbjerkaas/Master/gtsam/build/wrap/gtsam/gtsam_wrapper.cpp:16:0:
/home/fbjerkaas/Master/gtsam/gtsam/geometry/Cal3Unified.h:102:10: note: candidate: gtsam::Point2 gtsam::Cal3Unified::calibrate(const gtsam::Point2&, double) const
   Point2 calibrate(const Point2& p, const double tol=1e-5) const;
          ^
/home/fbjerkaas/Master/gtsam/gtsam/geometry/Cal3Unified.h:102:10: note:   candidate expects 2 arguments, 3 provided
In file included from /home/fbjerkaas/Master/gtsam/gtsam/geometry/PinholeCamera.h:21:0,
                 from /home/fbjerkaas/Master/gtsam/build/wrap/gtsam/gtsam_wrapper.cpp:21:
/home/fbjerkaas/Master/gtsam/gtsam/geometry/PinholePose.h: In instantiation of gtsam::Point3 gtsam::PinholeBaseK<CALIBRATION>::backproject(const gtsam::Point2&, double, gtsam::OptionalJacobian<3, 6>, gtsam::OptionalJacobian<3, 2>, gtsam::OptionalJacobian<3, 1>, gtsam::OptionalJacobian<3, gtsam::PinholeBaseK<CALIBRATION>::DimK>) const [with CALIBRATION = gtsam::Cal3Bundler]’:
/home/fbjerkaas/Master/gtsam/build/wrap/gtsam/gtsam_wrapper.cpp:26113:83:   required from here
/home/fbjerkaas/Master/gtsam/gtsam/geometry/PinholePose.h:141:74: error: no matching function for call to gtsam::Cal3Bundler::calibrate(const gtsam::Point2&, Matrix2K*, gtsam::Matrix22*) const
                                                  Dresult_dp ? &Dpn_dp : 0);
                                                                          ^
In file included from /home/fbjerkaas/Master/gtsam/build/wrap/gtsam/gtsam_wrapper.cpp:13:0:
/home/fbjerkaas/Master/gtsam/gtsam/geometry/Cal3Bundler.h:121:10: note: candidate: gtsam::Point2 gtsam::Cal3Bundler::calibrate(const gtsam::Point2&, double) const
   Point2 calibrate(const Point2& pi, const double tol = 1e-5) const;
          ^
/home/fbjerkaas/Master/gtsam/gtsam/geometry/Cal3Bundler.h:121:10: note:   candidate expects 2 arguments, 3 provided
gtsam/CMakeFiles/gtsam_matlab_wrapper.dir/build.make:70: recipe for target 'gtsam/CMakeFiles/gtsam_matlab_wrapper.dir/__/wrap/gtsam/gtsam_wrapper.cpp.o' failed
make[2]: *** [gtsam/CMakeFiles/gtsam_matlab_wrapper.dir/__/wrap/gtsam/gtsam_wrapper.cpp.o] Error 1
CMakeFiles/Makefile2:1601: recipe for target 'gtsam/CMakeFiles/gtsam_matlab_wrapper.dir/all' failed
make[1]: *** [gtsam/CMakeFiles/gtsam_matlab_wrapper.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Without the matlab option enabled, everything seems to work. My build options are as follows:

-- GTSAM_SOURCE_ROOT_DIR: [/home/fbjerkaas/Master/gtsam]
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   serialization
--   system
--   filesystem
--   thread
--   program_options
--   date_time
--   timer
--   chrono
--   atomic
Ignoring Boost restriction on optional lvalue assignment from rvalues
-- Found Intel TBB
-- Building 3rdparty
-- checking for thread-local storage - found
-- Could NOT find GeographicLib (missing:  GeographicLib_LIBRARY_DIRS GeographicLib_LIBRARIES GeographicLib_INCLUDE_DIRS) 
-- Building base
-- Building geometry
-- Building inference
-- Building symbolic
-- Building discrete
-- Building linear
-- Building nonlinear
-- Building sam
-- Building sfm
-- Building slam
-- Building smart
-- Building navigation
-- GTSAM Version: 4.0.0
-- Install prefix: /usr/local
-- Building GTSAM - shared
-- Building wrap module gtsam
-- Installing Matlab Toolbox to /home/fbjerkaas/Master/Matlab
-- Building base_unstable
-- Building geometry_unstable
-- Building linear_unstable
-- Building discrete_unstable
-- Building dynamics_unstable
-- Building nonlinear_unstable
-- Building slam_unstable
-- GTSAM_UNSTABLE Version: 4.0.0
-- Install prefix: /usr/local
-- Building GTSAM_UNSTABLE - shared
-- Building wrap module gtsam_unstable
-- Installing Matlab Toolbox to /home/fbjerkaas/Master/Matlab
-- Wrote /home/fbjerkaas/Master/gtsam/build/GTSAMConfig.cmake
-- ===============================================================
-- ================  Configuration Options  ======================
--   CMAKE_CXX_COMPILER_ID type     : GNU
--   CMAKE_CXX_COMPILER_VERSION     : 5.4.0
-- Build flags                                               
--   Build Tests                    : Enabled
--   Build examples with 'make all' : Enabled
--   Build timing scripts with 'make all': Disabled
--   Build Docs                     : Enabled
--   Build static GTSAM library instead of shared: Disabled
--   Put build type in library name : Enabled
--   Build libgtsam_unstable        : Enabled
--   Build type                     : Debug
--   C compilation flags            :  -std=c11   -Wall -g -g -fno-inline -DEIGEN_INITIALIZE_MATRICES_BY_NAN
--   C++ compilation flags          :  -std=c++11 -Wall -fopenmp -g -g -fno-inline -DEIGEN_INITIALIZE_MATRICES_BY_NAN
--   Use System Eigen               : No
--   Use Intel TBB                  : Yes
--   Eigen will use MKL             : Yes
--   Eigen will use MKL and OpenMP  : Yes
--   Default allocator              : TBB
-- Packaging flags                                               
--   CPack Source Generator         : TGZ
--   CPack Generator                : TGZ
-- GTSAM flags                                               
--   Quaternions as default Rot3     : Disabled
--   Runtime consistency checking    : Disabled
--   Rot3 retract is full ExpMap     : Disabled
--   Pose3 retract is full ExpMap    : Disabled
--   Deprecated in GTSAM 4 allowed   : Enabled
--   Point3 is typedef to Vector3    : Disabled
--   Metis-based Nested Dissection   : Enabled
--   Use tangent-space preintegration: Enabled
-- MATLAB toolbox flags                                      
--   Install matlab toolbox         : Enabled
--   Build Wrap                     : Enabled
-- Python module flags                                       
--   Build python module            : Disabled
-- Cython toolbox flags                                      
--   Install Cython toolbox         : Disabled
--   Build Wrap                     : Enabled
-- ===============================================================
-- Configuring done
-- Generating done
-- Build files have been written to: /home/fbjerkaas/Master/gtsam/build

Comments (1)

  1. Log in to comment