NotePublic/Ecology/LubanCat1/LubanCat1_安装_Weston.md
rick.chan 8d49992ea6 补充资料。
Signed-off-by: rick.chan <cy@haoan119.com>
2024-07-04 10:11:16 +08:00

91 lines
2.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# LubanCat1 安装 Weston
系统Ubuntu 22.04
```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 meson cmake git graphviz doxygen xsltproc xmlto
# apt install libegl-dev libgegl-common libpam0g libgles2 libpipewire-0.2-dev
```
/etc/environment:
```bash
XDG_RUNTIME_DIR="/run/user/0"
DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/0/bus"
RUNLEVEL=3
WESTON_DISABLE_ATOMIC=1
WESTON_DRM_MIRROR=1
WESTON_DRM_KEEP_RATIO=1
WESTON_FREEZE_DISPLAY=/tmp/.freeze_weston
```
/etc/xdg/weston/weston.ini.d/pixman.ini
```ini
[core]
use-pixman=true
```
/etc/xdg/weston/weston.ini
```ini
[core]
xwayland=false
backend=drm-backend.so
idle-time=0
[keyboard]
keymap_layout=gb
[output]
name=HDMI-A-1
mode=2560x1080
[shell]
locking=false
panel-color=0x88882244
panel-position=bottom
panel-scale=2
background-color=0x88882244
[launcher]
icon=/usr/share/icons/locolor/32x32/apps/gvim.png
path=/usr/bin/weston-terminal
#[autolaunch]
#path=/usr/bin/weston-terminal
```
```bash
git clone https://gitlab.freedesktop.org/wayland/wayland.git v1.21.0
git clone https://gitlab.freedesktop.org/wayland/wayland-protocols.git v1.24
git clone git clone https://gitlab.freedesktop.org/wayland/weston.git v10.0.2
# opengl 源码从 buildroot 中拷贝
```
wayland and wayland-protocols:
```bash
meson build/ --prefix=/usr
sudo ninja -C build/ install
```
opengl:
```bash
meson build/ --prefix=/usr -Dwith-overlay=true -Dopencl-icd=false -Dkhr-header=true -Dplatform=wayland -Dgpu=bifrost-g52 -Dversion=g2p0
sudo ninja -C build/ install
```
weston:
```bash
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
sudo ninja -C build/ install
```