https://bugs.kde.org/show_bug.cgi?id=383410

--- Comment #16 from Roman Gilg <subd...@gmail.com> ---
You can use my script for compiling (change the rootdir and INST vars to your
liking, an install in /usr/local though makes KWin directly using the compiled
Xwayland on next launch):

#!/bin/sh

# setup environment for local install:
rootdir=$HOME/Entwicklung/linux/xorg
BLD=$rootdir/build-xwayland_only
#export INST=$rootdir/install
#export INST=/opt/xorg
export INST=/usr/local
export LD_LIBRARY_PATH=$INST/lib
export PKG_CONFIG_PATH=$INST/lib/pkgconfig/:$INST/share/pkgconfig/
export PATH=$INST/bin:$PATH
export ACLOCAL_PATH=$INST/share/aclocal
export ACLOCAL="aclocal -I $ACLOCAL_PATH"
mkdir -p src
mkdir -p $BLD
mkdir -p $INST
mkdir -p $INST/var/log
mkdir -p $ACLOCAL_PATH
export MAKEFLAGS="j5" # run 5 threads, or use your own flags

cd $rootdir/src

# * These three are not necessary with the --disable-documentation flag, and
#   pull 1,400 MB of packages:
# configure: error: Documentation build requested but doxygen not found.
#   Install doxygen or disable the documentation using --disable-documentation
# configure: error: Documentation build requested but xmlto not found.
#   Install xmlto or disable the documentation using --disable-documentation
# configure: error: Documentation build requested but graphviz's dot not found.
#   Install graphviz or disable the documentation using --disable-documentation

git clone git://anongit.freedesktop.org/wayland/wayland
cd wayland
git pull
cd $BLD
mkdir wayland
cd wayland
./../../src/wayland/autogen.sh --prefix=$INST # --disable-documentation
make check
make && make install
cd $rootdir/src

# wayland-protocols:
git clone git://anongit.freedesktop.org/wayland/wayland-protocols
cd wayland-protocols
git pull
cd $BLD
mkdir wayland-protocols
cd wayland-protocols
./../../src/wayland-protocols/autogen.sh --prefix=$INST
make check
make && make install
cd $rootdir/src

#git clone git://anongit.freedesktop.org/wayland/libinput
#cd libinput
#git pull
#cd $BLD
#mkdir libinput
#cd $rootdir/src/libinput
#meson --prefix=$INST $BLD/libinput
#ninja -C $BLD/libinput
#sudo ninja -C $BLD/libinput install
#sudo udevadm hwdb --update
#cd $rootdir/src

# No package 'xfont2' found
git clone git://anongit.freedesktop.org/xorg/lib/libXfont
cd libXfont
git pull
cd $BLD
mkdir libXfont
cd libXfont
./../../src/libXfont/autogen.sh --prefix=$INST
make check
make && make install
cd $rootdir/src

git clone git://anongit.freedesktop.org/xorg/xserver
cd xserver
#git pull
cd $BLD
mkdir xserver
cd xserver
./../../src/xserver/autogen.sh --prefix=$INST --disable-docs
--disable-devel-docs \
  --enable-xwayland --disable-xorg --disable-xvfb --disable-xnest \
  --disable-xquartz --disable-xwin
make check
make && make install
cd $rootdir/src

# Links needed so XWayland works:
mkdir -p $INST/share/X11/xkb/rules
ln -s /usr/share/X11/xkb/rules/evdev $INST/share/X11/xkb/rules/
ln -s /usr/bin/xkbcomp $INST/bin/

# git clone git://anongit.freedesktop.org/wayland/weston
# cd weston
# git pull
# cd $BLD
# mkdir weston
# cd weston
# ./../../src/weston/autogen.sh --prefix=$INST --disable-setuid-install
--with-xserver-path=$INST/bin/Xwayland
# make check # runs Xwayland
# make && make install
# cd $rootdir/src

# Weston configuration:
mkdir -p ~/.config
#cp weston/weston.ini.in ~/.config/weston.ini
#editor ~/.config/weston.ini # edit to set background and turn on xwayland.so
module

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to