Description of problem: I cloned the Blender source code and used sudo dnf build-dep blender to install all the required packages to build Blender as it has been released as version 3.0. However when I ran make to build it it failed with this error: [kristoffer@ip249-2-1 blender]$ make Configuring Blender in "/home/kristoffer/Desktop/build_linux" ... CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:218 (message): Could NOT find PythonLibsUnix (missing: PYTHON_LIBRARY PYTHON_LIBPATH PYTHON_INCLUDE_DIR PYTHON_INCLUDE_CONFIG_DIR) Call Stack (most recent call first): /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:582 (_FPHSA_FAILURE_MESSAGE) build_files/cmake/Modules/FindPythonLibsUnix.cmake:176 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) build_files/cmake/platform/platform_unix.cmake:113 (find_package) CMakeLists.txt:982 (include) -- Configuring incomplete, errors occurred! See also "/home/kristoffer/Desktop/build_linux/CMakeFiles/CMakeOutput.log". See also "/home/kristoffer/Desktop/build_linux/CMakeFiles/CMakeError.log". make: *** [GNUmakefile:344: all] Error 1 Version-Release number of selected component (if applicable): 4.6.0 How reproducible: All the time. Steps to Reproduce: 1. Open a terminal window. 2. Login as root OR by using sudo (make sure that your user is a part of the wheel user group) followed by executing dnf build-dep blender -y 3. Clone the Blender source code. 4. Enter the main directory for the source code. 5. Run make. 6. See the error mentioned above.
Created attachment 13018 [details] CMakeError output
CC: (none) => lovaren
Usually when you raise a bug like this, it turns out that you are doing something not quite right. I cannot judge this case, so am leaving it with BugSquad for wider visibility. CC'ing Neal for DNF, although it is often tmb who explains things.
Source RPM: dnf => dnf-4.6.0-1.mga8.src.rpmCC: (none) => lewyssmith, ngompa13
Created attachment 13052 [details] dnf builddep output So aside from a missing build dependency in the spec on "make" (which I had to install separately after using "dnf builddep"), it looks like everything is there. I see lib64python3-devel installed, which provides all the things the Blender CMakeLists should be able to detect and use for building Blender. However, it doesn't work because the Blender CMake scripts are looking for Python 3.9 or higher (Mageia 8 only has Python 3.8), and when I try to force it, it fails saying it needs Python 3.9. For example: [root@aef0fecb929c blender-3.0.0]# cmake -B ../blender-build -S . -DPYTHON_VERSION=3.8 -DWITH_PYTHON_INSTALL=OFF -DWITH_PYTHON_INSTALL_REQUESTS=OFF -- WITH_DRACO requires WITH_PYTHON_INSTALL to be ON, disabling WITH_DRACO for now CMake Error at CMakeLists.txt:881 (message): At least Python 3.9 is required to build, but found Python 3.8 -- Configuring incomplete, errors occurred! See also "/blender-build/CMakeFiles/CMakeOutput.log". See also "/blender-build/CMakeFiles/CMakeError.log".
Thanks for having looked into this, Neal. Closing as invalid
CC: (none) => marja11Resolution: (none) => INVALIDStatus: NEW => RESOLVED