Skip to content

Commit

Permalink
update LAStools
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Sep 10, 2024
1 parent 29023fd commit f60e790
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 25 deletions.
25 changes: 13 additions & 12 deletions ArchLinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,19 @@ WORKDIR /tmp/makepkg
RUN pacman -U --noconfirm *.pkg.tar.zst && \
rm *.pkg.tar.zst

RUN pacman -Sy --noconfirm unzip \
&& cd /tmp \
&& curl -sSL "https://github.com/CGAL/LAStools/archive/LAStools-2020-11-09.zip" -o master.zip \
&& unzip master.zip \
&& cd ./LAStools-LAStools-2020-11-09 \
&& cmake -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ -DCMAKE_CXX_FLAGS=-std=c++11 . \
&& make -j "$(nproc)" \
&& make install \
&& cd .. \
&& rm -rf LAStools-LAStools-2020-11-09 \
&& rm -rf master.zip \
&& pacman -Scc
RUN pacman -Sy --noconfirm unzip wget && pacman -Scc

RUN wget https://github.com/sloriot/LAStools/archive/refs/heads/fix_make_install.zip \
&& unzip fix_make_install.zip \
&& cd LAStools-fix_make_install \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release .. \
&& make -j "$(nproc)" \
&& make install \
&& cd .. \
&& rm -rf LAStools-fix_make_install fix_make_install.zip


# LEDA includes are in a nonstandard location (/usr/include/LEDA/LEDA/...
# instead of just /usr/include/LEDA/...) in Stephan Friedrich's AUR package,
Expand Down
14 changes: 8 additions & 6 deletions Fedora/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,17 @@ RUN dnf -y install \
lsb-release \
json-devel

RUN wget "https://github.com/CGAL/LAStools/archive/LAStools-2020-11-09.zip" -O laslib.zip \
&& unzip laslib.zip \
&& cd ./LAStools-LAStools-2020-11-09 \
&& cmake -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ -DCMAKE_CXX_FLAGS=-std=c++11 . \
RUN wget https://github.com/sloriot/LAStools/archive/refs/heads/fix_make_install.zip \
&& unzip fix_make_install.zip \
&& cd LAStools-fix_make_install \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release .. \
&& make -j "$(nproc)" \
&& make install \
&& cd .. \
&& rm -rf LAStools-LAStools-2020-11-09 \
&& rm -rf laslib.zip
&& rm -rf LAStools-fix_make_install fix_make_install.zip



ENV CGAL_TEST_PLATFORM="Fedora"
Expand Down
16 changes: 9 additions & 7 deletions Ubuntu-clang-latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ RUN apt-get update \
&& cmake -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ ../llvm -DCMAKE_BUILD_TYPE=Release \
&& make -j"$(nproc)" \
&& make -j"$(nproc)" install \
&& cd /tmp && rm -rf build llvm \
&& wget "https://github.com/CGAL/LAStools/archive/LAStools-2020-11-09.zip" -O laslib.zip \
&& unzip laslib.zip \
&& cd ./LAStools-LAStools-2020-11-09 \
&& cmake -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ -DCMAKE_CXX_FLAGS=-std=c++11 . \
&& cd /tmp && rm -rf build llvm

RUN wget https://github.com/sloriot/LAStools/archive/refs/heads/fix_make_install.zip \
&& unzip fix_make_install.zip \
&& cd LAStools-fix_make_install \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release .. \
&& make -j "$(nproc)" \
&& make install \
&& cd .. \
&& rm -rf LAStools-LAStools-2020-11-09 \
&& rm -rf laslib.zip
&& rm -rf LAStools-fix_make_install fix_make_install.zip

ENV CGAL_TEST_PLATFORM="Ubuntu-clang-latest"
ENV CXX=/usr/local/bin/clang++
Expand Down

0 comments on commit f60e790

Please sign in to comment.