test_gtsam throws error

Issue #418 invalid
Jason Rebello created an issue

Hi,

I recently downloaded gtsam and built it with the matlab toolbox enabled. The tool box is located as /usr/local/gtsam_toolbox. After following the instructions to only add the gtsam_toolbox folder and not the subfolders, I proceeded to run the following and faced the error.

test_gtsam Starting: testCal3Unified Invalid MEX-file '/usr/local/gtsam_toolbox/gtsam_wrapper.mexa64': /opt/intel/compilers_and_libraries_2018.2.199/linux/mkl/lib/intel64_lin/libmkl_vml_avx2.so: undefined symbol: mkl_serv_getenv

*** MATLAB has encountered a Linux operating system bug; this bug will eventually cause MATLAB to crash. Do not repeat the command which produced this error, as doing so might cause an immediate crash. Save your work and restart MATLAB now..

Error in gtsam.Cal3Unified (line 53) [ my_ptr, base_ptr ] = gtsam_wrapper(489);

Error in testCal3Unified (line 4) K = Cal3Unified;

Error in test_gtsam (line 5) testCal3Unified

Any help would be greatly appreciated. Thanks

Comments (2)

  1. Frank Dellaert

    Seems to be MKL related. Please make sure to read READMEs and INSTALL, search for MKL. I think there is a documented complication. Could try to compile without MKL by configuring cmake.

  2. Log in to comment