Wayland in Embedded linux/Wayland on Ubuntu(intel x86)

Package build using Wayland-build-tool

Onionfra 2017. 6. 19. 20:02

Building Weston on Ubuntu 16.04


wayland-build-tools clone (Made by Bryce Harrington)

git clone https://github.com/bryceharrington/wayland-build-tools.git


# Set build environment

cp wl_defines.sh ~/bin/

mkdir ~/build

mkdir ~/build/Wayland


# Install wayland build dependencies

./wl_install_deps


# Fail case: I got build error in mesa package in "wl_build" script so I fixed it like below

 --with-gallium-drivers=swrast,nouveau,r300,r600

to
 --with-gallium-drivers=swrast,nouveau


# Fail case: I got build error in libinput package in "wl_build" script so I fixed it like below

./autogen.sh --disable-libwacom --disable-debug-gui


# Fail case: Even though I ran the "wl_install_deps" script, I had to install below packages using apt

sudo apt-get install build-essential libgtk-3-dev check


# All related package clones including wayland 

./wl_clone 


# Start build

./wl_build 


# Run weston on X11(Xwayland)

./weston --tty=1


# Run weston on DRM backend (without X11)

1) Set Wayland environment variable $XDG_RUNTIME_DIR

vi ~/.profile

# Code to put in .profile

# Need to check if linux environment has XDG_RUNTIME_DIR using "env" command


if test -z "${XDG_RUNTIME_DIR}"; then export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir if ! test -d "${XDG_RUNTIME_DIR}"; then mkdir "${XDG_RUNTIME_DIR}" chmod 0700 "${XDG_RUNTIME_DIR}" fi fi

#Source from: https://wayland.freedesktop.org/building.html

2) Go to virtual console (go to tty1) & login with root account
- ctrl + alt + F1


3) weston --tty=1


References: 

https://github.com/wayland-project/wayland-build-tools

https://wayland.freedesktop.org/building.html