Skip to content

Fix windows compilation with MSVC 2015

Nicolas Cadart requested to merge fix/WindowsCompatibility into master
  • Use OpenMP 2.0 standard (MSVC only supports OpenMP 2.0 standard) : use int indices instead of unsigned int in parallel for loops.
  • Disable PCL octree compression module on Windows with MSVC <= 2015 as it leads to linking issues.
  • Fix missing includes : they are strangely not needed on Linux, but missing on Windows.
  • Do not use tricky constexpr declarations as MSVC 2015 does not fully support them, preventing compilation.
  • Generate Windows export symbols with CMake to enable linking on LidarSlam.
  • Fix install paths so that LidarSlamPlugin is auto-loaded and LidarSlam is properly linked on Windows.

Merge request reports

Loading