Closed ThomasAuzinger closed 1 year ago
Hi Thomas, the Docker image continuumio/miniconda3
is based on Debian Stable (version 11 "bullseye"). That version shipoed libcgal-dev version 5.2.
But current main
version of cgal-swig-bindings is only assured to be compatible with CGAL-5.5.1 or later.
Instead of installing libcgal-dev
using apt-get
, clone it, that way:
FROM continuumio/miniconda3:latest
RUN apt-get update && apt-get install -y build-essential cmake git libeigen3-dev swig
RUN apt-get install -y libboost-dev libgmp-dev libmpfr-dev
RUN cd /opt && git clone --depth 1 https://github.com/cgal/cgal-swig-bindings && git clone -b v5.5.1 --depth 1 https://github.com/cgal/CGAL
RUN cd /opt/cgal-swig-bindings && mkdir build
RUN cd /opt/cgal-swig-bindings/build && cmake -DBUILD_JAVA=OFF -DBUILD_RUBY=OFF -DBUILD_PYTHON=ON -DCMAKE_BUILD_TYPE="Release" .. && make -j 4 && make install
I try to create a minimal docker image that runs the CGAL swig bindings. To manage the packages for the Python program, which ultimately uses these bindings, I use miniconda.
When building the following Dockerfile
The last line fails with a longer error message (see below), with the most relevant lines;
I do not understand, why it does not find the file
CGAL_Eigen3_support.cmake
, which exists in the expected folder of CGAL. How would I solve this error?Full error message below: