2023-05-31 18:45:51 +00:00
|
|
|
FROM ubuntu:22.04
|
2021-03-22 07:55:21 +00:00
|
|
|
|
2023-05-31 18:45:51 +00:00
|
|
|
RUN apt-get update && apt-get install -y ninja-build \
|
2021-03-22 07:55:21 +00:00
|
|
|
git cmake build-essential software-properties-common
|
|
|
|
|
2023-05-31 18:45:51 +00:00
|
|
|
RUN add-apt-repository ppa:ubuntu-toolchain-r/test && apt-get update
|
2021-03-22 07:55:21 +00:00
|
|
|
|
|
|
|
WORKDIR /opt
|
2024-01-05 20:59:52 +00:00
|
|
|
RUN apt install zlib1g-dev
|
2021-03-22 07:55:21 +00:00
|
|
|
|
|
|
|
# Build Assimp
|
|
|
|
RUN git clone https://github.com/assimp/assimp.git /opt/assimp
|
|
|
|
|
|
|
|
WORKDIR /opt/assimp
|
|
|
|
|
|
|
|
RUN git checkout master \
|
|
|
|
&& mkdir build && cd build && \
|
2023-05-31 18:45:51 +00:00
|
|
|
cmake -G 'Ninja' \
|
2021-03-22 07:55:21 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2023-05-31 18:45:51 +00:00
|
|
|
-DASSIMP_BUILD_ASSIMP_TOOLS=ON \
|
2021-03-22 07:55:21 +00:00
|
|
|
.. && \
|
2023-05-31 18:45:51 +00:00
|
|
|
ninja -j4 && ninja install
|