Closed ThomasThelen closed 1 year ago
@ThomasThelen thanks for all your help in debugging. This is what we settled upon that seems to work on my machine. Please note that I omit any references to GOOGLE_TEST
FROM ubuntu:focal
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y install libgflags-dev libgoogle-glog-dev libgtest-dev libssl-dev swig cmake git build-essential python3-dev python3-pip
WORKDIR /s2/
RUN git clone https://github.com/abseil/abseil-cpp.git
WORKDIR /s2/abseil-cpp/
RUN cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_CXX_STANDARD=14
RUN make install
WORKDIR /s2/
RUN git clone https://github.com/google/s2geometry.git
WORKDIR /s2/s2geometry/build/
RUN cmake -DCMAKE_CXX_STANDARD=14 -DCMAKE_PREFIX_PATH=/s2/abseil-cpp/install -DWITH_PYTHON=ON ..
RUN make install
RUN python3 -m pip install cmake_build_extension wheel
WORKDIR /s2/s2geometry/
RUN python3 setup.py bdist_wheel
WORKDIR /s2/s2geometry/dist
RUN python3 -m pip install s2geometry-0.11.0.dev1-cp38-cp38-linux_aarch64.whl
WORKDIR /s2/s2geometry/src/python
RUN python3 s2geometry_test.py
When installing off the latest commit in
master
on Ubuntu, I'm running across the error message below when interacting with googletest.Error Message
Any ideas where I could be going wrong here? Here's the following Dockerfile to reproduce the error