rtabmap icon indicating copy to clipboard operation
rtabmap copied to clipboard

vcpkg compiles RTabMap project, but without RealSense2 support

Open MarcoPicciau opened this issue 2 years ago • 4 comments

I'm trying to compile RTabMap on Windows 10, using vcpkg.

It compiles RTabMap project, but without RealSense2 support.

The comand sequense is this:

git clone https://github.com/Microsoft/vcpkg.git

cd vcpkg

bootstrap-vcpkg.bat

vcpkg install realsense2[core] --triplet x64-windows --clean-after-build

vcpkg integrate install

vcpkg install rtabmap --triplet x64-windows --clean-after-build

Is necessary particular options o other commands.

Thank you!

MarcoPicciau avatar Jul 24 '23 15:07 MarcoPicciau

You have to build rtabmap with realsense2 option:

vcpkg install rtabmap[realsense2] --triplet x64-windows --clean-after-build

matlabbe avatar Jul 24 '23 18:07 matlabbe

Grazie Matlabbe, but unfortunately, if I use this option, it gives me this error and does not proceed.

G:\RTM\vcpkg>vcpkg install rtabmap[realsense2] --triplet x64-windows --clean-after-build Computing installation plan... realsense2 has no feature named tm2. note: updating vcpkg by rerunning bootstrap-vcpkg may resolve this failure.

MarcoPicciau avatar Jul 24 '23 20:07 MarcoPicciau

tm2 option has been removed from realsense2 dependency, update rtabmap's vcpkg.conf with those changes:

diff --git a/ports/rtabmap/vcpkg.json b/ports/rtabmap/vcpkg.json
index ecbc94570..fea10af24 100644
--- a/ports/rtabmap/vcpkg.json
+++ b/ports/rtabmap/vcpkg.json
@@ -117,13 +117,7 @@
     "realsense2": {
       "description": "Build RTAB-Map with RealSense2 camera driver",
       "dependencies": [
-        {
-          "name": "realsense2",
-          "default-features": false,
-          "features": [
-            "tm2"
-          ]
-        }
+        "realsense2"
       ]
     },
     "tools": {

matlabbe avatar Jul 31 '23 01:07 matlabbe

thanks, i try it

MarcoPicciau avatar Aug 29 '23 08:08 MarcoPicciau