Python und python3 installiert sind in OS X Yosemite über Homebrew finden, aber cmake nicht PythonLibs 3, nur 2 zu finden:OS X cmake nicht PythonLibs 3.4
CMakeLists.txt:
set(Python_ADDITIONAL_VERSIONS 3.4)
FIND_PACKAGE(PythonInterp REQUIRED)
FIND_PACKAGE(PythonLibs 3.4 REQUIRED)
get:
-- Found PythonInterp: /usr/local/bin/python3.4 (found suitable version "3.4.3", minimum required is "3.4")
-- Found PythonLibs: /usr/lib/libpython3.4.dylib (found version "2.7.6"
CMakeLi sts.txt:
set(Python_ADDITIONAL_VERSIONS 3.4)
FIND_PACKAGE(PythonInterp 3.4 REQUIRED)
FIND_PACKAGE(PythonLibs 3.4 REQUIRED)
get:
Could NOT find PythonLibs: Found unsuitable version "2.7.6", but required
is at least "3.4" (found PYTHON_LIBRARY-NOTFOUND)
Dann habe ich diese zusätzliche Listen cmake:
INCLUDE_DIRECTORIES(/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib)
INCLUDE_DIRECTORIES(/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/include/python3.4m)
und sogar kopiert, dass Verzeichnisse /usr/lib
, und dann erhalten:
Could NOT find PythonLibs: Found unsuitable version "2.7.6", but required
is at least "3.4" (found /usr/lib/libpython3.4.dylib)
das sieht komisch aus.
gleiche Problem mit cmake auf Windows, speziell ist diese Linie eine dumme Fehlermeldung: '(gefunden geeignete Version„3.4 .3 ", minimal erforderlich ist" 3.4 ")' – dashesy