Skip to content

Docker build for arm64 trips over gflags #387

Answered by lola-masson
KtGunn asked this question in Q&A
Discussion options

You must be logged in to vote

I just gave the build a try, and I am able to build a c++ application from this minimal example:

  • Dockerfile:
FROM ghcr.io/ifm/ifm3d:v1.1.1-ubuntu-arm64

ARG DEBIAN_FRONTEND=noninteractive
RUN sudo apt update && sudo apt install -y\
        build-essential \
        cmake \
        coreutils \
        libgoogle-glog0v5 \
        libgoogle-glog-dev

COPY examples/o3r/ifm3d_playground /home/ifm/ifm3d_playground

WORKDIR /home/ifm/ifm3d_playground/build

RUN cmake .. && cmake --build .
  • C++ example: I am using this example.
  • Build command:
$ docker build --no-cache --file docker/ifm-robotics/example/Dockerfile .
[+] Building 113.1s (10/10) FINISHED                                          …

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@KtGunn
Comment options

Comment options

You must be logged in to vote
1 reply
@KtGunn
Comment options

Comment options

You must be logged in to vote
1 reply
@KtGunn
Comment options

Answer selected by KtGunn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants