Wayland (i) Building

Source: Internet
Author: User

Https://wayland.freedesktop.org/building.html
Https://wayland.freedesktop.org/ubuntu12.04.html

1. SOURCE wayland.conf

2. CD Wayland
./autogen.sh--prefix= $WLD
[Err] Package Requirement:libffi
[Fix] to ensure that the OS is already installed Libffi-dev, the/usr/lib/i386-linux-gnu/pkgconfig added to the Pkg_config_path;
3. Git clone wayland-protocal
./configure--prefix= $WLD
Make & make Install
4. Install Mesa
Wayland use MESA_EGL stack.
https://mesa.freedesktop.org/archive/

$ git clone Git://anongit.freedesktop.org/mesa/mesa
$ CD Mesa
$./autogen.sh--prefix= $WLD--enable-gles2 \
--WITH-EGL-PLATFORMS=X11,WAYLAND,DRM--ENABLE-GBM--enable-shared-glapi \
--with-gallium-drivers=r300,r600,swrast,nouveau
$ make && make install

[Err] rendering requires LIBDRM >= 2.4.60
[Fix] Https://dri.freedesktop.org/libdrm/install

[Err] pciaccess >= 0.10
[Fix] Apt-get install Libpciaccess-dev

[Err] Dri3proto >= 1.0
[Fix]--disable-dri3

[Err] No package Libomxil-bellagio
[Fix] Apt-get install Libomxil-bellagio-dev

[Err] LLVM is required to build gallium R300 on x86 and x86_64
[Fix] apt-get install Llvm-3.0-dev Llvm-dev
[Err] LLVM 3.3 or newer is required
[Fix] http://llvm.org/releases/download.html#3.8.0
or set [--with-gallium-drivers= "] to ignore it. (not used yet)
[Final] using:--with-gallium-drivers= ""

$ swap with mesa-10.2.0
./autogen.sh--prefix= $WLD
./configure--prefix= $WLD

[Err] Dri3proto >= 1.0
[Fix]--disable-dri3

[Err] Llvm
[Fix]./configure--prefix= $WLD--disable-dri3--with-llvm-prefix=/usr/lib/llvm-3.1/lib/

[Err] Need LLVM
[Fix]./configure--prefix= $WLD--disable-dri3--with-llvm-prefix=/usr/lib/llvm-3.1/lib/--with-gallium-drivers= ""

$ make & sudo make install
Done

4. Install Weston
git clone Git://anongit.freedesktop.org/wayland/weston

$CD Weston
$./configure--prefix= $WLD--disable-setuid-install

4.1 libinput
[Err] libinput >= 0.8.0
[Fix] https://wayland.freedesktop.org/libinput/doc/0.9/
Http://cgit.freedesktop.org/wayland/libinput
Git://anongit.freedesktop.org/wayland/libinput
Ssh://git.freedesktop.org/git/wayland/libinput
Https://anongit.freedesktop.org/git/wayland/libinput.git

git clone https://anongit.freedesktop.org/git/wayland/libinput.git
git checkout 0.9.0 (tag)
[ERR] HTTP request refused
[fix] git config--global http.sslverify false

$./autogen.sh--prefix= $WLD--disable-libwacom

4.1.1 Need Libevdev >= 0.4
git clone Git://anongit.freedesktop.org/libevdev
CD Libevdev
./autogen.sh--prefix= $WLD

Https://anongit.freedesktop.org/git/libevdev.git
git checkout libevdev-0.6

4.2 Need [Wayland-server >= 1.10.0 pixman-1 >= 0.25.2 xkbcommon >= 0.3.0]
4.2.1 Wayland-server
Re-download Weston.git & git checkout 1.6.0
$./autogen.sh--prefix= $WLD--disable-setuid-install

4.2.2 Xkbcommon
git clone Git://github.com/xkbcommon/libxkbcommon
CD Libxkbcommon
./autogen.sh--prefix= $WLD--WITH-XKB-CONFIG-ROOT=/USR/SHARE/X11/XKB

$git Clone Https://github.com/xkbcommon/libxkbcommon
$git Checkout xkbcommon-0.3.2

4.2.2.1 need Xorg-macros 1.16
git clone Git://anongit.freedesktop.org/xorg/util/macros
CD macros
./autogen.sh--prefix= $WLD

4.3 Need Pam
sudo apt-get install Libpam0g-dev

4.4 Src/libinput-device.c:137:2: Error:too few arguments to function ' Libinput_event_pointer_get_axis_value '
Cause: The Weston version is too low and does not match the libinput (or the libinput version is too high)
View./configure, Weston 1.6.0 matching libinput version 0.6.0
Recompile installation Libinput 0.6.0

Wayland (i) Building

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.