Kodi Leia configure error on Fedora 34
#1
I'm trying to build kodi Leia on fedora and I get a cmake error at configure:
Code:
CMake Error at cmake/platform/linux/wayland.cmake:13 (message):
  You need to decide whether you want to use GL- or GLES-based rendering in
  combination with the Wayland windowing system.  Please set
  WAYLAND_RENDER_SYSTEM to either "gl" or "gles".  For normal desktop
  systems, you will usually want to use "gl".
Call Stack (most recent call first):
  cmake/scripts/common/Platform.cmake:28 (include)
  CMakeLists.txt:32 (include)
I tried to add it to cmake command like this:
Code:
cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME=wayland -DAPP_RENDER_SYSTEM=gl -WAYLAND_RENDER_SYSTEM=gl
but it didn't make any difference. Any idea how to fix this?
Reply
#2
Quote:
Code:
cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME=wayland -DWAYLAND_RENDER_SYSTEM=gl
Reply
#3
This works, thank you very much.
Reply
#4
Now I'm getting an error for ffmpeg
EDIT:
I thought that I had ffmpeg installed but it wasn't. After I installed and rerun cmake I get error on dvdnav
Quote:gmake[4]: Leaving directory '/home/useful/build/kodi-leia-build/kodi-build/build/libdvd/src/dvdnav-build'
gmake[3]: Leaving directory '/home/useful/build/kodi-leia-build/kodi-build/build/libdvd/src/dvdnav-build'
cd /home/useful/build/kodi-leia-build/kodi-build/build/libdvd/src/dvdnav-build && /usr/bin/cmake -E touch /home/useful/build/kodi-leia-build/kodi-build/build/libdvd/src/dvdnav-stamp/dvdnav-install
[  5%] Completed 'dvdnav'
/usr/bin/cmake -E make_directory /home/useful/build/kodi-leia-build/kodi-build/CMakeFiles
/usr/bin/cmake -E touch /home/useful/build/kodi-leia-build/kodi-build/CMakeFiles/dvdnav-complete
/usr/bin/cmake -E touch /home/useful/build/kodi-leia-build/kodi-build/build/libdvd/src/dvdnav-stamp/dvdnav-done
gmake[2]: Leaving directory '/home/useful/build/kodi-leia-build/kodi-build'
[  5%] Built target dvdnav
gmake[1]: Leaving directory '/home/useful/build/kodi-leia-build/kodi-build'
gmake: *** [Makefile:146: all] Error 2
[fedorazax@fedora kodi-build]$ sudo dnf install dvdnav
Last metadata expiration check: 0:02:20 ago on Τρι 10 Αυγ 2021 09:45:24 πμ EEST.
No match for argument: dvdnav
Error: Unable to find a match: dvdnav
EDIT2:
fixed after install libdvdnav-devel, but again new error comes up.
Reply
#5
@dancaer69 provide exact configure line you are using and full make output via Kodi Paste Site or any other paste site.
Kodi build system pulls in it's own patched dvd* libs, I think the error you are getting is not due to dvdnav but due to something else that happened earlier,
build process continuing for a while after an error is normal for multijob builds, thats why full output is needed.
Reply
#6
The configure line I use is exactly the one you suggested above. The complete output is this:
https://paste.kodi.tv/eruqeqapet
And the full cmake output:
https://paste.kodi.tv/macaqeroba.kodi
Reply
#7
doesn't look like a clean cmake run. Delete CMakeCache.txt and run again.
Also, you need python 2.7, it won't work with anything newer.
Reply
#8
I did it but I think I have the same error, here is the new cmake output:
https://paste.kodi.tv/ezikoloqov.kodi
P.S:
yes I have python 2.7 installed
Reply
#9
(2021-08-11, 13:28)dancaer69 Wrote: yes I have python 2.7 installed

But do you have python2.7 headers installed?
It should be python2-devel or something like that in fedora, this package may have been removed from the distro due to python 2.x being officially dead and unsupported, ask on your distro forums.

It's building against python3 headers hence the error; PyString_FromStringAndSize is a python2 function not present in python3.
Reply
#10
No, I haven't. I just installed fedora for first time, and I installed what was available for python2. There is no python2-devel package and I seems that is removed, according to this:
https://fedoraproject.org/wiki/Changes/RetirePython2
Hence I don't think that is possible to build leia in fedora.
https://fedoraproject.org/wiki/Changes/RetirePython2
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi Leia configure error on Fedora 340