I've upgraded to 24.04 at last (actually I upgraded, the snapd daemon got stuck midway, after an idle hour I restarted, got the linux equivalent of BSOD, and went for a fresh install) and I can compile from source again. Yay!
But I'm having trouble setting the environment. I've installed what I expect to be all the prerequisites, but I'm not sure.
I've already updated my fork and cloned it, but I can't convince cmake to use python3.12 (the one installed in my system) when it is asking for version>=3.9
The two calls to python3 -c etc. give me /usr/include/python3.12 and /usr/lib/x86_64-linux-gnu respectively.
I've browsed stackexchange and some other pages (that's how I got the -DPython3_EXECUTABLE, -DPYTHON_INCLUDE_DIR (or ..._DIRS, tried both), and -DPYTHONG_LIBRARY flags.
Can anyone help me?
But I'm having trouble setting the environment. I've installed what I expect to be all the prerequisites, but I'm not sure.
I've already updated my fork and cloned it, but I can't convince cmake to use python3.12 (the one installed in my system) when it is asking for version>=3.9
Code:
slowgame-build$ cmake ../freeorion \ -DPython3_EXECUTABLE=/usr/bin/python3 \ -DPYTHON_INCLUDE_DIR=$(python3 -c "import sysconfig; print(sysconfig.get_path('include'))") \ -DPYTHON_LIBRARY=$(python3 -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")-- Build type CMAKE_BUILD_TYPE set to Release-- Use CCache for Unix Makefiles called with: ccache program CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Development Development.Module Development.Embed) (found suitable version "3.12.3", minimum required is "3.9")Call Stack (most recent call first): /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.28/Modules/FindPython/Support.cmake:3862 (find_package_handle_standard_args) /usr/share/cmake-3.28/Modules/FindPython3.cmake:545 (include) CMakeLists.txt:272 (find_package)-- Configuring incomplete, errors occurred!
I've browsed stackexchange and some other pages (that's how I got the -DPython3_EXECUTABLE, -DPYTHON_INCLUDE_DIR (or ..._DIRS, tried both), and -DPYTHONG_LIBRARY flags.
Can anyone help me?
Statistics: Posted by Oberlus — Wed Jul 31, 2024 9:16 am