Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deb #16

Merged
merged 2 commits into from
Jul 24, 2024
Merged

Deb #16

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docker/deb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ RUN apt-get install -y --no-install-recommends build-essential \

RUN git clone https://github.com/borglab/gtsam.git /root/gtsam -b 4.2a9
WORKDIR /root/gtsam/build
# Rename libgtsam-dev to libgtsam-notbb-dev
RUN sed -i 's/libgtsam-dev/libgtsam-notbb-dev/g' ../cmake/HandleCPack.cmake
# Build gtsam
RUN cmake .. -DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF \
-DGTSAM_BUILD_TESTS=OFF \
-DGTSAM_WITH_TBB=OFF \
Expand Down Expand Up @@ -44,7 +47,7 @@ COPY . /root/gtsam_points
WORKDIR /root/gtsam_points/build
RUN cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCPACK_DEBIAN_PACKAGE_DEPENDS="libgtsam-dev" \
-DCPACK_DEBIAN_PACKAGE_DEPENDS="libgtsam-notbb-dev" \
-DCPACK_DEBIAN_PACKAGE_NAME="libgtsam-points-dev"
RUN make -j$(nproc)
RUN cpack
Expand Down Expand Up @@ -73,7 +76,7 @@ RUN cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_WITH_CUDA=ON \
-DBUILD_WITH_CUDA_MULTIARCH=ON \
-DCPACK_DEBIAN_PACKAGE_DEPENDS="libgtsam-dev" \
-DCPACK_DEBIAN_PACKAGE_DEPENDS="libgtsam-notbb-dev" \
-DCPACK_DEBIAN_PACKAGE_NAME="libgtsam-points-cuda${CUDA_LABEL}-dev"
RUN make -j$(nproc)
RUN cpack
Expand Down
8 changes: 6 additions & 2 deletions docker/deb/Dockerfile.focal
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ RUN apt-get install -y --no-install-recommends build-essential \

RUN git clone https://github.com/borglab/gtsam.git /root/gtsam -b 4.2a9
WORKDIR /root/gtsam/build
WORKDIR /root/gtsam/build
# Rename libgtsam-dev to libgtsam-notbb-dev
RUN sed -i 's/libgtsam-dev/libgtsam-notbb-dev/g' ../cmake/HandleCPack.cmake
# Build gtsam
RUN cmake .. -DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF \
-DGTSAM_BUILD_TESTS=OFF \
-DGTSAM_WITH_TBB=OFF \
Expand Down Expand Up @@ -56,7 +60,7 @@ COPY . /root/gtsam_points
WORKDIR /root/gtsam_points/build
RUN cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCPACK_DEBIAN_PACKAGE_DEPENDS="libgtsam-dev" \
-DCPACK_DEBIAN_PACKAGE_DEPENDS="libgtsam-notbb-dev" \
-DCPACK_DEBIAN_PACKAGE_NAME="libgtsam-points-dev"
RUN make -j$(nproc)
RUN cpack
Expand Down Expand Up @@ -97,7 +101,7 @@ RUN cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_WITH_CUDA=ON \
-DBUILD_WITH_CUDA_MULTIARCH=ON \
-DCPACK_DEBIAN_PACKAGE_DEPENDS="libgtsam-dev" \
-DCPACK_DEBIAN_PACKAGE_DEPENDS="libgtsam-notbb-dev" \
-DCPACK_DEBIAN_PACKAGE_NAME="libgtsam-points-cuda${CUDA_LABEL}-dev"
RUN make -j$(nproc)
RUN cpack
Expand Down
Loading