Giter VIP home page Giter VIP logo

Comments (1)

mitchellfaulk avatar mitchellfaulk commented on June 18, 2024

@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

from s2geometry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.