Compile pure Wayland and Weston on Centos7

Source: Internet
Author: User

Yes, get rid of xorg compilation Wayland

Minimize the installation of CENTOS7

Related tools

Yum install autoconf automake make gcc gcc-c++ libtool Bison flex wget bzip2 Pkgconfig

Adding environment variables

Export wld=/home/

Expexport 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

Wanyland related dependencies

Yum Install libffi-devel.x86_64 expat-devel.x86_64

No git download source, the following tar package

Wayland

./configure--prefix= $WLD--disable-documentation

Make

Make check

Make install

Libevdev

./configure--prefix= $WLD--disable-static--disable-documentation

Make

Make install

Mtdev

./configure--prefix= $WLD--disable-static

Make

Make install

Libinput related dependencies

Yum Install systemd-devel.x86_64

./configure--prefix= $WLD--without-libunwind--disable-static

Make

Make install

Libdrm

Sed-e "/pthread-stubs/d"-I. CONFIGURE.AC

Autoreconf-fiv

./configure--prefix=/$WLD--disable-intel--disable-radeon--disable-amdgpu--disable-vmwgfx

Make

Make install

Mesa

./autogen.sh--prefix= $WLD--enable-gles2--disable-gallium-egl \

--WITH-EGL-PLATFORMS=WAYLAND,DRM--ENABLE-GBM--disable-dri3 \

--with-gallium-drivers= "Nouveau"--with-dri-drivers= "nouveau" \

--DISABLE-XVMC--disable-xa--DISABLE-GLX

Make

Make install

Yum Install Wqy-microhei-fonts.noarch Wqy-zenhei-fonts.noarch zlib-devel.x86_64

Libpng

./configure--prefix= $WLD--disable-static

Make

Make install

Harfbuzz

Yum Install glib2-devel.x86_64

./configure--prefix= $WLD

Make

Make install

FreeType

./configure--prefix= $WLD--disable-static

Make

Make install

Fontconfig

./configure--prefix= $WLD--disable-docs

Make

Make install

Cairo

Yum Install libpng-devel.x86_64 pixman-devel.x86_64

./autogen.sh--prefix= $WLD--enable-gl=no--enable-xlib=no--enable-glx=no \

--enable-glesv2--enable-ft=yes--enable-fc=yes--enable-test-surfaces=no \

--disable-static--disable-some-floating-point

Make

Make install

Weston

Yum Install libxkbcommon-devel.x86_64 libjpeg-turbo-devel.x86_64 pam-devel.x86_64

./configure--prefix= $WLD--enable-wayland-compositor--enable-drm-compositor \

--disable-xwayland-test--disable-x11-compositor--disable-xwayland--enable-fbdev-compositor

Make

Make check

sudo make install

Mkdir-p ~/.config

CP Weston.ini ~/.config

Echo $XDG _runtime_dir

sudo groupadd weston-launch

sudo usermod-a-G weston-launch $USER

sudo chown root $WLD/bin/weston-launch

sudo chmod +s $WLD/bin/weston-launch

Compile pure Wayland and Weston on Centos7

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.