Kodi Community Forum

Full Version: The lastest step,about Wayland (display server) on kodi18.2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello There,I tried to install Kodi 18.2 on Ubuntu using the source code, and everything was fine except for the last step:
. / kodi-wayland.
The results are as follows:
Root@nas:~/kodi-build#. / kodi-wayland
Terminate after throwing an instance of'std:: runtime_error'
What (): Can not connect to Wayland display server via name
Aborted (core dumped)
I don't know what to do. Please help me. Thank you.

system: ubuntu18
kodi:18.2 (sources)
here is my crash log

https://paste.kodi.tv/iyililayaj.kodi

thanks
Are you sure that you are using Wayland on Ubuntu 18.04. Could it be possible you use X11? Ubuntu 18.04 comes with X11 by default.
(2019-06-27, 06:26)DaVu Wrote: [ -> ]Are you sure that you are using Wayland on Ubuntu 18.04. Could it be possible you use X11? Ubuntu 18.04 comes with X11 by default.

I'm sure when I installed waylan,But now,I I use X11 to reinstall,the problem is:

make[2]: Leaving directory '/root/kodi-build'
[100%] Built target kodi
make[1]: Leaving directory '/root/kodi-build'
/usr/bin/cmake -E cmake_progress_start /root/kodi-build/CMakeFiles 0
root@nas:~/kodi-build# ./kodi-x11
ERROR: Unable to create GUI. Exiting

My system is ubuntu server version 18.04,is that ok?


Thank you very much
I´m not able to help much in regard of Wayland. Probably @fritsch or @yol could help out in this case.

Did you add your user to the video-group?
(2019-06-27, 08:50)DaVu Wrote: [ -> ]I´m not able to help much in regard of Wayland. Probably @fritsch or @yol could help out in this case.

Did you add your user to the video-group?

Thank you but i used root to command it
You have issues with your basic setup. Try to get an xserver / wayland up and running first and then continue with kodi.

Running such stuff as root on a server ... is not wise at all.
I have the same issue on Linux Mint 19.2
terminate called after throwing an instance of 'std::runtime_error'
  what():  Could not connect to Wayland display server via name

I wrote down my steps as I did them on a fresh install of Linux Mint 19.2 in Virtual box because I have had many issues trying to create a debug build of kodi
Here is my steps.. What am i missing

=== LINUX MINT Prerequisites ===
// install tools if needed
from synaptic package manager choose
git

// add yourself to groups to avoid permission errors
sudo usermod -a -G input,video <username>
where <username> is gotv in our case

=== LINUX MINT Prerequisites ===
sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update


==== Prerequisite tools required to build kodi ======
from synptic package manager
1.) sudo apt-get install g++
2.) sudo apt-get install nasm
3.) sudo apt-get install yasm
3.) sudo apt-get install cmake
4.) uuid required but missing in mint
    sudo apt-get install uuid-dev
    
=== update all ===
sudo apt-get update
sudo apt-get upgrade

==== Prerequisite libraries to build kodi ======

sudo apt-get install automake autopoint bison build-essential ccache cmake cvs default-jre fp-compiler gawk gdc gettext git-core gperf libasound2-dev libass-dev libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libbluetooth-dev libbluray-dev libboost-dev libboost-thread-dev libbz2-dev libcap-dev libcdio-dev libcec-dev libcrystalhd-dev libcrystalhd3 libcwiid-dev libcwiid1 libdbus-1-dev libenca-dev libflac-dev libfontconfig-dev libfreetype6-dev libfribidi-dev libglew-dev libiso9660-dev libjpeg-dev libltdl-dev liblzo2-dev libmad0-dev libmicrohttpd-dev libmodplug-dev libmp3lame-dev libmpeg2-4-dev libmpeg3-dev libmysqlclient-dev libnfs-dev libogg-dev libpcre3-dev libplist-dev libpng-dev libpostproc-dev libpulse-dev libsamplerate-dev libsdl-dev libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libshairport-dev libsmbclient-dev libsqlite3-dev libssh-dev libssl-dev libswscale-dev libtiff-dev libtinyxml-dev libtool libudev-dev libusb-dev libva-dev  libvdpau-dev libvorbisenc2 libxml2-dev libxmu-dev libxrandr-dev libxrender-dev libxslt1-dev libxt-dev libyajl-dev mesa-utils nasm pmount python-dev python-sqlite swig unzip yasm zip zlib1g-dev libxkbcommon-dev libglu-dev \
default-libmysqlclient-dev default-jre swig \
libgif-dev libjpeg-dev libpciaccess-dev libxrandr-dev \
libgbm-dev libinput-dev libgles2-mesa-dev libwayland-client++ libwayland-client-extra++ \
libwayland-egl++ libwayland-egl-backend-dev


=== accepting oracle 1.8 jdk licence ===
?? does not seem to be needed for just a kodi build on linux


=== LINUX KODI PREREQUISITS ===


=== LINUX CHECKOUT KODI ===
=== Build is for kodi Leia on Mint 19.2 64Bit  ===
cd ~
git clone -b 18.1-Leia git://github.com/xbmc/xbmc.git kodi18.1
or
git clone -b 18.3-Leia git://github.com/xbmc/xbmc.git kodi18.3

cd ~/kodi18.3

=== LINUX BUILD KODI DEPENDENCIES ===
cd ~/kodi18.3
sudo make -C tools/depends/target/crossguid PREFIX=/usr/local
sudo make -C tools/depends/target/flatbuffers PREFIX=/usr/local
sudo make -C tools/depends/target/libfmt PREFIX=/usr/local
sudo make -C tools/depends/target/wayland-protocols PREFIX=/usr/local
sudo make -C tools/depends/target/waylandpp PREFIX=/usr/local

=== LINUX BUILD KODI ===
mkdir ~/kodi18.3-build
cd ~/kodi18.3-build
cmake ../kodi18.3 -DCORE_PLATFORM_NAME=wayland -DWAYLAND_RENDER_SYSTEM=gl -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Debug -DENABLE_INTERNAL_CROSSGUID=ON -DENABLE_INTERNAL_FLATBUFFERS=ON -DENABLE_INTERNAL_FMT=ON

// NOTE: do sudo make before doing sudo make install
sudo make
sudo make install

=== LINUX RUN KODI ===
kodi



 
(2019-06-27, 15:57)fritsch Wrote: [ -> ]You have issues with your basic setup. Try to get an xserver / wayland up and running first and then continue with kodi.

Running such stuff as root on a server ... is not wise at all.
Why do you think Mint would support wayland by default?
I thought it would because the repo had the wayland libs
anyway I abandoned that idea and got x11 to compile and run
for those interested here is the steps

=== LINUX MINT Prerequisites ===
Fresh install Linux Mint 19.2 in Virtual Box

// add yourself to groups to avoid permission errors
sudo usermod -a -G input,video <username>
where <username> is gotv so
sudo usermod -a -G input,video gotv

sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get upgrade


==== Prerequisite libraries to build kodi ======
sudo apt-get install libegl1-mesa-dev libgl1-mesa-dev automake autopoint bison build-essential ccache cmake gcc g++ cpp nasm flatbuffers gdc gperf default-jre fp-compiler gawk gettext git-core git libasound2-dev libass-dev libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libbluetooth-dev libbluray-dev libboost-dev libboost-thread-dev libbz2-dev libcap-dev libcdio-dev libcec-dev libcrystalhd-dev libcrystalhd3 libcwiid-dev libcwiid1 libdbus-1-dev libenca-dev libflac-dev libfontconfig-dev libfreetype6-dev libfribidi-dev libglew-dev libiso9660-dev libjpeg-dev libltdl-dev liblzo2-dev libmad0-dev libmicrohttpd-dev libmodplug-dev libmp3lame-dev libmpeg2-4-dev libmpeg3-dev libmysqlclient-dev libnfs-dev libogg-dev libpcre3-dev libplist-dev libpng-dev libpostproc-dev libpulse-dev libsamplerate-dev libsdl-dev libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libshairport-dev libsmbclient-dev libsqlite3-dev libssh-dev libssl-dev libswscale-dev libtiff-dev libtinyxml-dev libtool libudev-dev libusb-dev libva-dev  libvdpau-dev libvorbisenc2 libxml2-dev libxmu-dev libxrandr-dev libxrender-dev libxslt1-dev libxt-dev libyajl-dev pmount python-dev python-sqlite swig unzip yasm zip zlib1g-dev libxkbcommon-dev libglu-dev swig libgif-dev libjpeg-dev libpciaccess-dev libxrandr-dev libinput-dev uuid-dev libmariadb-dev rapidjson-dev libcurl4-openssl-dev libcurl4-openssl-dev libfstrcmp-dev libssl-dev libtag1-dev

=== LINUX CHECKOUT KODI ===
=== Build is for kodi Leia on Mint 19.2 64Bit  ===
cd ~
git clone -b 18.3-Leia git://github.com/xbmc/xbmc.git kodi18.3


=== LINUX BUILD KODI ===
mkdir ~/kodi18.3-build
cd ~/kodi18.3-build


// cannot use gles because of RenderSystemGL compile error about GL_BACK_RIGHT
cmake ../kodi18.3 -DCORE_PLATFORM_NAME=x11 -DX11_RENDER_SYSTEM=gl -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Debug -DENABLE_INTERNAL_CROSSGUID=ON -DENABLE_INTERNAL_FLATBUFFERS=ON -DENABLE_INTERNAL_FMT=ON

// NOTE: do make before doing sudo make install
make
sudo make install

=== LINUX RUN KODI ===
kodi
(2019-06-27, 15:57)fritsch Wrote: [ -> ]Try to get an xserver / wayland up and running first and then continue with kodi.
I'm also keen on the same implementation of Kodi with Wayland, yet on Debian.

However, would getting "wayland running" be a simple case of:

apt-get install weston

and/or

apt-get install wayland-protocols

I understand weston being the reference implementation of the wayland display server protocol. Which is causing confusion. As such, would kodi thus be initiated via a parameters 

$kodi --wayland 

or

$weston kodi

Oo
You have to start Weston yourself, then just run kodi(which is a wrapper script that autodetects the window system) or kodi-wayland
(2019-08-06, 08:00)wsnipex Wrote: [ -> ]You have to start Weston yourself

That is unfortunately my ongoing problem...

Though I've got a rather good idea (though confused with the abundance of reference libraries and/or function calls) on how wayland's architectural is an improvement to X11, I can't seem to get a good starting point on what packages need to be installed and the configuration thereof.

As previously mentioned, I've defaulted to installing the packages "wayland-protocols" and "weston".

Yet I'm stumped with the configuration and/or setup in relation to weston.
Debian 10 defaults to gnome on wayland for desktop installs. So there should be no need to install Weston. Note that gnome uses mutter instead of weston, but kodi should run fine with it as well