https://wiki.archlinux.org/api.php?action=feedcontributions&user=Elethiomel&feedformat=atomArchWiki - User contributions [en]2024-03-28T08:47:58ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Wayland&diff=254535Wayland2013-04-18T16:47:48Z<p>Elethiomel: Undid unilateral deletion of Pure Wayland (section worked on by several users) without discussion.</p>
<hr />
<div>[[Category:X Server]]<br />
[[fr:Wayland]]<br />
[[ja:Wayland]]<br />
[[zh-CN:Wayland]]<br />
{{Article summary start}}<br />
{{Article summary text|A guide to installing and running the Wayland display server.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|KMS}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary end}}<br />
<br />
'''Wayland''' is a new windowing protocol for Linux. Utilization of Wayland requires changes to and re-installation of parts of your system's software. For more information on Wayland see its [http://wayland.freedesktop.org/ homepage].<br />
<br />
{{Warning|Wayland is under heavy development. Support can not be guaranteed and it may not function as you expect.}}<br />
<br />
== Requirements ==<br />
Currently Wayland will only work with on a system that is utilizing [[KMS]].<br />
<br />
== Installation ==<br />
Wayland is most probably installed on your system already as it is an indirect dependency of {{pkg|gtk2}} and {{pkg|gtk3}}. If it is not installed, you will find the {{pkg|wayland}} package in extra.<br />
<br />
== Usage ==<br />
As Wayland is only a library, it is useless on its own. To use it, you need a compositor (like Weston), Weston demo applications, Qt5 with Wayland plugin, and/or GTK+ with Wayland support.<br />
<br />
== Weston ==<br />
=== Installation ===<br />
You need to install {{pkg|weston}} from community.<br />
<br />
=== Usage ===<br />
Now that Wayland and its requirements are installed you should be ready to test it out. Try switching to a terminal and running:<br />
$ weston-launch<br />
{{Note|You need to be in the video group for Weston to start; this command is not supposed to be run as root and doing that may freeze your VT. }}<br />
{{Note|If you get an LLVM assertion failure, you need to rebuild {{Pkg|mesa}} without Gallium LLVM until this problem is fixed. This may imply disabling some drivers which require LLVM.}}<br />
<br />
You may also try exporting the following, if having problems with hardware drivers: <br />
$ export EGL_DRIVER=/usr/lib/egl/egl_gallium.so<br />
<br />
It is possible to run Weston inside a running X session:<br />
$ weston<br />
<br />
Then at a TTY you can run the demos. To launch a terminal emulator:<br />
$ weston-terminal<br />
<br />
To move flowers around the screen:<br />
$ weston-flower <br />
<br />
To test the frame protocol (runs {{ic|glxgears}}):<br />
$ weston-gears<br />
<br />
To display images:<br />
$ weston-image image1.jpg image2.jpg...<br />
<br />
To display PDF Files:<br />
$ weston-view doc1.pdf doc2.pdf...<br />
<br />
== GUI libraries ==<br />
([http://wayland.freedesktop.org/toolkits.html page from official website])<br />
<br />
===GTK+===<br />
<br />
You need to install {{pkg|gtk3}} from extra, which now has the Wayland backend enabled.<br />
<br />
With GTK+ 3.0, GTK+ gained support for multiple backends at runtime and can switch between backends in the same way Qt can with lighthouse.<br />
<br />
When both Wayland and X backends are enabled, GTK+ will default to the X11 backend, but this can be overridden by setting the <code>GDK_BACKEND</code> environment variable to <code>wayland</code>.<br />
<br />
Remove {{pkg|libcanberra}} if you get segmentation faults when running gtk applications. A [http://git.0pointer.de/?p=libcanberra.git;a=commit;h=c0620e432650e81062c1967cc669829dbd29b310 fix] for these segfaults has been committed as of 9 Nov 2012, so presumably as soon as 0.31.0 comes out, this should not be necessary anymore. The AUR contains a working git based {{aur|libcanberra-git}} if you want to keep the functionality.<br />
<br />
===Qt5===<br />
<br />
You need to install {{pkg|qt5-base}} and the wayland plugin - {{aur|qt5-qtwayland-git}}.<br />
<br />
To run a Qt5 app with the Wayland plugin, set QT_QPA_PLATFORM=wayland-egl.<br />
<br />
===Clutter===<br />
<br />
The Clutter toolkit has a Wayland backend that allows it to run as a Wayland client. The backend is in the master branch of the [http://git.gnome.org/browse/clutter main repo] and can be activated by passing <code>--with-flavour=wayland</code> to the configure script.<br />
<br />
===SDL===<br />
<br />
Benjamin Franzke is working on a port of SDL to Wayland, it's available in his [http://cgit.freedesktop.org/~bnf/sdl-wayland/ sdl-wayland repo] on freedesktop.org. Further development upon Benjamins work was done by Andre Heider in his [https://github.com/dhewg/libsdl/tree/wl wayland branch] of libsdl.<br />
<br />
===EFL===<br />
<br />
EFL has complete Wayland support. Please see [http://trac.enlightenment.org/e/wiki/Wayland here] for details.<br />
<br />
==Window managers and desktop shells==<br />
<br />
===KDE===<br />
<br />
There is [http://blog.martin-graesslin.com/blog/2011/03/kwin-at-gsoc-2011/ early work] to make it possible to run KWin (KDE's window manager) on Wayland.<br />
<br />
===GNOME===<br />
<br />
GNOME is currently ported to Wayland and will be available in a future version. For details look into the [https://live.gnome.org/Wayland GNOME Wiki].<br />
<br />
===Pure Wayland===<br />
<br />
{{Warning|Some really quick notes on installing a pure (no X11) wayland system on Arch Linux. This is from source and installed into /usr/local. May break your system. You have been warned. (by elethiomel@gmail.com)}}<br />
<br />
First install a base Arch Linux install with base and base-devel. Do not install xorg or any of its libraries<br />
<br />
<br />
===== Wayland =====<br />
<br />
$ pacman -S libffi<br />
$ git clone git://anongit.freedesktop.org/wayland/wayland<br />
$ cd wayland<br />
$ ./autogen.sh --prefix=/usr/local<br />
$ make<br />
$ make install<br />
<br />
===== DRM and Mesa =====<br />
<br />
$ git clone git://anongit.freedesktop.org/git/mesa/drm<br />
$ cd drm<br />
$ ./autogen.sh --prefix=/usr/local<br />
$ make<br />
$ make install<br />
<br />
$ git clone git://anongit.freedesktop.org/mesa/mesa<br />
$ cd mesa<br />
$ CFLAGS=-DMESA_EGL_NO_X11_HEADERS ./autogen.sh --prefix=/usr/local --enable-gles2 --disable-gallium-egl --with-egl-platforms=wayland,drm --enable-gbm --enable-shared-glapi --with-gallium-drivers=r300,r600,swrast,nouveau --disable-glx --disable-xlib<br />
$ make<br />
$ make install<br />
<br />
===== xorg-macros =====<br />
<br />
$ git clone http://anongit.freedesktop.org/git/xorg/util/macros.git<br />
$ cd macros/<br />
$ ./autogen.sh --prefix=/usr/local/<br />
$ make<br />
$ make install<br />
<br />
===== libxkbcommon =====<br />
<br />
$ git clone git://people.freedesktop.org/xorg/lib/libxkbcommon.git<br />
$ cd libxkbcommon/<br />
$ export ACLOCAL_PATH=/usr/local/share/aclocal/<br />
$ ./autogen.sh --prefix=/usr/local/ --with-xkb-config-root=/usr/local/share/X11/xkb<br />
$ make<br />
$ make install<br />
<br />
===== pixman =====<br />
<br />
$ git clone git://anongit.freedesktop.org/pixman<br />
$ cd pixman/<br />
$ ./autogen.sh --prefix=/usr/local/<br />
$ make<br />
$ make install<br />
<br />
===== cairo =====<br />
<br />
Note - no glx/gl or xcb - EGL only.<br />
<br />
$ pacman -S libpng<br />
$ git clone git://anongit.freedesktop.org/cairo<br />
$ cd cairo<br />
$ CFLAGS=-DMESA_EGL_NO_X11_HEADERS ./autogen.sh --prefix=/usr/local/ --disable-xcb --enable-glesv2 <br />
$ make<br />
$ make install<br />
<br />
===== xkb files =====<br />
<br />
Either<br />
<br />
a) Copy from an existing system a set of xkb layouts<br />
<br />
$ scp -r /usr/share/X11/xkb to /usr/local/share/X11/<br />
<br />
or<br />
<br />
b) build {{ic|xkeyboard-config}} from git with {{ic|--prefix&#61;/usr/local}} and {{ic|--disable-runtime-deps}}<br />
<br />
===== weston =====<br />
<br />
$ git clone git://anongit.freedesktop.org/wayland/weston<br />
$ cd weston/<br />
$ CFLAGS="-I/usr/local/include/libdrm/ -DMESA_EGL_NO_X11_HEADERS" ./autogen.sh --prefix=/usr/local/ --with-cairo-glesv2 --disable-xwayland --disable-x11-compositor --disable- xwayland-test<br />
$ make<br />
$ make install<br />
<br />
==See also==<br />
* [[Cursor Themes]]<br />
<br />
==External links==<br />
* [https://bbs.archlinux.org/viewtopic.php?id=107499 Arch Linux forum discussion]<br />
* [http://wayland.freedesktop.org/docs/html/ Wayland documentation online]</div>Elethiomelhttps://wiki.archlinux.org/index.php?title=Wayland&diff=247810Wayland2013-02-18T17:22:52Z<p>Elethiomel: /* Pure Wayland */</p>
<hr />
<div>[[Category:X Server]]<br />
[[ja:Wayland]]<br />
[[zh-CN:Wayland]]<br />
{{Article summary start}}<br />
{{Article summary text|A guide to installing and running the Wayland display server.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|KMS}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary end}}<br />
<br />
'''Wayland''' is a new windowing protocol for Linux. Utilization of Wayland requires changes to and re-installation of parts of your system's software. For more information on Wayland see its [http://wayland.freedesktop.org/ homepage].<br />
<br />
{{Warning|Wayland is under heavy development. Support can not be guaranteed and it may not function as you expect.}}<br />
<br />
== Requirements ==<br />
Currently Wayland will only work with on a system that is utilizing [[KMS]].<br />
<br />
== Installation ==<br />
Just install {{pkg|wayland}} from extra and {{pkg|mesa}} (and all its related packages) from testing (as Mesa from extra does not currently support Wayland).<br />
<br />
== Usage ==<br />
As Wayland is only a library, it is useless on its own. To use it, you need a compositor (like Weston), Weston demo applications, Qt5 (or Qt4 with QPA enabled) with Wayland plugin, and/or GTK+ with Wayland support.<br />
<br />
== Weston ==<br />
=== Installation ===<br />
You need to install {{pkg|weston}} from community-testing.<br />
{{Note|If you get the following error: "Failed to create XKB context", install {{Pkg|xkeyboard-config}}: {{ic|# pacman -S xkeyboard-config}} }}<br />
<br />
=== Usage ===<br />
Now that Wayland and its requirements are installed you should be ready to test it out. Try switching to a terminal and running:<br />
$ weston-launch<br />
{{Note|There may be some trouble with keyboard & mouse not working unless this is ran as root.}}<br />
<br />
You may also try exporting the following, if having problems with hardware drivers: <br />
$ export EGL_DRIVER=/usr/lib/egl/egl_gallium.so<br />
<br />
Then at a TTY you can run the demos. To launch a terminal emulator:<br />
$ weston-terminal<br />
<br />
To move flowers around the screen:<br />
$ weston-flower <br />
<br />
To test the frame protocol (runs {{ic|glxgears}}):<br />
$ weston-gears<br />
<br />
To display images:<br />
$ weston-image image1.jpg image2.jpg...<br />
<br />
To display PDF Files:<br />
$ weston-view doc1.pdf doc2.pdf...<br />
<br />
== Qt ==<br />
<br />
=== Installation ===<br />
You need to build and install {{AUR|qt5}} from the [[AUR]], which contains QPA (Lighthouse) support.<br />
<br />
=== Usage ===<br />
At first, you need a working Wayland compositor, like the one from demo applications, or an experimental version of KWin.<br />
<br />
Then compile any qmake-based Qt project:<br />
$ export PATH=/usr/lib/qt5/bin:$PATH<br />
$ export LD_LIBRARY_PATH=/usr/lib/qt5/bin<br />
$ qmake<br />
$ make<br />
<br />
And run it by executing the compiled binary:<br />
$ export LD_LIBRARY_PATH=/usr/lib/qt5/bin<br />
$ export QT_QPA_PLATFORM=waylandgl<br />
$ ./binaryname<br />
<br />
=== Qt Compositor ===<br />
There is ongoing work to make [http://labs.qt.nokia.com/2011/03/18/multi-process-lighthouse/ Qt-Compositor], a base layer to make custom Qt compositors on top of Wayland.<br />
<br />
== Other GUI libraries ==<br />
([http://wayland.freedesktop.org/toolkits.html page from official website])<br />
<br />
===GTK+===<br />
<br />
You need to install {{pkg|gtk3}} from testing, which has the Wayland backend enabled.<br />
<br />
With GTK+ 3.0, GTK+ gained support for multiple backends at runtime and can switch between backends in the same way Qt can with lighthouse.<br />
<br />
When both Wayland and X backends are enabled, GTK+ will default to the X11 backend, but this can be overridden by setting the <code>GDK_BACKEND</code> environment variable to <code>wayland</code>.<br />
<br />
===Clutter===<br />
<br />
The Clutter toolkit has a Wayland backend that allows it to run as a Wayland client. The backend is in the master branch of the [http://git.gnome.org/browse/clutter main repo] and can be activated by passing <code>--with-flavour=wayland</code> to the configure script.<br />
<br />
===SDL===<br />
<br />
Benjamin Franzke is working on a port of SDL to Wayland, it's available in his [http://cgit.freedesktop.org/~bnf/sdl-wayland/ sdl-wayland repo] on freedesktop.org. Further development upon Benjamins work was done by Andre Heider in his [https://github.com/dhewg/libsdl/tree/wl wayland branch] of libsdl.<br />
<br />
===EFL===<br />
<br />
EFL has complete Wayland support. Please see [http://trac.enlightenment.org/e/wiki/Wayland here] for details.<br />
<br />
==Window managers and desktop shells==<br />
<br />
===KDE===<br />
<br />
The KDE Wayland support is expected to come in three phases, with the first two phases expected to be completed this year during the KDE SC 4.8 and 4.9 development cycles. Please see [http://community.kde.org/KWin/Wayland here] for details.<br />
<br />
Also, there is [http://blog.martin-graesslin.com/blog/2011/03/kwin-at-gsoc-2011/ early work] to make it possible to run KWin (KDE's window manager) on Wayland.<br />
<br />
===GNOME===<br />
<br />
GNOME will be ported to Wayland in a future version.<br />
<br />
===Unity===<br />
Ubuntu desktop shell Unity, using Compiz window manager, was [http://www.markshuttleworth.com/archives/551 announced] to be ported to Wayland.<br />
<br />
<br />
===Pure Wayland===<br />
<br />
Some really quick notes on installing a pure (no X11) wayland system on Archlinux. (by elethiomel@gmail.com)<br />
This is from source and installed into /usr/local. May break your system. You have been warned<br />
<br />
First install a base Archlinux install with base and base-devel.<br />
Do not install xorg or any of its libraries<br />
<br />
<br />
-------<br />
Wayland<br />
-------<br />
$ yaourt -S libffi<br />
$ git clone git://anongit.freedesktop.org/wayland/wayland<br />
$ cd wayland<br />
$ ./autogen.sh --prefix=/usr/local<br />
$ make<br />
$ make install<br />
<br />
<br />
-------------<br />
DRM and Mesa<br />
-------------<br />
<br />
$ git clone git://anongit.freedesktop.org/git/mesa/drm<br />
$ cd drm<br />
$ ./autogen.sh --prefix=/usr/local<br />
$ make<br />
$ make install<br />
<br />
$ git clone git://anongit.freedesktop.org/mesa/mesa<br />
$ cd mesa<br />
$ CFLAGS=-DMESA_EGL_NO_X11_HEADERS ./autogen.sh --prefix=/usr/local --enable-gles2 --disable-gallium-egl --with-egl-platforms=wayland,drm --enable-gbm --enable-shared-glapi --with-gallium-drivers=r300,r600,swrast,nouveau --disable-glx --disable-xlib<br />
$ make<br />
$ make install<br />
<br />
<br />
-----------<br />
xorg-macros<br />
-----------<br />
<br />
$ git clone http://anongit.freedesktop.org/git/xorg/util/macros.git<br />
$ cd macros/<br />
$ ./autogen.sh --prefix=/usr/local/<br />
$ make<br />
$ make install<br />
<br />
<br />
------------<br />
libxkbcommon<br />
------------<br />
<br />
$ git clone git://people.freedesktop.org/xorg/lib/libxkbcommon.git<br />
$ cd libxkbcommon/<br />
$ export ACLOCAL_PATH=/usr/local/share/aclocal/<br />
$ ./autogen.sh --prefix=/usr/local/ --with-xkb-config-root=/usr/local/share/X11/xkb<br />
$ make<br />
$ make install<br />
<br />
------<br />
pixman<br />
------<br />
<br />
$ git clone git://anongit.freedesktop.org/pixman<br />
$ cd pixman/<br />
$ ./autogen.sh --prefix=/usr/local/<br />
$ make<br />
$ make install<br />
<br />
<br />
-----<br />
cairo<br />
-----<br />
<br />
Note - no glx/gl or xcb - EGL only.<br />
<br />
$ yaourt -S libpng<br />
$ git clone git://anongit.freedesktop.org/cairo<br />
$ cd cairo<br />
$ CFLAGS=-DMESA_EGL_NO_X11_HEADERS ./autogen.sh --prefix=/usr/local/ --disable-xcb --enable-glesv2 <br />
$ make<br />
$ make install<br />
<br />
<br />
<br />
---------<br />
xkb files<br />
---------<br />
Either<br />
<br />
a) Copy from an existing system a set of xkb layouts<br />
<br />
$ scp -r /usr/share/X11/xkb to /usr/local/share/X11/<br />
<br />
or<br />
<br />
b) build xkeyboard-config from git with --prefix=/usr/local and --disable-runtime-deps<br />
<br />
<br />
<br />
------<br />
weston<br />
------<br />
<br />
$ git clone git://anongit.freedesktop.org/wayland/weston<br />
$ cd weston/<br />
$ CFLAGS="-I/usr/local/include/libdrm/ -DMESA_EGL_NO_X11_HEADERS" ./autogen.sh --prefix=/usr/local/ --with-cairo-glesv2 --disable-xwayland --disable-x11-compositor --disable- xwayland-test<br />
$ make<br />
$ make install<br />
<br />
==See also==<br />
* [[Cursor Themes]]<br />
<br />
==External links==<br />
* [https://bbs.archlinux.org/viewtopic.php?id=107499 Arch Linux forum discussion]<br />
* [http://wayland.freedesktop.org/docs/html/ Wayland documentation online]</div>Elethiomelhttps://wiki.archlinux.org/index.php?title=Wayland&diff=247809Wayland2013-02-18T17:20:34Z<p>Elethiomel: /* Pure Wayland */</p>
<hr />
<div>[[Category:X Server]]<br />
[[ja:Wayland]]<br />
[[zh-CN:Wayland]]<br />
{{Article summary start}}<br />
{{Article summary text|A guide to installing and running the Wayland display server.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|KMS}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary end}}<br />
<br />
'''Wayland''' is a new windowing protocol for Linux. Utilization of Wayland requires changes to and re-installation of parts of your system's software. For more information on Wayland see its [http://wayland.freedesktop.org/ homepage].<br />
<br />
{{Warning|Wayland is under heavy development. Support can not be guaranteed and it may not function as you expect.}}<br />
<br />
== Requirements ==<br />
Currently Wayland will only work with on a system that is utilizing [[KMS]].<br />
<br />
== Installation ==<br />
Just install {{pkg|wayland}} from extra and {{pkg|mesa}} (and all its related packages) from testing (as Mesa from extra does not currently support Wayland).<br />
<br />
== Usage ==<br />
As Wayland is only a library, it is useless on its own. To use it, you need a compositor (like Weston), Weston demo applications, Qt5 (or Qt4 with QPA enabled) with Wayland plugin, and/or GTK+ with Wayland support.<br />
<br />
== Weston ==<br />
=== Installation ===<br />
You need to install {{pkg|weston}} from community-testing.<br />
{{Note|If you get the following error: "Failed to create XKB context", install {{Pkg|xkeyboard-config}}: {{ic|# pacman -S xkeyboard-config}} }}<br />
<br />
=== Usage ===<br />
Now that Wayland and its requirements are installed you should be ready to test it out. Try switching to a terminal and running:<br />
$ weston-launch<br />
{{Note|There may be some trouble with keyboard & mouse not working unless this is ran as root.}}<br />
<br />
You may also try exporting the following, if having problems with hardware drivers: <br />
$ export EGL_DRIVER=/usr/lib/egl/egl_gallium.so<br />
<br />
Then at a TTY you can run the demos. To launch a terminal emulator:<br />
$ weston-terminal<br />
<br />
To move flowers around the screen:<br />
$ weston-flower <br />
<br />
To test the frame protocol (runs {{ic|glxgears}}):<br />
$ weston-gears<br />
<br />
To display images:<br />
$ weston-image image1.jpg image2.jpg...<br />
<br />
To display PDF Files:<br />
$ weston-view doc1.pdf doc2.pdf...<br />
<br />
== Qt ==<br />
<br />
=== Installation ===<br />
You need to build and install {{AUR|qt5}} from the [[AUR]], which contains QPA (Lighthouse) support.<br />
<br />
=== Usage ===<br />
At first, you need a working Wayland compositor, like the one from demo applications, or an experimental version of KWin.<br />
<br />
Then compile any qmake-based Qt project:<br />
$ export PATH=/usr/lib/qt5/bin:$PATH<br />
$ export LD_LIBRARY_PATH=/usr/lib/qt5/bin<br />
$ qmake<br />
$ make<br />
<br />
And run it by executing the compiled binary:<br />
$ export LD_LIBRARY_PATH=/usr/lib/qt5/bin<br />
$ export QT_QPA_PLATFORM=waylandgl<br />
$ ./binaryname<br />
<br />
=== Qt Compositor ===<br />
There is ongoing work to make [http://labs.qt.nokia.com/2011/03/18/multi-process-lighthouse/ Qt-Compositor], a base layer to make custom Qt compositors on top of Wayland.<br />
<br />
== Other GUI libraries ==<br />
([http://wayland.freedesktop.org/toolkits.html page from official website])<br />
<br />
===GTK+===<br />
<br />
You need to install {{pkg|gtk3}} from testing, which has the Wayland backend enabled.<br />
<br />
With GTK+ 3.0, GTK+ gained support for multiple backends at runtime and can switch between backends in the same way Qt can with lighthouse.<br />
<br />
When both Wayland and X backends are enabled, GTK+ will default to the X11 backend, but this can be overridden by setting the <code>GDK_BACKEND</code> environment variable to <code>wayland</code>.<br />
<br />
===Clutter===<br />
<br />
The Clutter toolkit has a Wayland backend that allows it to run as a Wayland client. The backend is in the master branch of the [http://git.gnome.org/browse/clutter main repo] and can be activated by passing <code>--with-flavour=wayland</code> to the configure script.<br />
<br />
===SDL===<br />
<br />
Benjamin Franzke is working on a port of SDL to Wayland, it's available in his [http://cgit.freedesktop.org/~bnf/sdl-wayland/ sdl-wayland repo] on freedesktop.org. Further development upon Benjamins work was done by Andre Heider in his [https://github.com/dhewg/libsdl/tree/wl wayland branch] of libsdl.<br />
<br />
===EFL===<br />
<br />
EFL has complete Wayland support. Please see [http://trac.enlightenment.org/e/wiki/Wayland here] for details.<br />
<br />
==Window managers and desktop shells==<br />
<br />
===KDE===<br />
<br />
The KDE Wayland support is expected to come in three phases, with the first two phases expected to be completed this year during the KDE SC 4.8 and 4.9 development cycles. Please see [http://community.kde.org/KWin/Wayland here] for details.<br />
<br />
Also, there is [http://blog.martin-graesslin.com/blog/2011/03/kwin-at-gsoc-2011/ early work] to make it possible to run KWin (KDE's window manager) on Wayland.<br />
<br />
===GNOME===<br />
<br />
GNOME will be ported to Wayland in a future version.<br />
<br />
===Unity===<br />
Ubuntu desktop shell Unity, using Compiz window manager, was [http://www.markshuttleworth.com/archives/551 announced] to be ported to Wayland.<br />
<br />
<br />
===Pure Wayland===<br />
<br />
Some really quick notes on installing a pure (no X11) wayland system on Archlinux. (by elethiomel@gmail.com)<br />
This is from source and installed into /usr/local. May break your system. You have been warned<br />
<br />
First install a base Archlinux install with base and base-devel.<br />
Do not install xorg or any of its libraries<br />
<br />
<br />
-------<br />
Wayland<br />
-------<br />
$ yaourt -S libffi<br />
$ git clone git://anongit.freedesktop.org/wayland/wayland<br />
$ cd wayland<br />
$ ./autogen.sh --prefix=/usr/local<br />
$ make<br />
$ make install<br />
<br />
<br />
-------------<br />
DRM and Mesa<br />
-------------<br />
<br />
$ git clone git://anongit.freedesktop.org/git/mesa/drm<br />
$ cd drm<br />
$ ./autogen.sh --prefix=/usr/local<br />
$ make<br />
$ make install<br />
<br />
$ git clone git://anongit.freedesktop.org/mesa/mesa<br />
$ cd mesa<br />
$ CFLAGS=-DMESA_EGL_NO_X11_HEADERS ./autogen.sh --prefix=/usr/local --enable-gles2 --disable-gallium-egl --with-egl-platforms=wayland,drm --enable-gbm --enable-shared-glapi --with-gallium-drivers=nouveau --disable-glx --disable-xlib<br />
$ make<br />
$ make install<br />
<br />
<br />
-----------<br />
xorg-macros<br />
-----------<br />
<br />
$ git clone http://anongit.freedesktop.org/git/xorg/util/macros.git<br />
$ cd macros/<br />
$ ./autogen.sh --prefix=/usr/local/<br />
$ make<br />
$ make install<br />
<br />
<br />
------------<br />
libxkbcommon<br />
------------<br />
<br />
$ git clone git://people.freedesktop.org/xorg/lib/libxkbcommon.git<br />
$ cd libxkbcommon/<br />
$ export ACLOCAL_PATH=/usr/local/share/aclocal/<br />
$ ./autogen.sh --prefix=/usr/local/ --with-xkb-config-root=/usr/local/share/X11/xkb<br />
$ make<br />
$ make install<br />
<br />
------<br />
pixman<br />
------<br />
<br />
$ git clone git://anongit.freedesktop.org/pixman<br />
$ cd pixman/<br />
$ ./autogen.sh --prefix=/usr/local/<br />
$ make<br />
$ make install<br />
<br />
<br />
-----<br />
cairo<br />
-----<br />
<br />
Note - no glx/gl or xcb - EGL only.<br />
<br />
$ yaourt -S libpng<br />
$ git clone git://anongit.freedesktop.org/cairo<br />
$ cd cairo<br />
$ CFLAGS=-DMESA_EGL_NO_X11_HEADERS ./autogen.sh --prefix=/usr/local/ --disable-xcb --enable-glesv2 <br />
$ make<br />
$ make install<br />
<br />
<br />
<br />
---------<br />
xkb files<br />
---------<br />
Either<br />
<br />
a) Copy from an existing system a set of xkb layouts<br />
<br />
$ scp -r /usr/share/X11/xkb to /usr/local/share/X11/<br />
<br />
or<br />
<br />
b) build xkeyboard-config from git with --prefix=/usr/local and --disable-runtime-deps<br />
<br />
<br />
<br />
------<br />
weston<br />
------<br />
<br />
$ git clone git://anongit.freedesktop.org/wayland/weston<br />
$ cd weston/<br />
$ CFLAGS="-I/usr/local/include/libdrm/ -DMESA_EGL_NO_X11_HEADERS" ./autogen.sh --prefix=/usr/local/ --with-cairo-glesv2 --disable-xwayland --disable-x11-compositor --disable- xwayland-test<br />
$ make<br />
$ make install<br />
<br />
==See also==<br />
* [[Cursor Themes]]<br />
<br />
==External links==<br />
* [https://bbs.archlinux.org/viewtopic.php?id=107499 Arch Linux forum discussion]<br />
* [http://wayland.freedesktop.org/docs/html/ Wayland documentation online]</div>Elethiomelhttps://wiki.archlinux.org/index.php?title=Wayland&diff=247808Wayland2013-02-18T16:54:18Z<p>Elethiomel: /* Pure Wayland */</p>
<hr />
<div>[[Category:X Server]]<br />
[[ja:Wayland]]<br />
[[zh-CN:Wayland]]<br />
{{Article summary start}}<br />
{{Article summary text|A guide to installing and running the Wayland display server.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|KMS}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary end}}<br />
<br />
'''Wayland''' is a new windowing protocol for Linux. Utilization of Wayland requires changes to and re-installation of parts of your system's software. For more information on Wayland see its [http://wayland.freedesktop.org/ homepage].<br />
<br />
{{Warning|Wayland is under heavy development. Support can not be guaranteed and it may not function as you expect.}}<br />
<br />
== Requirements ==<br />
Currently Wayland will only work with on a system that is utilizing [[KMS]].<br />
<br />
== Installation ==<br />
Just install {{pkg|wayland}} from extra and {{pkg|mesa}} (and all its related packages) from testing (as Mesa from extra does not currently support Wayland).<br />
<br />
== Usage ==<br />
As Wayland is only a library, it is useless on its own. To use it, you need a compositor (like Weston), Weston demo applications, Qt5 (or Qt4 with QPA enabled) with Wayland plugin, and/or GTK+ with Wayland support.<br />
<br />
== Weston ==<br />
=== Installation ===<br />
You need to install {{pkg|weston}} from community-testing.<br />
{{Note|If you get the following error: "Failed to create XKB context", install {{Pkg|xkeyboard-config}}: {{ic|# pacman -S xkeyboard-config}} }}<br />
<br />
=== Usage ===<br />
Now that Wayland and its requirements are installed you should be ready to test it out. Try switching to a terminal and running:<br />
$ weston-launch<br />
{{Note|There may be some trouble with keyboard & mouse not working unless this is ran as root.}}<br />
<br />
You may also try exporting the following, if having problems with hardware drivers: <br />
$ export EGL_DRIVER=/usr/lib/egl/egl_gallium.so<br />
<br />
Then at a TTY you can run the demos. To launch a terminal emulator:<br />
$ weston-terminal<br />
<br />
To move flowers around the screen:<br />
$ weston-flower <br />
<br />
To test the frame protocol (runs {{ic|glxgears}}):<br />
$ weston-gears<br />
<br />
To display images:<br />
$ weston-image image1.jpg image2.jpg...<br />
<br />
To display PDF Files:<br />
$ weston-view doc1.pdf doc2.pdf...<br />
<br />
== Qt ==<br />
<br />
=== Installation ===<br />
You need to build and install {{AUR|qt5}} from the [[AUR]], which contains QPA (Lighthouse) support.<br />
<br />
=== Usage ===<br />
At first, you need a working Wayland compositor, like the one from demo applications, or an experimental version of KWin.<br />
<br />
Then compile any qmake-based Qt project:<br />
$ export PATH=/usr/lib/qt5/bin:$PATH<br />
$ export LD_LIBRARY_PATH=/usr/lib/qt5/bin<br />
$ qmake<br />
$ make<br />
<br />
And run it by executing the compiled binary:<br />
$ export LD_LIBRARY_PATH=/usr/lib/qt5/bin<br />
$ export QT_QPA_PLATFORM=waylandgl<br />
$ ./binaryname<br />
<br />
=== Qt Compositor ===<br />
There is ongoing work to make [http://labs.qt.nokia.com/2011/03/18/multi-process-lighthouse/ Qt-Compositor], a base layer to make custom Qt compositors on top of Wayland.<br />
<br />
== Other GUI libraries ==<br />
([http://wayland.freedesktop.org/toolkits.html page from official website])<br />
<br />
===GTK+===<br />
<br />
You need to install {{pkg|gtk3}} from testing, which has the Wayland backend enabled.<br />
<br />
With GTK+ 3.0, GTK+ gained support for multiple backends at runtime and can switch between backends in the same way Qt can with lighthouse.<br />
<br />
When both Wayland and X backends are enabled, GTK+ will default to the X11 backend, but this can be overridden by setting the <code>GDK_BACKEND</code> environment variable to <code>wayland</code>.<br />
<br />
===Clutter===<br />
<br />
The Clutter toolkit has a Wayland backend that allows it to run as a Wayland client. The backend is in the master branch of the [http://git.gnome.org/browse/clutter main repo] and can be activated by passing <code>--with-flavour=wayland</code> to the configure script.<br />
<br />
===SDL===<br />
<br />
Benjamin Franzke is working on a port of SDL to Wayland, it's available in his [http://cgit.freedesktop.org/~bnf/sdl-wayland/ sdl-wayland repo] on freedesktop.org. Further development upon Benjamins work was done by Andre Heider in his [https://github.com/dhewg/libsdl/tree/wl wayland branch] of libsdl.<br />
<br />
===EFL===<br />
<br />
EFL has complete Wayland support. Please see [http://trac.enlightenment.org/e/wiki/Wayland here] for details.<br />
<br />
==Window managers and desktop shells==<br />
<br />
===KDE===<br />
<br />
The KDE Wayland support is expected to come in three phases, with the first two phases expected to be completed this year during the KDE SC 4.8 and 4.9 development cycles. Please see [http://community.kde.org/KWin/Wayland here] for details.<br />
<br />
Also, there is [http://blog.martin-graesslin.com/blog/2011/03/kwin-at-gsoc-2011/ early work] to make it possible to run KWin (KDE's window manager) on Wayland.<br />
<br />
===GNOME===<br />
<br />
GNOME will be ported to Wayland in a future version.<br />
<br />
===Unity===<br />
Ubuntu desktop shell Unity, using Compiz window manager, was [http://www.markshuttleworth.com/archives/551 announced] to be ported to Wayland.<br />
<br />
<br />
===Pure Wayland===<br />
<br />
Some really quick notes on installing a pure (no X11) wayland system on Archlinux. (by elethiomel@gmail.com)<br />
This is from source and installed into /usr/local. May break your system. You have been warned<br />
<br />
First install a base Archlinux install with base and base-devel.<br />
Do not install xorg or any of its libraries<br />
<br />
<br />
-------<br />
Wayland<br />
-------<br />
$ yaourt -S libffi<br />
$ git clone git://anongit.freedesktop.org/wayland/wayland<br />
$ cd wayland<br />
$ ./autogen.sh --prefix=/usr/local<br />
$ make<br />
$ make install<br />
<br />
<br />
-------------<br />
DRM and Mesa<br />
-------------<br />
<br />
$ git clone git://anongit.freedesktop.org/git/mesa/drm<br />
$ cd drm<br />
$ ./autogen.sh --prefix=/usr/local<br />
$ make<br />
$ make install<br />
<br />
$ git clone git://anongit.freedesktop.org/mesa/mesa<br />
$ cd mesa<br />
$ CFLAGS=-DMESA_EGL_NO_X11_HEADERS ./autogen.sh --prefix=/usr/local --enable-gles2 --disable-gallium-egl --with-egl-platforms=wayland,drm --enable-gbm --enable-shared-glapi --with-$ gallium-drivers=nouveau --disable-glx --disable-xlib<br />
$ make<br />
$ make install<br />
<br />
<br />
-----------<br />
xorg-macros<br />
-----------<br />
<br />
$ git clone http://anongit.freedesktop.org/git/xorg/util/macros.git<br />
$ cd macros/<br />
$ ./autogen.sh --prefix=/usr/local/<br />
$ make<br />
$ make install<br />
<br />
<br />
------------<br />
libxkbcommon<br />
------------<br />
<br />
$ git clone git://people.freedesktop.org/xorg/lib/libxkbcommon.git<br />
$ cd libxkbcommon/<br />
$ export ACLOCAL_PATH=/usr/local/share/aclocal/<br />
$ ./autogen.sh --prefix=/usr/local/ --with-xkb-config-root=/usr/local/share/X11/xkb<br />
$ make<br />
$ make install<br />
<br />
------<br />
pixman<br />
------<br />
<br />
$ git clone git://anongit.freedesktop.org/pixman<br />
$ cd pixman/<br />
$ ./autogen.sh --prefix=/usr/local/<br />
$ make<br />
$ make install<br />
<br />
<br />
-----<br />
cairo<br />
-----<br />
<br />
Note - no glx/gl or xcb - EGL only.<br />
<br />
$ yaourt -S libpng<br />
$ git clone git://anongit.freedesktop.org/cairo<br />
$ cd cairo<br />
$ CFLAGS=-DMESA_EGL_NO_X11_HEADERS ./autogen.sh --prefix=/usr/local/ --disable-xcb --enable-glesv2 <br />
$ make<br />
$ make install<br />
<br />
<br />
<br />
---------<br />
xkb files<br />
---------<br />
Either<br />
<br />
a) Copy from an existing system a set of xkb layouts<br />
<br />
$ scp -r /usr/share/X11/xkb to /usr/local/share/X11/<br />
<br />
or<br />
<br />
b) build xkeyboard-config from git with --prefix=/usr/local and --disable-runtime-deps<br />
<br />
<br />
<br />
------<br />
weston<br />
------<br />
<br />
$ git clone git://anongit.freedesktop.org/wayland/weston<br />
$ cd weston/<br />
$ CFLAGS="-I/usr/local/include/libdrm/ -DMESA_EGL_NO_X11_HEADERS" ./autogen.sh --prefix=/usr/local/ --with-cairo-glesv2 --disable-xwayland --disable-x11-compositor --disable- xwayland-test<br />
$ make<br />
$ make install<br />
<br />
==See also==<br />
* [[Cursor Themes]]<br />
<br />
==External links==<br />
* [https://bbs.archlinux.org/viewtopic.php?id=107499 Arch Linux forum discussion]<br />
* [http://wayland.freedesktop.org/docs/html/ Wayland documentation online]</div>Elethiomelhttps://wiki.archlinux.org/index.php?title=Wayland&diff=247807Wayland2013-02-18T16:53:41Z<p>Elethiomel: /* Pure Wayland */</p>
<hr />
<div>[[Category:X Server]]<br />
[[ja:Wayland]]<br />
[[zh-CN:Wayland]]<br />
{{Article summary start}}<br />
{{Article summary text|A guide to installing and running the Wayland display server.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|KMS}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary end}}<br />
<br />
'''Wayland''' is a new windowing protocol for Linux. Utilization of Wayland requires changes to and re-installation of parts of your system's software. For more information on Wayland see its [http://wayland.freedesktop.org/ homepage].<br />
<br />
{{Warning|Wayland is under heavy development. Support can not be guaranteed and it may not function as you expect.}}<br />
<br />
== Requirements ==<br />
Currently Wayland will only work with on a system that is utilizing [[KMS]].<br />
<br />
== Installation ==<br />
Just install {{pkg|wayland}} from extra and {{pkg|mesa}} (and all its related packages) from testing (as Mesa from extra does not currently support Wayland).<br />
<br />
== Usage ==<br />
As Wayland is only a library, it is useless on its own. To use it, you need a compositor (like Weston), Weston demo applications, Qt5 (or Qt4 with QPA enabled) with Wayland plugin, and/or GTK+ with Wayland support.<br />
<br />
== Weston ==<br />
=== Installation ===<br />
You need to install {{pkg|weston}} from community-testing.<br />
{{Note|If you get the following error: "Failed to create XKB context", install {{Pkg|xkeyboard-config}}: {{ic|# pacman -S xkeyboard-config}} }}<br />
<br />
=== Usage ===<br />
Now that Wayland and its requirements are installed you should be ready to test it out. Try switching to a terminal and running:<br />
$ weston-launch<br />
{{Note|There may be some trouble with keyboard & mouse not working unless this is ran as root.}}<br />
<br />
You may also try exporting the following, if having problems with hardware drivers: <br />
$ export EGL_DRIVER=/usr/lib/egl/egl_gallium.so<br />
<br />
Then at a TTY you can run the demos. To launch a terminal emulator:<br />
$ weston-terminal<br />
<br />
To move flowers around the screen:<br />
$ weston-flower <br />
<br />
To test the frame protocol (runs {{ic|glxgears}}):<br />
$ weston-gears<br />
<br />
To display images:<br />
$ weston-image image1.jpg image2.jpg...<br />
<br />
To display PDF Files:<br />
$ weston-view doc1.pdf doc2.pdf...<br />
<br />
== Qt ==<br />
<br />
=== Installation ===<br />
You need to build and install {{AUR|qt5}} from the [[AUR]], which contains QPA (Lighthouse) support.<br />
<br />
=== Usage ===<br />
At first, you need a working Wayland compositor, like the one from demo applications, or an experimental version of KWin.<br />
<br />
Then compile any qmake-based Qt project:<br />
$ export PATH=/usr/lib/qt5/bin:$PATH<br />
$ export LD_LIBRARY_PATH=/usr/lib/qt5/bin<br />
$ qmake<br />
$ make<br />
<br />
And run it by executing the compiled binary:<br />
$ export LD_LIBRARY_PATH=/usr/lib/qt5/bin<br />
$ export QT_QPA_PLATFORM=waylandgl<br />
$ ./binaryname<br />
<br />
=== Qt Compositor ===<br />
There is ongoing work to make [http://labs.qt.nokia.com/2011/03/18/multi-process-lighthouse/ Qt-Compositor], a base layer to make custom Qt compositors on top of Wayland.<br />
<br />
== Other GUI libraries ==<br />
([http://wayland.freedesktop.org/toolkits.html page from official website])<br />
<br />
===GTK+===<br />
<br />
You need to install {{pkg|gtk3}} from testing, which has the Wayland backend enabled.<br />
<br />
With GTK+ 3.0, GTK+ gained support for multiple backends at runtime and can switch between backends in the same way Qt can with lighthouse.<br />
<br />
When both Wayland and X backends are enabled, GTK+ will default to the X11 backend, but this can be overridden by setting the <code>GDK_BACKEND</code> environment variable to <code>wayland</code>.<br />
<br />
===Clutter===<br />
<br />
The Clutter toolkit has a Wayland backend that allows it to run as a Wayland client. The backend is in the master branch of the [http://git.gnome.org/browse/clutter main repo] and can be activated by passing <code>--with-flavour=wayland</code> to the configure script.<br />
<br />
===SDL===<br />
<br />
Benjamin Franzke is working on a port of SDL to Wayland, it's available in his [http://cgit.freedesktop.org/~bnf/sdl-wayland/ sdl-wayland repo] on freedesktop.org. Further development upon Benjamins work was done by Andre Heider in his [https://github.com/dhewg/libsdl/tree/wl wayland branch] of libsdl.<br />
<br />
===EFL===<br />
<br />
EFL has complete Wayland support. Please see [http://trac.enlightenment.org/e/wiki/Wayland here] for details.<br />
<br />
==Window managers and desktop shells==<br />
<br />
===KDE===<br />
<br />
The KDE Wayland support is expected to come in three phases, with the first two phases expected to be completed this year during the KDE SC 4.8 and 4.9 development cycles. Please see [http://community.kde.org/KWin/Wayland here] for details.<br />
<br />
Also, there is [http://blog.martin-graesslin.com/blog/2011/03/kwin-at-gsoc-2011/ early work] to make it possible to run KWin (KDE's window manager) on Wayland.<br />
<br />
===GNOME===<br />
<br />
GNOME will be ported to Wayland in a future version.<br />
<br />
===Unity===<br />
Ubuntu desktop shell Unity, using Compiz window manager, was [http://www.markshuttleworth.com/archives/551 announced] to be ported to Wayland.<br />
<br />
<br />
===Pure Wayland===<br />
<br />
Some really quick notes on installing a pure wayland system on Archlinux. (elethiomal@gmail.com)<br />
This is from source and installed into /usr/local.<br />
<br />
First install a base Archlinux install with base and base-devel.<br />
Do not install xorg or any of its libraries<br />
<br />
<br />
-------<br />
Wayland<br />
-------<br />
$ yaourt -S libffi<br />
$ git clone git://anongit.freedesktop.org/wayland/wayland<br />
$ cd wayland<br />
$ ./autogen.sh --prefix=/usr/local<br />
$ make<br />
$ make install<br />
<br />
<br />
-------------<br />
DRM and Mesa<br />
-------------<br />
<br />
$ git clone git://anongit.freedesktop.org/git/mesa/drm<br />
$ cd drm<br />
$ ./autogen.sh --prefix=/usr/local<br />
$ make<br />
$ make install<br />
<br />
$ git clone git://anongit.freedesktop.org/mesa/mesa<br />
$ cd mesa<br />
$ CFLAGS=-DMESA_EGL_NO_X11_HEADERS ./autogen.sh --prefix=/usr/local --enable-gles2 --disable-gallium-egl --with-egl-platforms=wayland,drm --enable-gbm --enable-shared-glapi --with-$ gallium-drivers=nouveau --disable-glx --disable-xlib<br />
$ make<br />
$ make install<br />
<br />
<br />
-----------<br />
xorg-macros<br />
-----------<br />
<br />
$ git clone http://anongit.freedesktop.org/git/xorg/util/macros.git<br />
$ cd macros/<br />
$ ./autogen.sh --prefix=/usr/local/<br />
$ make<br />
$ make install<br />
<br />
<br />
------------<br />
libxkbcommon<br />
------------<br />
<br />
$ git clone git://people.freedesktop.org/xorg/lib/libxkbcommon.git<br />
$ cd libxkbcommon/<br />
$ export ACLOCAL_PATH=/usr/local/share/aclocal/<br />
$ ./autogen.sh --prefix=/usr/local/ --with-xkb-config-root=/usr/local/share/X11/xkb<br />
$ make<br />
$ make install<br />
<br />
------<br />
pixman<br />
------<br />
<br />
$ git clone git://anongit.freedesktop.org/pixman<br />
$ cd pixman/<br />
$ ./autogen.sh --prefix=/usr/local/<br />
$ make<br />
$ make install<br />
<br />
<br />
-----<br />
cairo<br />
-----<br />
<br />
Note - no glx/gl or xcb - EGL only.<br />
<br />
$ yaourt -S libpng<br />
$ git clone git://anongit.freedesktop.org/cairo<br />
$ cd cairo<br />
$ CFLAGS=-DMESA_EGL_NO_X11_HEADERS ./autogen.sh --prefix=/usr/local/ --disable-xcb --enable-glesv2 <br />
$ make<br />
$ make install<br />
<br />
<br />
<br />
---------<br />
xkb files<br />
---------<br />
Either<br />
<br />
a) Copy from an existing system a set of xkb layouts<br />
<br />
$ scp -r /usr/share/X11/xkb to /usr/local/share/X11/<br />
<br />
or<br />
<br />
b) build xkeyboard-config from git with --prefix=/usr/local and --disable-runtime-deps<br />
<br />
<br />
<br />
------<br />
weston<br />
------<br />
<br />
$ git clone git://anongit.freedesktop.org/wayland/weston<br />
$ cd weston/<br />
$ CFLAGS="-I/usr/local/include/libdrm/ -DMESA_EGL_NO_X11_HEADERS" ./autogen.sh --prefix=/usr/local/ --with-cairo-glesv2 --disable-xwayland --disable-x11-compositor --disable- xwayland-test<br />
$ make<br />
$ make install<br />
<br />
==See also==<br />
* [[Cursor Themes]]<br />
<br />
==External links==<br />
* [https://bbs.archlinux.org/viewtopic.php?id=107499 Arch Linux forum discussion]<br />
* [http://wayland.freedesktop.org/docs/html/ Wayland documentation online]</div>Elethiomelhttps://wiki.archlinux.org/index.php?title=Wayland&diff=247806Wayland2013-02-18T16:51:13Z<p>Elethiomel: </p>
<hr />
<div>[[Category:X Server]]<br />
[[ja:Wayland]]<br />
[[zh-CN:Wayland]]<br />
{{Article summary start}}<br />
{{Article summary text|A guide to installing and running the Wayland display server.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|KMS}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary end}}<br />
<br />
'''Wayland''' is a new windowing protocol for Linux. Utilization of Wayland requires changes to and re-installation of parts of your system's software. For more information on Wayland see its [http://wayland.freedesktop.org/ homepage].<br />
<br />
{{Warning|Wayland is under heavy development. Support can not be guaranteed and it may not function as you expect.}}<br />
<br />
== Requirements ==<br />
Currently Wayland will only work with on a system that is utilizing [[KMS]].<br />
<br />
== Installation ==<br />
Just install {{pkg|wayland}} from extra and {{pkg|mesa}} (and all its related packages) from testing (as Mesa from extra does not currently support Wayland).<br />
<br />
== Usage ==<br />
As Wayland is only a library, it is useless on its own. To use it, you need a compositor (like Weston), Weston demo applications, Qt5 (or Qt4 with QPA enabled) with Wayland plugin, and/or GTK+ with Wayland support.<br />
<br />
== Weston ==<br />
=== Installation ===<br />
You need to install {{pkg|weston}} from community-testing.<br />
{{Note|If you get the following error: "Failed to create XKB context", install {{Pkg|xkeyboard-config}}: {{ic|# pacman -S xkeyboard-config}} }}<br />
<br />
=== Usage ===<br />
Now that Wayland and its requirements are installed you should be ready to test it out. Try switching to a terminal and running:<br />
$ weston-launch<br />
{{Note|There may be some trouble with keyboard & mouse not working unless this is ran as root.}}<br />
<br />
You may also try exporting the following, if having problems with hardware drivers: <br />
$ export EGL_DRIVER=/usr/lib/egl/egl_gallium.so<br />
<br />
Then at a TTY you can run the demos. To launch a terminal emulator:<br />
$ weston-terminal<br />
<br />
To move flowers around the screen:<br />
$ weston-flower <br />
<br />
To test the frame protocol (runs {{ic|glxgears}}):<br />
$ weston-gears<br />
<br />
To display images:<br />
$ weston-image image1.jpg image2.jpg...<br />
<br />
To display PDF Files:<br />
$ weston-view doc1.pdf doc2.pdf...<br />
<br />
== Qt ==<br />
<br />
=== Installation ===<br />
You need to build and install {{AUR|qt5}} from the [[AUR]], which contains QPA (Lighthouse) support.<br />
<br />
=== Usage ===<br />
At first, you need a working Wayland compositor, like the one from demo applications, or an experimental version of KWin.<br />
<br />
Then compile any qmake-based Qt project:<br />
$ export PATH=/usr/lib/qt5/bin:$PATH<br />
$ export LD_LIBRARY_PATH=/usr/lib/qt5/bin<br />
$ qmake<br />
$ make<br />
<br />
And run it by executing the compiled binary:<br />
$ export LD_LIBRARY_PATH=/usr/lib/qt5/bin<br />
$ export QT_QPA_PLATFORM=waylandgl<br />
$ ./binaryname<br />
<br />
=== Qt Compositor ===<br />
There is ongoing work to make [http://labs.qt.nokia.com/2011/03/18/multi-process-lighthouse/ Qt-Compositor], a base layer to make custom Qt compositors on top of Wayland.<br />
<br />
== Other GUI libraries ==<br />
([http://wayland.freedesktop.org/toolkits.html page from official website])<br />
<br />
===GTK+===<br />
<br />
You need to install {{pkg|gtk3}} from testing, which has the Wayland backend enabled.<br />
<br />
With GTK+ 3.0, GTK+ gained support for multiple backends at runtime and can switch between backends in the same way Qt can with lighthouse.<br />
<br />
When both Wayland and X backends are enabled, GTK+ will default to the X11 backend, but this can be overridden by setting the <code>GDK_BACKEND</code> environment variable to <code>wayland</code>.<br />
<br />
===Clutter===<br />
<br />
The Clutter toolkit has a Wayland backend that allows it to run as a Wayland client. The backend is in the master branch of the [http://git.gnome.org/browse/clutter main repo] and can be activated by passing <code>--with-flavour=wayland</code> to the configure script.<br />
<br />
===SDL===<br />
<br />
Benjamin Franzke is working on a port of SDL to Wayland, it's available in his [http://cgit.freedesktop.org/~bnf/sdl-wayland/ sdl-wayland repo] on freedesktop.org. Further development upon Benjamins work was done by Andre Heider in his [https://github.com/dhewg/libsdl/tree/wl wayland branch] of libsdl.<br />
<br />
===EFL===<br />
<br />
EFL has complete Wayland support. Please see [http://trac.enlightenment.org/e/wiki/Wayland here] for details.<br />
<br />
==Window managers and desktop shells==<br />
<br />
===KDE===<br />
<br />
The KDE Wayland support is expected to come in three phases, with the first two phases expected to be completed this year during the KDE SC 4.8 and 4.9 development cycles. Please see [http://community.kde.org/KWin/Wayland here] for details.<br />
<br />
Also, there is [http://blog.martin-graesslin.com/blog/2011/03/kwin-at-gsoc-2011/ early work] to make it possible to run KWin (KDE's window manager) on Wayland.<br />
<br />
===GNOME===<br />
<br />
GNOME will be ported to Wayland in a future version.<br />
<br />
===Unity===<br />
Ubuntu desktop shell Unity, using Compiz window manager, was [http://www.markshuttleworth.com/archives/551 announced] to be ported to Wayland.<br />
<br />
<br />
===Pure Wayland===<br />
<br />
Some really quick notes on installing a pure wayland system on Archlinux. (elethiomal@gmail.com)<br />
This is from source and installed into /usr/local.<br />
<br />
First install a base Archlinux install with base and base-devel.<br />
Do not install xorg or any of its libraries<br />
<br />
<br />
-------<br />
Wayland<br />
-------<br />
$ yaourt -S libffi<br />
$ git clone git://anongit.freedesktop.org/wayland/wayland<br />
$ cd wayland<br />
$ ./autogen.sh --prefix=/usr/local<br />
$ make<br />
$ make install<br />
<br />
<br />
-------------<br />
DRM and Mesa<br />
-------------<br />
<br />
$ git clone git://anongit.freedesktop.org/git/mesa/drm<br />
$ cd drm<br />
$ ./autogen.sh --prefix=/usr/local<br />
$ make<br />
$ make install<br />
<br />
$ git clone git://anongit.freedesktop.org/mesa/mesa<br />
$ cd mesa<br />
$ CFLAGS=-DMESA_EGL_NO_X11_HEADERS ./autogen.sh --prefix=/usr/local --enable-gles2 --disable-gallium-egl --with-egl-platforms=wayland,drm --enable-gbm --enable-shared-glapi --with-$ gallium-drivers=nouveau --disable-glx --disable-xlib<br />
$ make<br />
$ make install<br />
<br />
<br />
-----------<br />
xorg-macros<br />
-----------<br />
<br />
$ git clone http://anongit.freedesktop.org/git/xorg/util/macros.git<br />
$ cd macros/<br />
$ ./autogen.sh --prefix=/usr/local/<br />
$ make<br />
$ make install<br />
<br />
<br />
------------<br />
libxkbcommon<br />
------------<br />
<br />
$ git clone git://people.freedesktop.org/xorg/lib/libxkbcommon.git<br />
$ cd libxkbcommon/<br />
$ export ACLOCAL_PATH=/usr/local/share/aclocal/<br />
$ ./autogen.sh --prefix=/usr/local/ --with-xkb-config-root=/usr/local/share/X11/xkb<br />
$ make<br />
$ make install<br />
<br />
------<br />
pixman<br />
------<br />
<br />
$ git clone git://anongit.freedesktop.org/pixman<br />
$ cd pixman/<br />
$ ./autogen.sh --prefix=/usr/local/<br />
$ make<br />
$ make install<br />
<br />
<br />
-----<br />
cairo<br />
-----<br />
<br />
Note - no glx/gl or xcb - EGL only.<br />
<br />
$ yaourt -S libpng<br />
$ git clone git://anongit.freedesktop.org/cairo<br />
$ cd cairo<br />
$ CFLAGS=-DMESA_EGL_NO_X11_HEADERS ./autogen.sh --prefix=/usr/local/ --disable-xcb --enable-glesv2 <br />
$ make<br />
$ make install<br />
<br />
<br />
<br />
---------<br />
xkb files<br />
---------<br />
Either<br />
<br />
a) scp -r /usr/share/X11/xkb to /usr/local/share/X11/<br />
<br />
b) build xkeyboard-config from git with --prefix=/usr/local and --disable-runtime-deps<br />
<br />
<br />
<br />
------<br />
weston<br />
------<br />
<br />
$ git clone git://anongit.freedesktop.org/wayland/weston<br />
$ cd weston/<br />
$ CFLAGS="-I/usr/local/include/libdrm/ -DMESA_EGL_NO_X11_HEADERS" ./autogen.sh --prefix=/usr/local/ --with-cairo-glesv2 --disable-xwayland --disable-x11-compositor --disable- xwayland-test<br />
$ make<br />
$ make install<br />
<br />
<br />
==See also==<br />
* [[Cursor Themes]]<br />
<br />
==External links==<br />
* [https://bbs.archlinux.org/viewtopic.php?id=107499 Arch Linux forum discussion]<br />
* [http://wayland.freedesktop.org/docs/html/ Wayland documentation online]</div>Elethiomelhttps://wiki.archlinux.org/index.php?title=Wayland&diff=247805Wayland2013-02-18T16:48:41Z<p>Elethiomel: </p>
<hr />
<div>[[Category:X Server]]<br />
[[ja:Wayland]]<br />
[[zh-CN:Wayland]]<br />
{{Article summary start}}<br />
{{Article summary text|A guide to installing and running the Wayland display server.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|KMS}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary end}}<br />
<br />
'''Wayland''' is a new windowing protocol for Linux. Utilization of Wayland requires changes to and re-installation of parts of your system's software. For more information on Wayland see its [http://wayland.freedesktop.org/ homepage].<br />
<br />
{{Warning|Wayland is under heavy development. Support can not be guaranteed and it may not function as you expect.}}<br />
<br />
== Requirements ==<br />
Currently Wayland will only work with on a system that is utilizing [[KMS]].<br />
<br />
== Installation ==<br />
Just install {{pkg|wayland}} from extra and {{pkg|mesa}} (and all its related packages) from testing (as Mesa from extra does not currently support Wayland).<br />
<br />
== Usage ==<br />
As Wayland is only a library, it is useless on its own. To use it, you need a compositor (like Weston), Weston demo applications, Qt5 (or Qt4 with QPA enabled) with Wayland plugin, and/or GTK+ with Wayland support.<br />
<br />
== Weston ==<br />
=== Installation ===<br />
You need to install {{pkg|weston}} from community-testing.<br />
{{Note|If you get the following error: "Failed to create XKB context", install {{Pkg|xkeyboard-config}}: {{ic|# pacman -S xkeyboard-config}} }}<br />
<br />
=== Usage ===<br />
Now that Wayland and its requirements are installed you should be ready to test it out. Try switching to a terminal and running:<br />
$ weston-launch<br />
{{Note|There may be some trouble with keyboard & mouse not working unless this is ran as root.}}<br />
<br />
You may also try exporting the following, if having problems with hardware drivers: <br />
$ export EGL_DRIVER=/usr/lib/egl/egl_gallium.so<br />
<br />
Then at a TTY you can run the demos. To launch a terminal emulator:<br />
$ weston-terminal<br />
<br />
To move flowers around the screen:<br />
$ weston-flower <br />
<br />
To test the frame protocol (runs {{ic|glxgears}}):<br />
$ weston-gears<br />
<br />
To display images:<br />
$ weston-image image1.jpg image2.jpg...<br />
<br />
To display PDF Files:<br />
$ weston-view doc1.pdf doc2.pdf...<br />
<br />
== Qt ==<br />
<br />
=== Installation ===<br />
You need to build and install {{AUR|qt5}} from the [[AUR]], which contains QPA (Lighthouse) support.<br />
<br />
=== Usage ===<br />
At first, you need a working Wayland compositor, like the one from demo applications, or an experimental version of KWin.<br />
<br />
Then compile any qmake-based Qt project:<br />
$ export PATH=/usr/lib/qt5/bin:$PATH<br />
$ export LD_LIBRARY_PATH=/usr/lib/qt5/bin<br />
$ qmake<br />
$ make<br />
<br />
And run it by executing the compiled binary:<br />
$ export LD_LIBRARY_PATH=/usr/lib/qt5/bin<br />
$ export QT_QPA_PLATFORM=waylandgl<br />
$ ./binaryname<br />
<br />
=== Qt Compositor ===<br />
There is ongoing work to make [http://labs.qt.nokia.com/2011/03/18/multi-process-lighthouse/ Qt-Compositor], a base layer to make custom Qt compositors on top of Wayland.<br />
<br />
== Other GUI libraries ==<br />
([http://wayland.freedesktop.org/toolkits.html page from official website])<br />
<br />
===GTK+===<br />
<br />
You need to install {{pkg|gtk3}} from testing, which has the Wayland backend enabled.<br />
<br />
With GTK+ 3.0, GTK+ gained support for multiple backends at runtime and can switch between backends in the same way Qt can with lighthouse.<br />
<br />
When both Wayland and X backends are enabled, GTK+ will default to the X11 backend, but this can be overridden by setting the <code>GDK_BACKEND</code> environment variable to <code>wayland</code>.<br />
<br />
===Clutter===<br />
<br />
The Clutter toolkit has a Wayland backend that allows it to run as a Wayland client. The backend is in the master branch of the [http://git.gnome.org/browse/clutter main repo] and can be activated by passing <code>--with-flavour=wayland</code> to the configure script.<br />
<br />
===SDL===<br />
<br />
Benjamin Franzke is working on a port of SDL to Wayland, it's available in his [http://cgit.freedesktop.org/~bnf/sdl-wayland/ sdl-wayland repo] on freedesktop.org. Further development upon Benjamins work was done by Andre Heider in his [https://github.com/dhewg/libsdl/tree/wl wayland branch] of libsdl.<br />
<br />
===EFL===<br />
<br />
EFL has complete Wayland support. Please see [http://trac.enlightenment.org/e/wiki/Wayland here] for details.<br />
<br />
==Window managers and desktop shells==<br />
<br />
===KDE===<br />
<br />
The KDE Wayland support is expected to come in three phases, with the first two phases expected to be completed this year during the KDE SC 4.8 and 4.9 development cycles. Please see [http://community.kde.org/KWin/Wayland here] for details.<br />
<br />
Also, there is [http://blog.martin-graesslin.com/blog/2011/03/kwin-at-gsoc-2011/ early work] to make it possible to run KWin (KDE's window manager) on Wayland.<br />
<br />
===GNOME===<br />
<br />
GNOME will be ported to Wayland in a future version.<br />
<br />
===Unity===<br />
Ubuntu desktop shell Unity, using Compiz window manager, was [http://www.markshuttleworth.com/archives/551 announced] to be ported to Wayland.<br />
<br />
<br />
===Pure Wayland===<br />
<br />
Some really quick notes on installing a pure wayland system on Archlinux. (elethiomal@gmail.com)<br />
This is from source and installed into /usr/local.<br />
<br />
First install a base Archlinux install with base and base-devel.<br />
Do not install xorg or any of its libraries<br />
<br />
<br />
-------<br />
Wayland<br />
-------<br />
yaourt -S libffi<br />
git clone git://anongit.freedesktop.org/wayland/wayland<br />
cd wayland<br />
./autogen.sh --prefix=/usr/local<br />
make<br />
make install<br />
<br />
<br />
-------------<br />
DRM and Mesa<br />
-------------<br />
<br />
git clone git://anongit.freedesktop.org/git/mesa/drm<br />
cd drm<br />
./autogen.sh --prefix=/usr/local<br />
make<br />
make install<br />
<br />
git clone git://anongit.freedesktop.org/mesa/mesa<br />
cd mesa<br />
CFLAGS=-DMESA_EGL_NO_X11_HEADERS ./autogen.sh --prefix=/usr/local --enable-gles2 --disable-gallium-egl --with-egl-platforms=wayland,drm --enable-gbm --enable-shared-glapi --with-gallium-drivers=nouveau --disable-glx --disable-xlib<br />
make<br />
make install<br />
<br />
<br />
-----------<br />
xorg-macros<br />
-----------<br />
<br />
git clone http://anongit.freedesktop.org/git/xorg/util/macros.git<br />
cd macros/<br />
./autogen.sh --prefix=/usr/local/<br />
make<br />
make install<br />
<br />
<br />
------------<br />
libxkbcommon<br />
------------<br />
<br />
git clone git://people.freedesktop.org/xorg/lib/libxkbcommon.git<br />
cd libxkbcommon/<br />
export ACLOCAL_PATH=/usr/local/share/aclocal/<br />
./autogen.sh --prefix=/usr/local/ --with-xkb-config-root=/usr/local/share/X11/xkb<br />
make<br />
make install<br />
<br />
------<br />
pixman<br />
------<br />
<br />
git clone git://anongit.freedesktop.org/pixman<br />
cd pixman/<br />
./autogen.sh --prefix=/usr/local/<br />
make<br />
make install<br />
<br />
<br />
-----<br />
cairo<br />
-----<br />
<br />
Note - no glx/gl or xcb - EGL only.<br />
<br />
yaourt -S libpng<br />
<br />
git clone git://anongit.freedesktop.org/cairo<br />
cd cairo<br />
CFLAGS=-DMESA_EGL_NO_X11_HEADERS ./autogen.sh --prefix=/usr/local/ --disable-xcb --enable-glesv2 <br />
make<br />
make install<br />
<br />
<br />
<br />
---------<br />
xkb files<br />
---------<br />
Either<br />
<br />
a) scp -r /usr/share/X11/xkb to /usr/local/share/X11/<br />
<br />
b) build xkeyboard-config from git with --prefix=/usr/local and --disable-runtime-deps<br />
<br />
<br />
<br />
------<br />
weston<br />
------<br />
<br />
git clone git://anongit.freedesktop.org/wayland/weston<br />
cd weston/<br />
CFLAGS="-I/usr/local/include/libdrm/ -DMESA_EGL_NO_X11_HEADERS" ./autogen.sh --prefix=/usr/local/ --with-cairo-glesv2 --disable-xwayland --disable-x11-compositor --disable-xwayland-test<br />
make<br />
make install<br />
<br />
<br />
==See also==<br />
* [[Cursor Themes]]<br />
<br />
==External links==<br />
* [https://bbs.archlinux.org/viewtopic.php?id=107499 Arch Linux forum discussion]<br />
* [http://wayland.freedesktop.org/docs/html/ Wayland documentation online]</div>Elethiomel