From 96b5881e2f68fc14e556883e4b15983229a1341d Mon Sep 17 00:00:00 2001 From: matlabbe Date: Tue, 22 Sep 2026 08:24:53 -0700 Subject: [PATCH] ldconfig --- docker/focal/Dockerfile | 3 ++- docker/jammy/Dockerfile | 3 ++- docker/noble-kilted/Dockerfile | 3 ++- docker/noble/Dockerfile | 3 ++- docker/resolute/Dockerfile | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/docker/focal/Dockerfile b/docker/focal/Dockerfile index 06cc5490..fe18c8ad 100644 --- a/docker/focal/Dockerfile +++ b/docker/focal/Dockerfile @@ -15,7 +15,8 @@ RUN source /ros_entrypoint.sh && \ cd rtabmap/build && \ cmake -DWITH_ALICE_VISION=ON -DWITH_OPENGV=ON -DBUILD_TESTING=$RUN_TESTS .. && \ make -j4 && \ - if [ "$RUN_TESTS" = "1" ]; then ctest --output-on-failure -LE "long|performance"; fi && \ + # ldconfig first: source-installed deps (GTSAM) are not yet in the loader cache. + if [ "$RUN_TESTS" = "1" ]; then ldconfig && ctest --output-on-failure -LE "long|performance"; fi && \ make install && \ cd ../.. && \ rm -rf rtabmap && \ diff --git a/docker/jammy/Dockerfile b/docker/jammy/Dockerfile index 731a88e1..7548682a 100644 --- a/docker/jammy/Dockerfile +++ b/docker/jammy/Dockerfile @@ -15,7 +15,8 @@ RUN source /ros_entrypoint.sh && \ cd rtabmap/build && \ cmake -DWITH_OPENGV=ON -DBUILD_TESTING=$RUN_TESTS .. && \ make -j4 && \ - if [ "$RUN_TESTS" = "1" ]; then ctest --output-on-failure -LE "long|performance"; fi && \ + # ldconfig first: source-installed deps (GTSAM) are not yet in the loader cache. + if [ "$RUN_TESTS" = "1" ]; then ldconfig && ctest --output-on-failure -LE "long|performance"; fi && \ make install && \ cd ../.. && \ rm -rf rtabmap && \ diff --git a/docker/noble-kilted/Dockerfile b/docker/noble-kilted/Dockerfile index 2d3059d6..a33006da 100644 --- a/docker/noble-kilted/Dockerfile +++ b/docker/noble-kilted/Dockerfile @@ -15,7 +15,8 @@ RUN source /ros_entrypoint.sh && \ cd rtabmap/build && \ cmake -DWITH_OPENGV=ON -DBUILD_TESTING=$RUN_TESTS .. && \ make -j4 && \ - if [ "$RUN_TESTS" = "1" ]; then ctest --output-on-failure -LE "long|performance"; fi && \ + # ldconfig first: source-installed deps (GTSAM) are not yet in the loader cache. + if [ "$RUN_TESTS" = "1" ]; then ldconfig && ctest --output-on-failure -LE "long|performance"; fi && \ make install && \ cd ../.. && \ rm -rf rtabmap && \ diff --git a/docker/noble/Dockerfile b/docker/noble/Dockerfile index 3b119c53..511ecafa 100644 --- a/docker/noble/Dockerfile +++ b/docker/noble/Dockerfile @@ -15,7 +15,8 @@ RUN source /ros_entrypoint.sh && \ cd rtabmap/build && \ cmake -DWITH_OPENGV=ON -DBUILD_TESTING=$RUN_TESTS .. && \ make -j4 && \ - if [ "$RUN_TESTS" = "1" ]; then ctest --output-on-failure -LE "long|performance"; fi && \ + # ldconfig first: source-installed deps (GTSAM) are not yet in the loader cache. + if [ "$RUN_TESTS" = "1" ]; then ldconfig && ctest --output-on-failure -LE "long|performance"; fi && \ make install && \ cd ../.. && \ rm -rf rtabmap && \ diff --git a/docker/resolute/Dockerfile b/docker/resolute/Dockerfile index f5f9bda9..da0d3720 100644 --- a/docker/resolute/Dockerfile +++ b/docker/resolute/Dockerfile @@ -15,7 +15,8 @@ RUN source /ros_entrypoint.sh && \ cd rtabmap/build && \ cmake -DWITH_OPENGV=ON -DBUILD_TESTING=$RUN_TESTS .. && \ make -j4 && \ - if [ "$RUN_TESTS" = "1" ]; then ctest --output-on-failure -LE "long|performance"; fi && \ + # ldconfig first: source-installed deps (GTSAM) are not yet in the loader cache. + if [ "$RUN_TESTS" = "1" ]; then ldconfig && ctest --output-on-failure -LE "long|performance"; fi && \ make install && \ cd ../.. && \ rm -rf rtabmap && \