fix: Add missing deps for exiv2 library in build scripts

This commit is contained in:
2025-01-09 16:19:33 +08:00
parent 25b56fb406
commit 9dfa1d46f2
6 changed files with 49 additions and 5 deletions

View File

@@ -25,6 +25,12 @@ RUN apt-get update && apt-get install -y \
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain nightly -y
ENV PATH=/root/.cargo/bin:$PATH
RUN cd ~ && git clone --depth 1 'https://github.com/fmtlib/fmt' \
&& cd fmt && mkdir -p build && cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release .. "-DCMAKE_INSTALL_PREFIX=/clib" \
-DFMT_DOC=OFF -DFMT_TEST=OFF \
&& make -j$(grep -c ^processor /proc/cpuinfo) && make install \
&& cd ~ && rm -rf fmt
RUN cd ~ && git clone --depth 1 'https://github.com/Exiv2/exiv2' \
&& cd exiv2 && mkdir -p build && cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release .. "-DCMAKE_INSTALL_PREFIX=/clib" \