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(