补充资料。

Signed-off-by: rick.chan <cy@haoan119.com>
This commit is contained in:
rick.chan 2024-07-04 13:08:59 +08:00
parent cb726a0f19
commit e5d6ae0e09

View File

@ -3,9 +3,9 @@
系统Ubuntu 22.04 系统Ubuntu 22.04
```bash ```bash
apt install libcolord-dev liblcms2-dev libva-dev libinput-dev libdrm-dev libpango1.0-dev libpam0g-dev libgbm-dev freerdp2-dev install libxkbcommon-dev libpixman-1-dev libcairo2-dev libjpeg-dev libwebp-dev libsystemd-dev libdbus-1-dev libseat-dev libx11-xcb-dev libxcb-xkb-dev libxcb-composite0-dev libgstreamer-plugins-base1.0-dev libxml2-dev libxcursor-dev apt install libcolord-dev liblcms2-dev libva-dev libinput-dev libdrm-dev libpango1.0-dev libpam0g-dev libgbm-dev freerdp2-dev libxkbcommon-dev libpixman-1-dev libcairo2-dev libjpeg-dev libwebp-dev libsystemd-dev libdbus-1-dev libseat-dev libx11-xcb-dev libxcb-xkb-dev libxcb-composite0-dev libgstreamer-plugins-base1.0-dev libxml2-dev libxcursor-dev
apt install meson cmake git graphviz doxygen xsltproc xmlto apt install meson cmake git graphviz doxygen xsltproc xmlto pkg-config
# apt install libegl-dev libgegl-common libpam0g libgles2 libpipewire-0.2-dev # apt install libegl-dev libgegl-common libpam0g libgles2 libpipewire-0.2-dev
``` ```
@ -61,15 +61,24 @@ path=/usr/bin/weston-terminal
``` ```
```bash ```bash
git clone https://gitlab.freedesktop.org/wayland/wayland.git v1.21.0 git clone https://gitlab.freedesktop.org/wayland/wayland.git
git clone https://gitlab.freedesktop.org/wayland/wayland-protocols.git v1.24 git clone https://gitlab.freedesktop.org/wayland/wayland-protocols.git
git clone git clone https://gitlab.freedesktop.org/wayland/weston.git v10.0.2 git clone https://gitlab.freedesktop.org/wayland/weston.git
# opengl 源码从 buildroot 中拷贝 # opengl 源码从 buildroot 中拷贝
``` ```
wayland and wayland-protocols: wayland:
```bash ```bash
git checkout 1.21.0
meson build/ --prefix=/usr
sudo ninja -C build/ install
```
wayland-protocols:
```bash
git checkout 1.24
meson build/ --prefix=/usr meson build/ --prefix=/usr
sudo ninja -C build/ install sudo ninja -C build/ install
``` ```
@ -84,7 +93,14 @@ sudo ninja -C build/ install
weston: weston:
```bash ```bash
meson build/ --prefix=/usr -Dpipewire=false git checkout 10.0.2
# meson build/ --prefix=/usr -Dpipewire=false
meson build/ --prefix=/usr -Dpipewire=false -Ddeprecated-wl-shell=true -Dcolor-management-colord=false -Ddoc=false -Dremoting=false -Dtools=calibrator,debug,info,terminal,touch-calibrator -Dlauncher-logind=true -Dimage-jpeg=true -Dimage-webp=true -Ddeprecated-weston-launch=true -Drenderer-gl=true -Dbackend-rdp=true -Dbackend-drm=true -Dbackend-headless=true -Dbackend-wayland=true -Dbackend-drm-screencast-vaapi=true -Dcolor-management-lcms=true -Dsystemd=true -Dtest-junit-xml=true -Dshell-desktop=true -Dshell-fullscreen=true -Dshell-ivi=true -Dsimple-clients=all meson build/ --prefix=/usr -Dpipewire=false -Ddeprecated-wl-shell=true -Dcolor-management-colord=false -Ddoc=false -Dremoting=false -Dtools=calibrator,debug,info,terminal,touch-calibrator -Dlauncher-logind=true -Dimage-jpeg=true -Dimage-webp=true -Ddeprecated-weston-launch=true -Drenderer-gl=true -Dbackend-rdp=true -Dbackend-drm=true -Dbackend-headless=true -Dbackend-wayland=true -Dbackend-drm-screencast-vaapi=true -Dcolor-management-lcms=true -Dsystemd=true -Dtest-junit-xml=true -Dshell-desktop=true -Dshell-fullscreen=true -Dshell-ivi=true -Dsimple-clients=all
sudo ninja -C build/ install sudo ninja -C build/ install
``` ```
启动 westonroot 账户下执行:
```bash
weston --tty=2
```