swaywm / wlroots

A modular Wayland compositor library
https://gitlab.freedesktop.org/wlroots/wlroots/
MIT License
2.15k stars 343 forks source link

unrecognized backend 'rdp' #1776

Closed oHaiyang closed 5 years ago

oHaiyang commented 5 years ago

Failed to start sway with WRL_BAKENDS set to rdp

$ WLR_RDP_TLS_CERT_PATH=~/Ops/tls.crt \
WLR_RDP_TLS_KEY_PATH=~/Ops/tls.key \
WLR_RDP_ADDRESS=0.0.0.0 \
WLR_BACKENDS=rdp \
sway -Vd -c /etc/sway/config > sway-rdp.log 2>&1

$ cat sway-rdp.log
2019-07-30 21:24:47 - [sway-1.1.1/sway/main.c:151] Linux archaiyang 5.2.3-arch1-1-ARCH #1 SMP PREEMPT Fri Jul 26 08:13:47 UTC 2019 x86_64 GNU/Linux
2019-07-30 21:24:47 - [sway-1.1.1/sway/main.c:167] Contents of /etc/os-release:
2019-07-30 21:24:47 - [sway-1.1.1/sway/main.c:151] NAME="Arch Linux"
2019-07-30 21:24:47 - [sway-1.1.1/sway/main.c:151] PRETTY_NAME="Arch Linux"
2019-07-30 21:24:47 - [sway-1.1.1/sway/main.c:151] ID=arch
2019-07-30 21:24:47 - [sway-1.1.1/sway/main.c:151] BUILD_ID=rolling
2019-07-30 21:24:47 - [sway-1.1.1/sway/main.c:151] ANSI_COLOR="0;36"
2019-07-30 21:24:47 - [sway-1.1.1/sway/main.c:151] HOME_URL="https://www.archlinux.org/"
2019-07-30 21:24:47 - [sway-1.1.1/sway/main.c:151] DOCUMENTATION_URL="https://wiki.archlinux.org/"
2019-07-30 21:24:47 - [sway-1.1.1/sway/main.c:151] SUPPORT_URL="https://bbs.archlinux.org/"
2019-07-30 21:24:47 - [sway-1.1.1/sway/main.c:151] BUG_REPORT_URL="https://bugs.archlinux.org/"
2019-07-30 21:24:47 - [sway-1.1.1/sway/main.c:151] LOGO=archlinux
2019-07-30 21:24:47 - [sway-1.1.1/sway/main.c:139] LD_LIBRARY_PATH=(null)
2019-07-30 21:24:47 - [sway-1.1.1/sway/main.c:139] LD_PRELOAD=(null)
2019-07-30 21:24:47 - [sway-1.1.1/sway/main.c:139] PATH=/home/haiyang/.pyenv/plugins/pyenv-virtualenv/shims:/home/haiyang/.pyenv/shims:/home/haiyang/.pyenv/bin:/home/haiyang/.pyenv/plugins/pyenv-virtualenv/shims:/home/haiyang/.pyenv/shims:/home/haiyang/.pyenv/bin:/home/haiyang/.nvm/versions/node/v10.15.3/bin:/home/haiyang/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:/home/haiyang/.fzf/bin
2019-07-30 21:24:47 - [sway-1.1.1/sway/main.c:139] SWAYSOCK=/run/user/1000/sway-ipc.1000.5176.sock
2019-07-30 21:24:47 - [sway-1.1.1/sway/server.c:40] Preparing Wayland server initialization
2019-07-30 21:24:47 - [wlroots-0.6.0/backend/backend.c:246] unrecognized backend 'rdp'
2019-07-30 21:24:47 - [wlroots-0.6.0/backend/backend.c:274] failed to start backend 'rdp'
2019-07-30 21:24:47 - [wlroots-0.6.0/backend/noop/backend.c:51] Creating noop backend
2019-07-30 21:24:47 - [sway-1.1.1/sway/server.c:47] Unable to create backend
emersion commented 5 years ago

sway/wlroots has probably been compiled without RDP support. Can you cat /usr/include/wlr/config.h?

oHaiyang commented 5 years ago

looks that's the problem, thanks!

$ cat /usr/include/wlr/config.h
#ifndef WLR_CONFIG_H
#define WLR_CONFIG_H

#define WLR_HAS_LIBCAP 1

#define WLR_HAS_SYSTEMD 1
#define WLR_HAS_ELOGIND 0

#define WLR_HAS_X11_BACKEND 1
#define WLR_HAS_RDP_BACKEND 0

#define WLR_HAS_XWAYLAND 1

#define WLR_HAS_XCB_ERRORS 1
#define WLR_HAS_XCB_ICCCM 1

#endif