borglab / gtsam

GTSAM is a library of C++ classes that implement smoothing and mapping (SAM) in robotics and vision, using factor graphs and Bayes networks as the underlying computing paradigm rather than sparse matrices.
http://gtsam.org
Other
2.62k stars 766 forks source link

WRAP_MEX_BUILD_STATIC_MODULE should not be set on Windows #1213

Closed teku45 closed 2 years ago

teku45 commented 2 years ago

Hi,

I am trying to build GTSAM and its associated matlab toolbox for Windows 10. I am using Cmake 3.23.2 and trying to compile on Microsoft Visual Studio 2022.

When I try to run the CMake GUI, I get the following error.

CMake Error at wrap/cmake/MatlabWrap.cmake:29 (message):
  WRAP_MEX_BUILD_STATIC_MODULE should not be set on Windows - the linker
  already automatically compiles in any dependent static libraries.  To
  create a standalone toolbox pacakge, simply ensure that CMake finds the
  static versions of all dependent libraries (Boost, etc).
Call Stack (most recent call first):
  wrap/cmake/MatlabWrap.cmake:67 (find_and_configure_matlab)
  matlab/CMakeLists.txt:68 (matlab_wrap)
teku45 commented 2 years ago

Closing this issue as it was resolved by doing a clean build of a fresh clone