1 Star 0 Fork 0

sniper15 / pc_simulator_sdl_eclipse

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 874 Bytes
一键复制 编辑 原始数据 按行查看 历史
# To build:
# docker build -t lvgl .
#
# To see how to do GUI forwarding in macOS:
# https://cntnr.io/running-guis-with-docker-on-mac-os-x-a14df6a76efc
#
# To do GUI forwarding on linux, the following may work (easiest method, but unsafe)
# xhost + && docker run --network=host --env DISPLAY=$DISPLAY lvgl
FROM ubuntu:18.04
RUN apt update && apt install -y \
build-essential \
cmake \
gcc \
git \
libsdl2-dev \
mesa-utils \
libgl1-mesa-glx \
x11-apps
ENV DISPLAY=:0 \
LV_SIM_BRANCH=master \
LV_SIM_REPO=pc_simulator_sdl_eclipse \
LV_USER=littlevgl
# Prevents Docker from caching
ADD https://api.github.com/repos/$LV_USER/$LV_SIM_REPO/git/refs/heads/$LV_BRANCH version.json
RUN git clone --recursive -b$LV_SIM_BRANCH https://github.com/$LV_USER/$LV_SIM_REPO.git
WORKDIR /$LV_SIM_REPO
RUN make -j3
CMD ["./demo"]
C
1
https://gitee.com/sniper15/pc_simulator_sdl_eclipse.git
git@gitee.com:sniper15/pc_simulator_sdl_eclipse.git
sniper15
pc_simulator_sdl_eclipse
pc_simulator_sdl_eclipse
master

搜索帮助