Linux Git build Linux Python3 not found
#1
I'm trying to build from git-20200909 on Linux.
I have theses basic dependencies installed:

crossguid, flatbuffers, libfmt, libspdlog, wayland-protocols, wayland

Issuing this command yields an error that Python3 (>= 3.5) is not found. I have Python-3.7.2 library provided by my distro.
Code:
$ sudo cmake /tmp/kodi-git20200909 -DCMAKE_INSTALL_PREFIX=/usr -DX11_RENDER_SYSTEM=gl -DCMAKE_BUILD_TYPE=Release -DENABLE_MDNS=OFF
 
Code:
-- 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 error spuriously related to this:
Code:
-- include/linux/udmabuf.h not found
-- include/linux/dma-heap.h not found
-- include/linux/dma-buf.h not found

These Linux headers are anything but in the include/linux directory. They are scattered around in include/, for example include/uapi/linux. Building against Linux 5.4.60.
Reply
#2
Likely missing dev package. python3-dev(el) on debian/redhat derivates.
Reply
#3
(2020-09-09, 19:25)spiff Wrote: Likely missing dev package. python3-dev(el) on debian/redhat derivates.

Could you give me a filename in this package? I'll check to see if I can find it on my system. If i'm able to find it that means that I also have the 'dev' part of the package installed. I think I might already do.
Reply
#4
/usr/bin/python3-config <- that one is provided by python3-dev which installs plenty of dependencies. Please check the manual of your distribution.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#5
(2020-09-09, 21:13)fritsch Wrote: /usr/bin/python3-config <- that one is provided by python3-dev which installs plenty of dependencies. Please check the manual of your distribution.

Thanks, I already have this file installed. All the corresponding dev files are clearly installed.
Reply
#6
Jep - you are right
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply

Logout Mark Read Team Forum Stats Members Help
Git build Linux Python3 not found0