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.