Skip to content

Instantly share code, notes, and snippets.

@colspan
Last active May 4, 2020 11:05
Show Gist options
  • Save colspan/a50f2302654d618e8bd2f144dd84b119 to your computer and use it in GitHub Desktop.
Save colspan/a50f2302654d618e8bd2f144dd84b119 to your computer and use it in GitHub Desktop.
FROM ubuntu:18.04
ENV HOME /opt/3dsmoothnet
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y sudo apt-utils
# Clone latest PCL
RUN apt-get update && apt-get install -y git
# Install prerequisites
RUN apt-get install -y g++
RUN apt-get install -y cmake cmake-gui
RUN apt-get install -y doxygen
RUN apt-get install -y mpi-default-dev openmpi-bin openmpi-common
RUN apt-get install -y libflann* libflann-dev
RUN apt-get install -y libeigen3-dev
RUN apt-get install -y libboost-all-dev
RUN apt-get install -y libvtk6-dev libvtk6.3 libvtk6-qt-dev
#RUN apt-get install -y libvtk5.10-qt4 libvtk5.10 libvtk5-dev # I'm not sure if this is necessary.
RUN apt-get install -y 'libqhull*'
RUN apt-get install -y libusb-dev
RUN apt-get install -y libgtest-dev
RUN apt-get install -y git-core freeglut3-dev pkg-config
RUN apt-get install -y build-essential libxmu-dev libxi-dev
RUN apt-get install -y libusb-1.0-0-dev graphviz mono-complete
RUN apt-get install -o Dpkg::Options::="--force-overwrite" -y openjdk-11-jdk openjdk-11-jre
RUN apt-get install -y phonon-backend-gstreamer
RUN apt-get install -y phonon-backend-vlc
RUN apt-get install -y libopenni-dev libopenni2-dev
RUN mkdir -p /opt/3dsmoothnet
WORKDIR /opt/3dsmoothnet
# for clone pcl-1.8.1
# git clone --branch pcl-1.8.1 https://github.com/PointCloudLibrary/pcl.git pcl-trunk
RUN git clone https://github.com/PointCloudLibrary/pcl.git pcl-trunk
RUN ln -s pcl-trunk pcl
# Compile and install PCL
RUN cd pcl && mkdir release && cd release && \
cmake -DCMAKE_BUILD_TYPE=None -DBUILD_GPU=OFF -DBUILD_apps=ON -DBUILD_examples=ON .. && \
make -j 8 && make install
RUN git clone https://github.com/zgojcic/3DSmoothNet.git
WORKDIR /opt/3dsmoothnet/3DSmoothNet
RUN apt-get install -y python3-pip
COPY requirements.txt .
RUN pip3 install -r requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment