Generating Matlab toolbox on windows fails
etamarlu opened this issue · 0 comments
etamarlu commented
GTSAM log:
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19045.
GTSAM Version: 4.3a0
GTSAM is a shared library due to GTSAM_FORCE_SHARED_LIB
GTSAM_POSE3_EXPMAP=ON, enabling GTSAM_ROT3_EXPMAP as well
Found Eigen version: 3.4.0
CMake Deprecation Warning at gtsam/3rdparty/metis/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
Could NOT find MKL (missing: MKL_INCLUDE_DIR MKL_LIBRARIES)
CMake Warning at cmake/HandleTBB.cmake:4 (find_package):
By not providing "FindTBB.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "TBB", but
CMake did not find one.
Could not find a package configuration file provided by "TBB" (requested
version 4.4) with any of the following names:
TBBConfig.cmake
tbb-config.cmake
Add the installation prefix of "TBB" to CMAKE_PREFIX_PATH or set "TBB_DIR"
to a directory containing one of the above files. If "TBB" provides a
separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
CMakeLists.txt:87 (include)
Building 3rdparty
Could NOT find GeographicLib (missing: GeographicLib_LIBRARY_DIRS GeographicLib_LIBRARIES GeographicLib_INCLUDE_DIRS)
Building base
Building basis
Building geometry
Building inference
Building symbolic
Building discrete
Building hybrid
Building linear
Building nonlinear
Building sam
Building sfm
Building slam
Building navigation
Adding precompiled header for MSVC
GTSAM Version: 4.3.0
Install prefix: C:/Program Files (x86)/GTSAM
Building GTSAM - as a SHARED library
Building base_unstable
Building geometry_unstable
Building linear_unstable
Building discrete_unstable
Building dynamics_unstable
Building nonlinear_unstable
Building slam_unstable
Building partition_unstable
GTSAM_UNSTABLE Version: 4.3.0
Install prefix: C:/Program Files (x86)/GTSAM
�[1;36mgtwrap�[m Package config : C:/Program Files (x86)/GTSAM/CMake/gtwrap
�[1;36mgtwrap�[m version : 1.0
�[1;36mgtwrap�[m CMake path : C:/Program Files (x86)/GTSAM/CMake/gtwrap
�[1;36mgtwrap�[m library path : C:/Program Files (x86)/GTSAM/lib/gtwrap
�[1;36mgtwrap�[m binary path : C:/Program Files (x86)/GTSAM/bin/gtwrap
�[1;36mgtwrap�[m header path : C:/Program Files (x86)/GTSAM/include/gtwrap
Checking Python Version
Setting Python version for wrapper
CMake Deprecation Warning at wrap/pybind11/CMakeLists.txt:8 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
pybind11 v2.10.0
Building wrap module gtsam
CMake Warning (dev) at wrap/cmake/MatlabWrap.cmake:225 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
wrap/cmake/MatlabWrap.cmake:92 (wrap_library_internal)
wrap/cmake/MatlabWrap.cmake:68 (wrap_and_install_library)
matlab/CMakeLists.txt:85 (matlab_wrap)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at wrap/cmake/MatlabWrap.cmake:226 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
wrap/cmake/MatlabWrap.cmake:92 (wrap_library_internal)
wrap/cmake/MatlabWrap.cmake:68 (wrap_and_install_library)
matlab/CMakeLists.txt:85 (matlab_wrap)
This warning is for project developers. Use -Wno-dev to suppress it.
Installing Matlab Toolbox to C:\Users\e.lukatsky\Desktop\toolbox
Wrote C:/Users/e.lukatsky/Desktop/gtsam-develop/build/GTSAMConfig.cmake
Wrote C:/Users/e.lukatsky/Desktop/gtsam-develop/build/GTSAM_UNSTABLEConfig.cmake
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
===============================================================
================ Configuration Options ======================
CMAKE_CXX_COMPILER_ID type : MSVC
CMAKE_CXX_COMPILER_VERSION : 19.35.32217.1
CMake version : 3.27.1
CMake generator : Visual Studio 17 2022
CMake build tool : C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe
Build flags
Build Tests : Enabled
Build examples with 'make all' : Enabled
Build timing scripts with 'make all' : Disabled
Build shared GTSAM libraries : Enabled
Put build type in library name : Enabled
Build libgtsam_unstable : Enabled
Build GTSAM unstable Python : Disabled
Build MATLAB Toolbox for unstable : Disabled
Enable Boost serialization : ON
GTSAM_COMPILE_FEATURES_PUBLIC : cxx_std_17
GTSAM_COMPILE_OPTIONS_PUBLIC : /wd4267;/std:c++17
GTSAM_COMPILE_DEFINITIONS_PUBLIC : _ENABLE_EXTENDED_ALIGNED_STORAGE;EIGEN_NO_STATIC_ASSERT;EIGEN_NO_STATIC_ASSERT
GTSAM_COMPILE_OPTIONS_PUBLIC_ :
GTSAM_COMPILE_DEFINITIONS_PUBLIC_ :
Use System Eigen : OFF (Using version: 3.4.0)
Use System Metis : OFF
Using Boost version : 107800
Use Intel TBB : TBB not found
Eigen will use MKL : MKL not found
Eigen will use MKL and OpenMP : OpenMP found but GTSAM_WITH_EIGEN_MKL is disabled
Default allocator : STL
Cheirality exceptions enabled : YES
Packaging flags
CPack Source Generator : TGZ
CPack Generator : TGZ
GTSAM flags
Quaternions as default Rot3 : Disabled
Runtime consistency checking : Disabled
Build with Memory Sanitizer : Disabled
Rot3 retract is full ExpMap : Enabled
Pose3 retract is full ExpMap : Enabled
Allow features deprecated in GTSAM 4.3 : Enabled
Metis-based Nested Dissection : Enabled
Use tangent-space preintegration : Enabled
MATLAB toolbox flags
Install MATLAB toolbox : Enabled
MATLAB root : C:/Program Files/MATLAB/R2023a
MEX binary : C:/Program Files/MATLAB/R2023a/bin/win64/mex.exe
Python toolbox flags
Build Python module with pybind : Enabled
Python version : 3.11.1
===============================================================
CMake Warning at cmake/HandleFinalChecks.cmake:3 (message):
TBB 4.4 or newer was not found - this is ok, but note that GTSAM
parallelization will be disabled. Set GTSAM_WITH_TBB to 'Off' to avoid
this warning.
Call Stack (most recent call first):
CMakeLists.txt:167 (include)
Configuring done (3.6s)
Generating done (3.3s)
Description
Cmake successfully compiles GTSAM, when I set GTSAM_INSTALL_MATLAB_TOOLBOX to 1 and define its directory, the cmake finishes, but the directory is empty.
Steps to reproduce
- Follow https://github.com/borglab/gtsam instructions to make GTSAM, and set GTSAM_INSTALL_MATLAB_TOOLBOX and toolbox dir
Expected behavior
Environment
Matlab 2023a, windows 10