Building fails with Cmake 3.7 (Raspbian Stretch)
Hello,
I'm trying to build Commander Genius for the current Raspbian release, based on Debian Stretch, but cmake
fails when trying to detect the Python3 dev libraries:
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- cotire 1.7.10 loaded.
-- Preparing the Build-System for Commander Genius
-- Setting SYSTEM_DATA_DIR to /opt/retropie/ports/cgenius/
-- Using shared SDL Version 2 for Commander Genius
-- Using shared SDL Version 2 for Commander Genius
CMake Warning at GsKit/CMakeLists.txt:83 (FIND_PACKAGE):
By not providing "FindPython3.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Python3", but
CMake did not find one.
Could not find a package configuration file provided by "Python3" with any
of the following names:
Python3Config.cmake
python3-config.cmake
Add the installation prefix of "Python3" to CMAKE_PREFIX_PATH or set
"Python3_DIR" to a directory containing one of the above files. If
"Python3" provides a separate development package or SDK, be sure it has
been installed.
CMake Error at GsKit/CMakeLists.txt:91 (message):
Python3 not found!
In (3f9c08ca), the Python3 detection was changed and also the CMake requirement was bumped to 3.10, but later on, the CMake version required was lowered to 3.7. However, CMake 3.7 doesn't ship with a FindPython3 module.
Note that using a more recent CMake version (3.12), the build configuration is ok, but FindPython3 is present in the CMake built-in modules. However, Debian Stretch (current stable) still ships with 3.7, which ships only a FindPythongLibs module.
Would it be possible to make the build work also with Debian Strech ?
Thank you.