参考:
https://wayland.pages.freedesktop.org/weston/index.html
https://wayland.freedesktop.org/building.html
https://github.com/wayland-project/wayland-build-tools
1.git clone https://github.com/wayland-project/wayland-build-tools
Step 1: Install git, and clone the wayland-build-tools repository
apt-get install -y git
git clone git://anongit.freedesktop.org/wayland/wayland-build-tools
Where you place this repository is up to you.
Step 2: Prepare expected directories
mkdir ~/Wayland # sources and builds will be here
mkdir -p ~/.config/wayland-build-tools
cp wl_defines.sh ~/.config/wayland-build-tools/
You can change these directories if you wish, but these are the defaults
and you'll need to edit the scripts to match. See WL_ROOT and WLD in
wl_defines.sh.
Step 3: Install packaged build dependencies
./wl_install_deps
Step 4: Clone the necessary repositories
./wl_clone
Step 5: Build upstream dependencies, Wayland, and Weston
./wl_build
Step 6: Run Weston
source ~/.config/wayland-build-tools/wl_defines.sh
weston
如 Readme,主要问题集中于第五步编译:
- 某些git库已经不需要【协议库】
- 缺少pkgconfig的path
- 某些源码需要meson/ninja编译
libxfont需要打patch [已经更新,不再需要]maze@maze-VirtualBox:~/Wayland/libXfont$ git diff ./ diff --git a/configure.ac b/configure.ac index e497325..f71ca0c 100644 --- a/configure.ac +++ b/configure.ac @@ -54,6 +54,9 @@ AC_CHECK_HEADERS([endian.h poll.h sys/poll.h]) AC_CHECK_FUNCS([poll readlink]) AC_SEARCH_LIBS([strlcat], [bsd]) AC_CONFIG_LIBOBJ_DIR([src/util]) +if test "$ac_cv_search_strlcat" = "-lbsd"; then + AC_DEFINE(HAVE_LIBBSD,1,[Has libbsd]) +fi AC_REPLACE_FUNCS