Building Kodi 18.x in Slackware 14.2
by slackerz from LinuxQuestions.org on (#57YMT)
I'm trying to build from git-20200909 on Linux.
I have theses basic dependencies installed:
Code:crossguid, flatbuffers, libfmt, libspdlog, wayland-protocols, waylandIssuing this command yields an error that Python3 (>= 3.5) is not found. I have Python-3.7.2 installed.
Code:$ sudo cmake /tmp/kodi-git20200909 -DCMAKE_INSTALL_PREFIX=/usr -DX11_RENDER_SYSTEM=gl -DCMAKE_BUILD_TYPE=Release -DENABLE_MDNS=OFFCode:-- Source directory: /tmp/kodi-git20200909
-- Build directory: /srv/ssh/server/hd0/kbuild/kodi-build
-- Generator: Single-configuration: Release (Unix Makefiles)
-- CMake Version: 3.5.2
-- System type: Linux
-- Linker: GNU gold
-- include/linux/udmabuf.h not found
-- include/linux/dma-heap.h not found
-- include/linux/dma-buf.h not found
-- memfd_create() not found
-- Core system type: linux
-- Platform: X11
-- CPU: x86_64, ARCH: x86_64-linux
-- Cross-Compiling: FALSE
-- Execute build artefacts on host: TRUE
-- Depends based build:
-- statx() not found
-- Checking to see if CXX compiler accepts flag -msse
-- Checking to see if CXX compiler accepts flag -msse - yes
-- Checking to see if CXX compiler accepts flag -msse2
-- Checking to see if CXX compiler accepts flag -msse2 - yes
-- Checking to see if CXX compiler accepts flag -msse3
-- Checking to see if CXX compiler accepts flag -msse3 - yes
-- Checking to see if CXX compiler accepts flag -mssse3
-- Checking to see if CXX compiler accepts flag -mssse3 - yes
-- Checking to see if CXX compiler accepts flag -msse4.1
-- Checking to see if CXX compiler accepts flag -msse4.1 - yes
-- Checking to see if CXX compiler accepts flag -msse4.2
-- Checking to see if CXX compiler accepts flag -msse4.2 - yes
-- Checking to see if CXX compiler accepts flag -mavx
-- Checking to see if CXX compiler accepts flag -mavx - yes
-- Checking to see if CXX compiler accepts flag -mavx2
-- Checking to see if CXX compiler accepts flag -mavx2 - yes
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES) (found suitable
version "3.7.2", minimum required is "3.5")
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.5/Modules/FindPythonLibs.cmake:265 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/modules/FindPython.cmake:28 (find_package)
cmake/scripts/common/Macros.cmake:346 (find_package)
cmake/scripts/common/Macros.cmake:395 (find_package_with_ver)
CMakeLists.txt:172 (core_optional_dep)Is this spuriously related to these errors (?):
Code:-- include/linux/udmabuf.h not found
-- include/linux/dma-heap.h not found
-- include/linux/dma-buf.h not foundThese Linux headers are anything but in the include/linux directory. They are scattered around in include/, for example udmabuf.h resides in include/uapi/linux. I'm building against Linux 5.4.60.


I have theses basic dependencies installed:
Code:crossguid, flatbuffers, libfmt, libspdlog, wayland-protocols, waylandIssuing this command yields an error that Python3 (>= 3.5) is not found. I have Python-3.7.2 installed.
Code:$ sudo cmake /tmp/kodi-git20200909 -DCMAKE_INSTALL_PREFIX=/usr -DX11_RENDER_SYSTEM=gl -DCMAKE_BUILD_TYPE=Release -DENABLE_MDNS=OFFCode:-- Source directory: /tmp/kodi-git20200909
-- Build directory: /srv/ssh/server/hd0/kbuild/kodi-build
-- Generator: Single-configuration: Release (Unix Makefiles)
-- CMake Version: 3.5.2
-- System type: Linux
-- Linker: GNU gold
-- include/linux/udmabuf.h not found
-- include/linux/dma-heap.h not found
-- include/linux/dma-buf.h not found
-- memfd_create() not found
-- Core system type: linux
-- Platform: X11
-- CPU: x86_64, ARCH: x86_64-linux
-- Cross-Compiling: FALSE
-- Execute build artefacts on host: TRUE
-- Depends based build:
-- statx() not found
-- Checking to see if CXX compiler accepts flag -msse
-- Checking to see if CXX compiler accepts flag -msse - yes
-- Checking to see if CXX compiler accepts flag -msse2
-- Checking to see if CXX compiler accepts flag -msse2 - yes
-- Checking to see if CXX compiler accepts flag -msse3
-- Checking to see if CXX compiler accepts flag -msse3 - yes
-- Checking to see if CXX compiler accepts flag -mssse3
-- Checking to see if CXX compiler accepts flag -mssse3 - yes
-- Checking to see if CXX compiler accepts flag -msse4.1
-- Checking to see if CXX compiler accepts flag -msse4.1 - yes
-- Checking to see if CXX compiler accepts flag -msse4.2
-- Checking to see if CXX compiler accepts flag -msse4.2 - yes
-- Checking to see if CXX compiler accepts flag -mavx
-- Checking to see if CXX compiler accepts flag -mavx - yes
-- Checking to see if CXX compiler accepts flag -mavx2
-- Checking to see if CXX compiler accepts flag -mavx2 - yes
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES) (found suitable
version "3.7.2", minimum required is "3.5")
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.5/Modules/FindPythonLibs.cmake:265 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/modules/FindPython.cmake:28 (find_package)
cmake/scripts/common/Macros.cmake:346 (find_package)
cmake/scripts/common/Macros.cmake:395 (find_package_with_ver)
CMakeLists.txt:172 (core_optional_dep)Is this spuriously related to these errors (?):
Code:-- include/linux/udmabuf.h not found
-- include/linux/dma-heap.h not found
-- include/linux/dma-buf.h not foundThese Linux headers are anything but in the include/linux directory. They are scattered around in include/, for example udmabuf.h resides in include/uapi/linux. I'm building against Linux 5.4.60.