Last active
January 29, 2024 06:09
-
-
Save pangyuteng/1f73ad122bf4ea83d5a3a0936c8819bc to your computer and use it in GitHub Desktop.
build gdcm from source inside Docker container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
RUN apt-get update && apt-get install -yq \ | |
autotools-dev \ | |
build-essential \ | |
ca-certificates \ | |
vim curl wget \ | |
cmake g++ | |
WORKDIR /opt/sources | |
RUN wget --quiet https://github.com/malaterre/GDCM/archive/v3.0.4.tar.gz -O gdcm.tar.gz && \ | |
tar -zxvf gdcm.tar.gz | |
RUN mkdir -p /opt/sources/GDCM-3.0.4/build | |
WORKDIR /opt/sources/gdcm-build | |
RUN cmake .. \ | |
-DCMAKE_INSTALL_RPATH=/usr/local/lib \ | |
-DCMAKE_INSTALL_PREFIX=/usr/local \ | |
-DGDCM_BUILD_APPLICATIONS=1 \ | |
-DGDCM_BUILD_SHARED_LIBS=1 \ | |
&& make -j"$(nproc)" && make -j"$(nproc)" install | |
ENV PATH=/usr/local/bin:${PATH} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment