mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-30 17:03:31 +08:00
327b600041
Building kodi with cmake version 3.22.3 provided by buildroot is broken -- Found Python3: /home/buildroot/br6/output/per-package/kodi/host/x86_ 64-buildroot-linux-gnu/sysroot/usr/include/python3.11 (found suitable exact version "3.11.4") found components: Development Development. Module Development.Embed -- Could NOT find Python3 (missing: Interpreter) (Required is exact version "3.11") Reason given by package: Interpreter: Cannot run the interpreter "/home/buildroot/br6/ output/per-package/kodi/host/x86_64-buildroot-linux-gnu/sysroot/ usr/bin/python3" CMake Error at cmake/scripts/common/Macros.cmake:432 (message): PYTHON enabled but not found Call Stack (most recent call first): CMakeLists.txt:214 (core_optional_dep) using this defconfig BR2_x86_64=y BR2_TOOLCHAIN_BUILDROOT_CXX=y BR2_FORCE_HOST_BUILD=y BR2_PER_PACKAGE_DIRECTORIES=y BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y BR2_PACKAGE_KODI=y BR2_PACKAGE_MESA3D=y BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS=y BR2_PACKAGE_MESA3D_OPENGL_EGL=y BR2_PACKAGE_MESA3D_OPENGL_ES=y BR2_PACKAGE_PYTHON3=y BR2_PACKAGE_PYTHON3_PY_ONLY=y BR2_PACKAGE_HOST_CMAKE=y due to "BR2_FORCE_HOST_BUILD=y". The cmake version provided by my distro is 3.25.1 which works fine. Adding "CMAKE_FIND_DEBUG_MODE TRUE" to the "find_package(Python3 [...]" call in Kodi's cmake/modules/FindPython.cmake and comparing the logfile of both cmake versions shows that 3.25.1 adds CMAKE_FIND_USE_INSTALL_PREFIX: 1 while searching for python3. This option was introduced in cmake 3.24: https://cmake.org/cmake/help/latest/variable/CMAKE_FIND_USE_INSTALL_PREFIX.html After introducing this fix it turns out that 0002-cmake-modules-fix-python-detection.patch is not needed anymore so we remove this patch. Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> |
||
---|---|---|
arch | ||
board | ||
boot | ||
configs | ||
docs | ||
fs | ||
linux | ||
package | ||
support | ||
system | ||
toolchain | ||
utils | ||
.checkpackageignore | ||
.clang-format | ||
.defconfig | ||
.flake8 | ||
.gitignore | ||
.gitlab-ci.yml | ||
.shellcheckrc | ||
CHANGES | ||
Config.in | ||
Config.in.legacy | ||
COPYING | ||
DEVELOPERS | ||
Makefile | ||
Makefile.legacy | ||
README |
Buildroot is a simple, efficient and easy-to-use tool to generate embedded Linux systems through cross-compilation. The documentation can be found in docs/manual. You can generate a text document with 'make manual-text' and read output/docs/manual/manual.text. Online documentation can be found at http://buildroot.org/docs.html To build and use the buildroot stuff, do the following: 1) run 'make menuconfig' 2) select the target architecture and the packages you wish to compile 3) run 'make' 4) wait while it compiles 5) find the kernel, bootloader, root filesystem, etc. in output/images You do not need to be root to build or run buildroot. Have fun! Buildroot comes with a basic configuration for a number of boards. Run 'make list-defconfigs' to view the list of provided configurations. Please feed suggestions, bug reports, insults, and bribes back to the buildroot mailing list: buildroot@buildroot.org You can also find us on #buildroot on OFTC IRC. If you would like to contribute patches, please read https://buildroot.org/manual.html#submitting-patches