[C++-sig] Linking with Python3 Libs

Dong Ta dongta.hds at gmail.com
Wed Mar 25 01:21:02 CET 2015


Hi,

I'm trying to figure out how to build Python modules using Boost Python
against Python3; and I'm currently stuck at getting cmake to find Python 3.

I have already installed Python3 via brew install python3; but cmake still
can't find PythonLibs 3. What am I missing here?

Here's the header of my *CMakeLists.txt *

cmake_minimum_required(VERSION 3.0)

find_package(PythonLibs 3 REQUIRED)

and here's the error message

Could NOT find PythonLibs: Found unsuitable version "2.7.6", but required

  is at least "3" (found /usr/lib/libpython2.7.dylib)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20150324/ae64c56b/attachment.html>


More information about the Cplusplus-sig mailing list