weston 编译过程说明
本文记录的是在ubuntu 20.04 环境下,编译weston 的过程,主要步骤是参考weston的官方编译说明:Building Weston (wayland.freedesktop.org)。
使用docker 创建一个干净的编译环境,配置好APT源,安装依赖包:
docker run --name weston-dev -it ubuntu:20.04 bash # 进入容器后 sed -i s/ports.ubuntu.com/mirrors.ustc.edu.cn/g /etc/apt/sources.list sed -i s/'# deb-src'/deb-src/g /etc/apt/sources.list apt update && apt install -y vim git python3-pip pip3 install meson==0.63.0 -i https://mirrors.aliyun.com/pypi/simple apt build-dep weston mkdir /workspaces
编译 wayland:
cd /workspaces git clone https://gitlab.freedesktop.org/wayland/wayland.git cd wayland export WLD=/usr/local meson build/ --prefix=$WLD --buildtype=release -Ddocumentation=false ninja -C build/ install
编译 wayland protocols:
cd /workspaces git clone https://gitlab.freedesktop.org/wayland/wayland-protocols.git cd wayland-protocols meson build/ --prefix=$WLD --buildtype=release ninja -C build/ install
编译 drm:
编译 libseat:
编译 weston: