0

I am currently trying to compile some cpp code in oder to test if gtsam is installed. Here is the code...

Code:

#include <iostream>
#include <gtsam/nonlinear/NonlinearFactorGraph.h>

int main() {
    try {
        gtsam::NonlinearFactorGraph graph;
        std::cout << "GTSAM is installed." << std::endl;
    } catch (std::exception& e) {
        std::cout << "GTSAM is not installed." << std::endl;
    }
    return 0;
}

here is the command line command I am using to try to complile command line:

g++ -o check_gtsam check_gtsam.cpp -I/usr/local/include -L/usr/local/lib -lgtsam -std=c++17 -DGTSAM_USE_TR1=1

here is the error I am getting: Error:

static assertion failed: Error: GTSAM was built against a different version of Eigen
 static_assert(
mpesson
  • 31
  • 3
  • ps I understand what the error message says... however I have not been able to find any documentation on what version of eigen gtsam uses. Or better yet how to specify the correct eigen version to use when either reinstalling gtsam or compiling the current program. – mpesson Mar 20 '23 at 03:35

0 Answers0