代码拉取完成,页面将自动刷新
# 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"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。