-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from xyp8023/master
Updat the Dockerfile based on #32
- Loading branch information
Showing
1 changed file
with
6 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,15 @@ | ||
FROM ros:kinetic-ros-core-xenial | ||
MAINTAINER Yiping Xie [email protected] | ||
RUN apt-get update \ | ||
&& apt-get install -y cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev build-essential python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev \ | ||
libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev \ | ||
libatlas-base-dev gfortran pylint \ | ||
python2.7-dev unzip python-pip wget libcereal-dev libglfw3-dev libceres-dev libtinyxml2-dev \ | ||
&& pip install ipython==5.0 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN wget https://github.com/opencv/opencv/archive/3.3.1.zip -O opencv-3.3.1.zip && unzip opencv-3.3.1.zip && wget https://github.com/opencv/opencv_contrib/archive/3.3.1.zip -O opencv_contrib-3.3.1.zip && unzip opencv_contrib-3.3.1.zip | ||
RUN mkdir -p opencv-3.3.1/biuld | ||
WORKDIR opencv-3.3.1/build | ||
RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-3.3.1/modules -DOPENCV_ENABLE_NONFREE=True .. && make -j4 && make install | ||
WORKDIR / | ||
&& apt-get install -y libcereal-dev libglfw3-dev libceres-dev libtinyxml2-dev libopencv-dev python-pip python-opencv && pip install ipython==5.0 | ||
RUN git clone https://github.com/nilsbore/auvlib.git | ||
WORKDIR auvlib | ||
RUN git submodule update --init && mkdir -p build | ||
WORKDIR libigl | ||
RUN git submodule update --init external/embree \ | ||
&& git submodule update --init external/glfw | ||
WORKDIR ../build | ||
RUN cmake -DCMAKE_INSTALL_PREFIX=../install .. || exit 0 && make -j4 && make install | ||
RUN echo "export PYTHONPATH=$PYTHONPATH:/auvlib/install/lib" >> ~/.bashrc && /bin/bash -c "source ~/.bashrc" && rm /opencv-3.3.1.zip /opencv_contrib-3.3.1.zip && rm -rf /var/lib/apt/lists/* | ||
WORKDIR build | ||
RUN cmake -DCMAKE_INSTALL_PREFIX=../install .. && make -j4 | ||
RUN make install | ||
|
||
RUN echo "export PYTHONPATH=$PYTHONPATH:/auvlib/install/lib" >> ~/.bashrc && /bin/bash -c "source ~/.bashrc" && rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
|