Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake error at installation #11

Open
RealPolitiX opened this issue Mar 15, 2021 · 2 comments
Open

CMake error at installation #11

RealPolitiX opened this issue Mar 15, 2021 · 2 comments

Comments

@RealPolitiX
Copy link

I got an error trying to compile with cmake on Ubuntu 18.04 (Python==3.7.3)

CMake Error at CMakeLists.txt:80 (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.


-- Configuring incomplete, errors occurred!
See also "/mnt/pcshare/users/rpx/gitpod/fastpli/build/CMakeFiles/CMakeOutput.log".
Makefile:36: recipe for target 'build/Makefile' failed
make: *** [build/Makefile] Error 1
@fmatuschke
Copy link
Contributor

Hi, I noticed this error as well. CMake depricated the FindPythonInterp and FindPythonLibs files to the newer method FindPython3 in the version 3.12.
The CMake version in Ubuntu 18.04 LTS is 3.10.2 to old.
However since I want at least to support Ubuntu 18.04 LTS and Python 3.6 I switched to the old methods in 8969658.
Interestingly this error was not catched by the CI.

@fmatuschke
Copy link
Contributor

I will leave this Issue open until I found a nice solution which supports both CMake versions. Additionally I noticed in the past, there can be some Issues with multiple installed Python versions. That was also the reason, why I switched to the new method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants