Any 'working' compile instructions for CMake on Windows?

Issue #348 closed
Former user created an issue

I'm trying to solve an optimization problem in MatLab using GTSAM, which I feel grateful about.

But I can't get it to compile in CMake.

It keeps complaining it cannot find Boost.

I set its search path in CMakeLists.txt:

set(BOOST_ROOT /usr/lib/x86_64-linux-gnu/)
set(BOOST_INCLUDEDIR /usr/include/boost/)
set(BOOST_LIBRARYDIR /usr/lib/x86_64-linux-gnu/)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)

I am majoring in Mechanical Engineering, and configuring all this CMake, Boost, etc are pretty daunting.

This buggy compilation process is taking me days to get started with GTSAM. All I want to do is just use the library.

Can you please provide non-CS people like me with a working step-by-step instruction for getting started with GTSAM?

The instructions below just don't work.

https://bitbucket.org/gtborg/gtsam/src/c82fe1fde2fc988b6bde5e4798b66129bbb5da19/INSTALL?fileviewer=file-view-default

Comments (2)

  1. Jing Dong

    Hi, are you compiling on native Windows (not cygwin or any virtual machine)? If yes please set the Boost relative CMake variables as actual paths in windows, like D:... Also please do not set the variables in CMakelists, but in CMakeGUI.

  2. Frank Dellaert

    Not many of us are windows users. If you figured out issues with the Readme files/instructions that can make life easier for others, please consider creating a pull request with changes.

  3. Log in to comment