2020-11-03 22:51:43 -08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO introlab/rtabmap
|
2024-04-01 22:32:08 +02:00
|
|
|
REF ${VERSION}
|
|
|
|
SHA512 2b424f5b6458cf0f976e711985708f104b56d11921c9c43c6a837f9d3dc9e9e802308f1aa2b6d0e7e6ddf13623ff1ad2922b5f54254d16ee5811e786d27b9f98
|
2020-11-03 22:51:43 -08:00
|
|
|
HEAD_REF master
|
2021-11-05 03:24:45 -04:00
|
|
|
PATCHES
|
2024-04-01 22:32:08 +02:00
|
|
|
apple.patch
|
2023-11-29 16:53:34 +08:00
|
|
|
fix_link.patch
|
2024-04-01 22:32:08 +02:00
|
|
|
link-keywords.patch
|
|
|
|
multi-definition.patch
|
|
|
|
rtabmap-res-tool.patch
|
2024-04-15 19:51:41 +02:00
|
|
|
gklib.patch
|
2024-12-13 15:49:30 +01:00
|
|
|
ceres-manifold.patch
|
2024-12-12 20:26:59 +00:00
|
|
|
fix-find-g2o.patch
|
2020-11-03 22:51:43 -08:00
|
|
|
)
|
|
|
|
|
2020-11-07 05:20:47 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2023-04-02 20:54:56 -07:00
|
|
|
FEATURES
|
2024-04-01 22:32:08 +02:00
|
|
|
gui WITH_QT
|
|
|
|
k4w2 WITH_K4W2
|
|
|
|
octomap WITH_OCTOMAP
|
|
|
|
openni2 WITH_OPENNI2
|
|
|
|
realsense2 WITH_REALSENSE2
|
|
|
|
tools BUILD_APP
|
|
|
|
tools BUILD_TOOLS
|
2020-11-07 05:20:47 +08:00
|
|
|
)
|
|
|
|
|
2021-11-05 03:24:45 -04:00
|
|
|
vcpkg_cmake_configure(
|
2023-03-02 09:13:56 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-11-05 03:24:45 -04:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2023-04-02 20:54:56 -07:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DBUILD_TOOLS=OFF
|
|
|
|
-DBUILD_APP=OFF
|
2020-11-06 02:08:51 +08:00
|
|
|
OPTIONS
|
2020-11-07 05:20:47 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2023-04-02 20:54:56 -07:00
|
|
|
-DBUILD_AS_BUNDLE=OFF
|
2020-11-07 05:20:47 +08:00
|
|
|
-DBUILD_EXAMPLES=OFF
|
2024-04-01 22:32:08 +02:00
|
|
|
-DRTABMAP_QT_VERSION=6
|
|
|
|
"-DRTABMAP_RES_TOOL=${CURRENT_HOST_INSTALLED_DIR}/tools/rtabmap-res-tool/rtabmap-res_tool${VCPKG_TARGET_EXECUTABLE_SUFFIX}"
|
|
|
|
-DWITH_ALICE_VISION=OFF
|
|
|
|
-DWITH_CCCORELIB=OFF
|
|
|
|
-DWITH_CERES=ON
|
|
|
|
-DWITH_CPUTSDF=OFF
|
|
|
|
-DWITH_CVSBA=OFF
|
|
|
|
-DWITH_DC1394=OFF
|
|
|
|
-DWITH_DEPTHAI=OFF
|
|
|
|
-DWITH_DVO=OFF
|
|
|
|
-DWITH_FASTCV=OFF
|
|
|
|
-DWITH_FLYCAPTURE2=OFF
|
|
|
|
-DWITH_FOVIS=OFF
|
2020-11-06 02:08:51 +08:00
|
|
|
-DWITH_FREENECT=OFF
|
|
|
|
-DWITH_FREENECT2=OFF
|
2023-04-02 20:54:56 -07:00
|
|
|
-DWITH_G2O=ON
|
2020-11-06 02:08:51 +08:00
|
|
|
-DWITH_GTSAM=OFF
|
2024-04-01 22:32:08 +02:00
|
|
|
-DWITH_K4A=OFF
|
2020-11-06 02:08:51 +08:00
|
|
|
-DWITH_LOAM=OFF
|
2024-04-01 22:32:08 +02:00
|
|
|
-DWITH_MADGWICK=OFF
|
|
|
|
-DWITH_MSCKF_VIO=OFF
|
2020-11-06 02:08:51 +08:00
|
|
|
-DWITH_MYNTEYE=OFF
|
|
|
|
-DWITH_OKVIS=OFF
|
2024-04-01 22:32:08 +02:00
|
|
|
-DWITH_OPENCHISEL=OFF
|
2022-01-18 14:54:54 +08:00
|
|
|
-DWITH_OPENVINS=OFF
|
2024-04-01 22:32:08 +02:00
|
|
|
-DWITH_ORB_OCTREE=ON # GPLv3
|
|
|
|
-DWITH_ORB_SLAM=OFF
|
|
|
|
-DWITH_PDAL=OFF
|
|
|
|
-DWITH_POINTMATCHER=OFF
|
|
|
|
-DWITH_PYTHON_THREADING=OFF
|
|
|
|
-DWITH_PYTHON=OFF
|
|
|
|
-DWITH_REALSENSE_SLAM=OFF
|
|
|
|
-DWITH_REALSENSE=OFF
|
|
|
|
-DWITH_TORCH=OFF
|
|
|
|
-DWITH_VERTIGO=OFF
|
|
|
|
-DWITH_VINS=OFF
|
|
|
|
-DWITH_VISO2=OFF
|
|
|
|
-DWITH_ZED=OFF
|
|
|
|
-DWITH_ZEDOC=OFF
|
2020-11-03 22:51:43 -08:00
|
|
|
)
|
|
|
|
|
2021-11-05 03:24:45 -04:00
|
|
|
vcpkg_cmake_install()
|
2023-03-02 09:13:56 +08:00
|
|
|
|
2024-04-01 22:32:08 +02:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH CMake)
|
|
|
|
else()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/rtabmap-0.21)
|
|
|
|
endif()
|
2023-04-02 20:54:56 -07:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2020-11-03 22:51:43 -08:00
|
|
|
|
2020-11-07 05:20:47 +08:00
|
|
|
if("tools" IN_LIST FEATURES)
|
|
|
|
vcpkg_copy_tools(
|
2020-11-03 22:51:43 -08:00
|
|
|
TOOL_NAMES
|
|
|
|
rtabmap-camera
|
|
|
|
rtabmap-console
|
|
|
|
rtabmap-detectMoreLoopClosures
|
|
|
|
rtabmap-export
|
|
|
|
rtabmap-extractObject
|
|
|
|
rtabmap-info
|
|
|
|
rtabmap-kitti_dataset
|
|
|
|
rtabmap-recovery
|
|
|
|
rtabmap-report
|
|
|
|
rtabmap-reprocess
|
|
|
|
rtabmap-rgbd_dataset
|
2020-11-07 05:20:47 +08:00
|
|
|
rtabmap-euroc_dataset
|
2023-01-25 09:06:22 +08:00
|
|
|
rtabmap-cleanupLocalGrids
|
|
|
|
rtabmap-globalBundleAdjustment
|
2020-11-03 22:51:43 -08:00
|
|
|
AUTO_CLEAN
|
2020-11-07 05:20:47 +08:00
|
|
|
)
|
2023-04-02 20:54:56 -07:00
|
|
|
if("gui" IN_LIST FEATURES)
|
|
|
|
vcpkg_copy_tools(
|
|
|
|
TOOL_NAMES
|
|
|
|
rtabmap
|
|
|
|
rtabmap-calibration
|
|
|
|
rtabmap-databaseViewer
|
|
|
|
rtabmap-dataRecorder
|
|
|
|
rtabmap-odometryViewer
|
|
|
|
rtabmap-rgbd_camera
|
|
|
|
AUTO_CLEAN
|
|
|
|
)
|
2023-04-26 21:10:56 +02:00
|
|
|
file(COPY "${CURRENT_INSTALLED_DIR}/tools/Qt6/bin/qt.conf" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/qt.conf" "./../../../" "./../../")
|
2023-04-02 20:54:56 -07:00
|
|
|
endif()
|
|
|
|
endif()
|
2020-11-03 22:51:43 -08:00
|
|
|
|
2024-04-01 22:32:08 +02:00
|
|
|
vcpkg_install_copyright(
|
|
|
|
COMMENT [[
|
|
|
|
The RTAB-Map main license is BSD-3-Clause, but some parts of the
|
|
|
|
source code are under other licenses possibly including GPL-3.0-only.
|
|
|
|
]]
|
|
|
|
FILE_LIST "${SOURCE_PATH}/LICENSE"
|
|
|
|
)
|