Skip to content

Commit

Permalink
also install itk
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Oct 9, 2024
1 parent a32ca4c commit 8dec02f
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions Ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
libmpfr-dev zlib1g-dev \
libeigen3-dev libipe-dev \
libmpfi-dev \
libinsighttoolkit5-dev libtbb-dev git \
libtbb-dev git \
nlohmann-json3-dev \
lsb-release \
libyaml-cpp-dev \
Expand All @@ -28,14 +28,30 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
RUN wget https://www.vtk.org/files/release/9.3/VTK-9.3.1.tar.gz \
&& tar xf VTK-9.3.1.tar.gz \
&& cd VTK-9.3.1 \
&& sed -i 's/_M_chilren/m_children/g' /VTK-9.3.1/Utilities/octree/octree/octree_node.txx \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_BUILD_TYPE=Release .. \
&& make -j6 \
&& make -j "$(nproc)" \
&& make install \
&& cd ../.. \
&& rm -rf VTK-9.3.1 \
&& export VTK_DIR=/usr/local/lib/cmake/vtk-9.3
&& rm VTK-9.3.1.tar.gz

#manually install ITK compiled with our vtk version
RUN wget https://github.com/InsightSoftwareConsortium/ITK/releases/download/v5.3.0/InsightToolkit-5.3.0.tar.gz \
&& tar xf InsightToolkit-5.3.0.tar.gz \
&& cd InsightToolkit-5.3.0 \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_BUILD_TYPE=Release .. \
&& sed -i '1 i\#include <stdint.h>' /InsightToolkit-5.3.0/Modules/Core/Common/include/itkFloatingPointExceptions.h \
&& sed -i '1 i\#include <stdint.h>' /InsightToolkit-5.3.0/Modules/Filtering/MathematicalMorphology/include/itkMathematicalMorphologyEnums.h \
&& make -j "$(nproc)" \
&& make install \
&& cd ../.. \
&& rm InsightToolkit-5.3.0 -r \
&& rm InsightToolkit-5.3.0.tar.gz

RUN git clone https://github.com/STORM-IRIT/OpenGR.git --depth 1 \
&& cd ./OpenGR \
Expand Down

0 comments on commit 8dec02f

Please sign in to comment.