dwcaress / MB-System

MB-System is an open source software package for the processing and display of bathymetry and backscatter imagery data derived from multibeam, interferometry, and sidescan sonars.
https://www.mbari.org/products/research-software/mb-system/
Other
127 stars 45 forks source link

Trndev cmake build issues, sync with master #1415

Closed klheadley closed 10 months ago

klheadley commented 10 months ago

To address the warning about CMP0042, CMAKE_MACOS_RPATH=ON is set in the main CMakeLists.txt. The version deprecation warnings from LCM are part of the package; since the default cmake package finder already locates the package,

The warnings may be suppressed by modifying cmake_minimum_required in the appropriate LCM build files:

/usr/local/lib/lcm/cmake/lcmConfig.cmake /usr/local/lib/lcm/cmake/lcmUtilities.cmake

Adding a FindLCM.cmake didn't suppress the warning; the cmake default logic seems to find LCM, and perhaps doesn't try build-utils/FindLCM.cmake

The cmake build works on

MacOS Monterey (proj9 installed via macports) cmake -DLibPROJ_INCLUDE_DIR=/opt/local/lib/proj9/include -DbuildTRN=ON -DbuildTRNLCM=ON -DbuildOpenCV=OFF .. cmake --build .

Ubuntu 22.04 cmake -DbuildTRN=ON -DbuildTRNLCM=ON -DbuildOpenCV=OFF .. cmake --build .