Create a gist now

Instantly share code, notes, and snippets.

@jtbandes /Dockerfile Secret
Last active Jan 8, 2017

What would you like to do?
PCL + libGL/libGLU/libSM problems
# Run the following commands to reproduce the issue:
# Move stuff into directories (Gist doesn't allow dirs)
mkdir pcl
mv pcl_build.sh pcl/build.sh
mv pcl_meta.yaml pcl/meta.yaml
mkdir flann
mv flann_build.sh flann/build.sh
mv flann_meta.yaml flann/meta.yaml
docker build -t conda-test .
docker run -it -v "$(pwd)":/data conda-test
# Inside docker, run:
cd /data
conda build pcl # this fails when linking libGL, libGLU, libSM, ... :(
FROM ubuntu:14.04.4
RUN apt-get update && \
apt-get install -y g++ make cmake patch
ADD https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh /tmp/
RUN bash /tmp/Miniconda2-latest-Linux-x86_64.sh -b
RUN echo "PATH=$HOME/miniconda2/bin:$PATH" >> $HOME/.bashrc
RUN $HOME/miniconda2/bin/conda update conda
RUN $HOME/miniconda2/bin/conda install conda-build git
cmake . -DCMAKE_INSTALL_PREFIX="$PREFIX"
make -j$CPU_COUNT
make install
package:
name: flann
version: 1.9.1
source:
git_url: https://github.com/mariusmuja/flann.git
git_rev: 1.9.1
sudo apt-get install -y --no-install-recommends libglu1-mesa-dev libsm-dev
mkdir build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX="$PREFIX" \
-DWITH_OPENNI=NO
# -DBUILD_io=NO \
# -DBUILD_surface=NO \
# -DBUILD_apps=NO \
# -DBUILD_tools=NO \
# -DBUILD_examples=NO \
# -DBUILD_people=NO \
# -DBUILD_visualization=NO \
# -DWITH_OPENGL=NO \
make -j$CPU_COUNT
make install
package:
name: pcl
version: 1.8.0
source:
git_url: https://github.com/PointCloudLibrary/pcl.git
git_rev: pcl-1.8.0
requirements:
build:
- boost
- eigen
- flann
- openssl
- libpq
- vtk
run:
- boost
- eigen
- flann
- openssl
- libpq
- vtk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment