cmake doesn't find python3-dev library

Bug #1323559 reported by Petr on 2014-05-27
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cmake (Ubuntu)
Nominated for Utopic by Rohan Garg

Bug Description

If I install python3-dev only, and use it in find_library statement of cmake, it will not find any pythonlibs at all. If I install python-dev (which links to python2.7) cmake will see python2.7 libs, but it still will not be able to find python3 libs, even if I set required version to 3.0.

this might be related to

Petr (benapetr) wrote :

Note, this problem happens only on ubuntu (in my case trusty) in debian it works just fine

description: updated
information type: Public → Public Security
information type: Public Security → Public
Job Noorman (jobnoorman) wrote :

The problem seems to be that Ubuntu 14.04 installs Python 3.4 by default and the installed CMake version only searches up to Python 3.3. A workaround is to add set(Python_ADDITIONAL_VERSIONS 3.4) before the find_package statement.

CMake 3.0 does search up to Python 3.4.

I think this should be fixed somehow in Ubuntu since there is a inconsistency here. So either CMake should be upgraded or FindPythonLibs.cmake should be patched.

Job Noorman (jobnoorman) wrote :
Rohan Garg (rohangarg) wrote :

Setting to confirmed as this is broken in Utopic

Changed in cmake (Ubuntu):
status: New → Confirmed
milestone: none → ubuntu-14.10
Rohan Garg (rohangarg) wrote :

should be fixed with the latest CMake upload

Changed in cmake (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers