cmake doesn't find python3-dev library

Bug #1323559 reported by Petr
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cmake (Ubuntu)
Fix Released
Undecided
Unassigned
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 http://www.cmake.org/Bug/print_bug_page.php?bug_id=13794

Revision history for this message
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
Revision history for this message
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.

Revision history for this message
Job Noorman (jobnoorman) wrote :
Revision history for this message
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
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.