Skip to content

Instantly share code, notes, and snippets.

@stellarpower
Created January 11, 2023 23:36
Show Gist options
  • Save stellarpower/4fde7fa21480acef40549d0b07a2e66a to your computer and use it in GitHub Desktop.
Save stellarpower/4fde7fa21480acef40549d0b07a2e66a to your computer and use it in GitHub Desktop.
OpenVibe Earthfile
# From: https://gist.github.com/jfrey-xx/ed0a8d5d881a7a5734064e6ad89beccd
VERSION --use-cache-command 0.6
build:
# FROM custom:focal
# I originally used a custom image here, with compilers installed.
# Using stock ubuntu may have some steps missing, but it should be easy to add (e.g. standard buildtools)
# FROM ubuntu:focal
WORKDIR /build
COPY openvibe-3.2.0_compile-ubuntu-20.04.patch .
RUN apt update
RUN apt install --yes cmake
RUN wget --quiet 'http://openvibe.inria.fr/pub/src/openvibe-3.2.0-src.tar.xz'
RUN tar xvf openvibe-3.2.0-src.tar.xz
RUN patch -p0 < openvibe-3.2.0_compile-ubuntu-20.04.patch
WORKDIR /build/openvibe-3.2.0-src
RUN ls
ARG DEBIAN_FRONTEND=noninteractive
RUN yes | ./install_dependencies.sh
RUN ./build.sh
SAVE ARTIFACT dist/Release/ AS LOCAL built
# TODO - will need to manage RPath etc.
# For now, LD_LIBRARY_PATH will do to run it.
@stellarpower
Copy link
Author

Happy to upload built binaries should the be of use, if anyone can suggest a suitable public place I can upload the tarball.

@stellarpower
Copy link
Author

TODO: try making an AppImage using this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment