Skip to content

Commit

Permalink
Fixing bionic docker (with cmake>=3.14)
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Mar 23, 2024
1 parent 7183b43 commit f8a63ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions docker/bionic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@ ARG TARGETPLATFORM
ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}
RUN echo "I am building for $TARGETPLATFORM"

# arm64
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then ln -s /usr/bin/cmake ~/cmake; fi

# cmake >=3.11 required for amd64 dependencies
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then apt update && apt install -y wget && apt-get clean && rm -rf /var/lib/apt/lists/ && \
# cmake >=3.14 required
RUN apt update && apt install -y wget && apt-get clean && rm -rf /var/lib/apt/lists/ && \
wget -nv https://github.com/Kitware/CMake/releases/download/v3.17.0/cmake-3.17.0-Linux-x86_64.tar.gz && \
tar -xzf cmake-3.17.0-Linux-x86_64.tar.gz && \
rm cmake-3.17.0-Linux-x86_64.tar.gz &&\
Expand Down
2 changes: 1 addition & 1 deletion docker/bionic/android/rtabmap_apiXX/rtabmap.bash
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ rm -r arengine

# resource tool
cd rtabmap-tango/build
cmake -DANDROID_PREBUILD=ON ..
$pwd/cmake-3.17.0-Linux-x86_64/bin/cmake -DANDROID_PREBUILD=ON ..
make
cd ../..

Expand Down

0 comments on commit f8a63ec

Please sign in to comment.