[PATCH wayland-web] Build instructions for Ubuntu 16.04
Bill Spitzak
spitzak at gmail.com
Sun Jun 19 22:20:20 UTC 2016
On 06/18/2016 10:16 PM, darxus at chaosreigns.com wrote:
> Most recent Debian based build instructions are for Mint 17, they didn't
> work (something failed), and the list of what does and doesn't need to be
> built from source has changed significantly. I tested this on a pristine
> install via virtualbox. It's been a while. Pretty sweet that weston
> actually runs under virtualbox now.
Looks good to me. Nice to see that they updated all that x11proto stuff.
I like adding the error message you got to the comments.
One minor change below.
> ---
> building.html | 3 ++
> ubuntu16.04.html | 157 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 160 insertions(+)
> create mode 100644 ubuntu16.04.html
>
> diff --git a/building.html b/building.html
> index 1ff9ea2..0a26061 100644
> --- a/building.html
> +++ b/building.html
> @@ -48,6 +48,9 @@ or hardware:</p>
>
> <ul>
>
> +<li><a href="ubuntu16.04.html">Building Weston and XWayland on
> +Ubuntu 16.04</a>. May be useful for any Debian-derived system.</li>
> +
> <li><a href="ubuntu12.04.html">Building Weston and XWayland on
> Ubuntu 12.04</a>. May be useful for any Debian-derived system.</li>
I think these links should be sorted by time. Probably in reverse order:
put yours first, then the Mint 17, then the Ubuntu 12.04 last.
>
> diff --git a/ubuntu16.04.html b/ubuntu16.04.html
> new file mode 100644
> index 0000000..0665def
> --- /dev/null
> +++ b/ubuntu16.04.html
> @@ -0,0 +1,157 @@
> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
> +<html>
> +
> +<head>
> +<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
> +<link href="wayland.css" rel="stylesheet" type="text/css">
> +<title>Building Weston on Ubuntu 16.04</title>
> +</head>
> +
> +<body>
> +<h1><a href="index.html"><img src="wayland.png" alt="Wayland logo"></a>
> +Building Weston on Ubuntu 16.04</h1>
> +
> +<p>The following sequence of commands successfully built Weston and
> +XWayland on a pristine Ubuntu 16.04 system, on June 19, 2016. These
> +commands will probably work on any system based on Ubuntu 16.04.</p>
> +
> +<pre>
> +<span class="comment"># setup environment for local install:</span>
> +export WLD=$HOME/install
> +export LD_LIBRARY_PATH=$WLD/lib
> +export PKG_CONFIG_PATH=$WLD/lib/pkgconfig/:$WLD/share/pkgconfig/
> +export PATH=$WLD/bin:$PATH
> +export ACLOCAL_PATH=$WLD/share/aclocal
> +export ACLOCAL="aclocal -I $ACLOCAL_PATH"
> +mkdir -p $ACLOCAL_PATH
> +export MAKEFLAGS="j5" <span class="comment"># run 5 threads, or use your own flags</span>
> +
> +
> +<span class="comment"># libwayland:</span>
> +
> +<span class="comment"># The program 'git' is currently not installed. You can install it by typing:</span>
> +sudo apt install git
> +
> +<span class="comment"># ./autogen.sh: 7: ./autogen.sh: autoreconf: not found</span>
> +sudo apt install autoconf
> +
> +<span class="comment"># Makefile.am:176: error: Libtool library used but 'LIBTOOL' is undefined</span>
> +sudo apt install libtool
> +
> +<span class="comment"># No package 'libffi' found</span>
> +sudo apt install libffi-dev
> +
> +<span class="comment"># configure: error: Can't find expat.h. Please install expat.</span>
> +sudo apt install libexpat1-dev
> +
> +<span class="comment"># configure: error: Package requirements (libxml-2.0) were not met:</span>
> +<span class="comment"># .pc file is libxml-2.0.pc</span>
> +sudo apt install libxml2-dev
> +
> +<span class="comment"># * These three are not necessary with the --disable-documentation flag:</span>
> +<span class="comment"># configure: error: Documentation build requested but doxygen not found. Install doxygen or disable the documentation using --disable-documentation</span>
> +<span class="comment"># configure: error: Documentation build requested but xmlto not found. Install xmlto or disable the documentation using --disable-documentation</span>
> +<span class="comment"># configure: error: Documentation build requested but graphviz's dot not found. Install graphviz or disable the documentation using --disable-documentation</span>
> +sudo apt install doxygen xmlto graphviz
> +<span class="comment"># * xmlto pulls 814 MB of packages.</span>
> +
> +git clone git://anongit.freedesktop.org/wayland/wayland
> +cd wayland
> +./autogen.sh --prefix=$WLD <span class="comment"># --disable-documentation</span>
> +make && make install
> +cd ..
> +
> +
> +<span class="comment"># wayland-protocols:</span>
> +
> +git clone git://anongit.freedesktop.org/wayland/wayland-protocols
> +cd wayland-protocols
> +./autogen.sh --prefix=$WLD
> +make && make install
> +cd ..
> +
> +
> +<span class="comment"># libinput:</span>
> +
> +<span class="comment"># configure: error: Package requirements (mtdev >= 1.1.0) were not met:</span>
> +sudo apt install libmtdev-dev
> +
> +<span class="comment"># configure: error: Package requirements (libudev) were not met:</span>
> +sudo apt install libudev-dev
> +
> +<span class="comment"># configure: error: Package requirements (libevdev >= 0.4) were not met:</span>
> +sudo apt install libevdev-dev
> +
> +<span class="comment"># configure: error: Package requirements (libwacom >= 0.12) were not met:</span>
> +sudo apt install libwacom-dev
> +
> +git clone git://anongit.freedesktop.org/wayland/libinput
> +cd libinput
> +./autogen.sh --prefix=$WLD
> +make && make install
> +cd ..
> +
> +
> +<span class="comment"># weston:</span>
> +
> +<span class="comment"># configure: error: Package requirements (egl glesv2) were not met:</span>
> +sudo apt install libgles2-mesa-dev
> +
> +<span class="comment"># configure: error: Package requirements (xcb xcb-xfixes xcb-composite xcursor cairo-xcb) were not met:</span>
> +sudo apt install libxcb-composite0-dev libxcursor-dev libcairo2-dev
> +
> +<span class="comment"># configure: error: Package requirements (libudev >= 136 libdrm >= 2.4.30 gbm mtdev >= 1.1.0) were not met:</span>
> +sudo apt install libgbm-dev
> +
> +<span class="comment"># configure: error: weston-launch requires pam</span>
> +sudo apt install libpam0g-dev
> +
> +git clone git://anongit.freedesktop.org/wayland/weston
> +cd weston
> +./autogen.sh --prefix=$WLD --disable-setuid-install
> +make && make install
> +cd ..
> +
> +
> +<span class="comment"># X Server:</span>
> +
> +sudo apt install xutils-dev <span class="comment"># xserver: configure.ac:38: error: must install xorg-macros 1.14 or later before running autoconf/autogen</span>
> +sudo apt install libgl1-mesa-dev <span class="comment"># xserver: configure: error: Package requirements (glproto >= 1.4.17 gl >= 9.2.0) were not met:</span>
> +
> +<span class="comment"># checking for SHA1 implementation... configure: error: No suitable SHA1 implementation found</span>
> +<span class="comment"># checking for SHA1Init in -lmd... no</span>
> +sudo apt install libmd-dev <span class="comment"># no .pc file?</span>
> +
> +<span class="comment"># configure: error: Package requirements (fixesproto >= 5.0 damageproto >= 1.1 xcmiscproto >= 1.2.0 xtrans >= 1.3.5 bigreqsproto >= 1.1.0 xproto >= 7.0.28 randrproto >= 1.5.0 renderproto >= 0.11 xextproto >= 7.2.99.901 inputproto >= 2.3 kbproto >= 1.0.3 fontsproto >= 2.1.3 pixman-1 >= 0.27.2 videoproto compositeproto >= 0.4 recordproto >= 1.13.99.1 scrnsaverproto >= 1.1 resourceproto >= 1.2.0 xf86driproto >= 2.1.0 glproto >= 1.4.17 dri >= 7.8.0 presentproto >= 1.0 xineramaproto xkbfile pixman-1 >= 0.27.2 xfont >= 1.4.2 xau xshmfence >= 1.1 xdmcp) were not met:</span>
> +sudo apt install x11proto-xcmisc-dev x11proto-bigreqs-dev x11proto-randr-dev x11proto-fonts-dev x11proto-video-dev x11proto-composite-dev x11proto-record-dev x11proto-scrnsaver-dev x11proto-resource-dev x11proto-xf86dri-dev x11proto-present-dev x11proto-xinerama-dev libxkbfile-dev libxfont-dev
> +
> +<span class="comment"># configure: error: Xwayland build explicitly requested, but required modules not found.</span>
> +<span class="comment"># checking for XWAYLANDMODULES... no</span>
> +<span class="comment"># XWAYLANDMODULES="wayland-client >= 1.3.0 libdrm epoxy"</span>
> +sudo apt install libepoxy-dev <span class="comment"># this error message sucks</span>
> +
> +git clone git://anongit.freedesktop.org/xorg/xserver
> +cd xserver
> +./autogen.sh --prefix=$WLD --disable-docs --disable-devel-docs \
> + --enable-xwayland --disable-xorg --disable-xvfb --disable-xnest \
> + --disable-xquartz --disable-xwin
> +make && make install
> +cd ..
> +
> +<span class="comment"># Links needed so XWayland works:</span>
> +mkdir -p $WLD/share/X11/xkb/rules
> +ln -s /usr/share/X11/xkb/rules/evdev $WLD/share/X11/xkb/rules/
> +ln -s /usr/bin/xkbcomp $WLD/bin/
> +
> +<span class="comment"># Weston configuration:</span>
> +mkdir -p ~/.config
> +cp weston/weston.ini ~/.config
> +nano ~/.config/weston.ini <span class="comment"># edit to set background and turn on xwayland.so module</span>
> +
> +<span class="comment"># Run it in an X11 window:</span>
> +weston
> +
> +</pre>
> +
> +</body>
> +</html>
>
More information about the wayland-devel
mailing list