Any 'working' compile instructions for CMake on Windows?
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.
Comments (2)
-
-
- changed status to closed
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.
- Log in to comment
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.