Open iltommi opened 8 years ago
Why did you set PYTHON_LIBRARY
(and especially why to a directory)? The warnings even tell you that this seems to be wrong.
Try adding your python prefix to CMAKE_PREFIX_PATH
like you did with qt.
Ohhh my bad, I copy/pasted a command I tryed... I've update the text above with the current error and cmake config. Sorry
The second sentence still stands.
Cool that the buggy pyport.h
incidentally works with GCC 5.
Actually I think this is (at the very least partlially) my fault. I forgot all about Python 2.x when implementing PQI.get_data(). The FileNotFoundError exception was introduced as subclass of OSError with the Python 3k exception hierarchy restruturing. This problem needs to be fixed by raising a OSError with ENOENT manually on 2.x. If I get around to it, I'll fix up a patch tonight
P.S.: People should just start using Python 3 :(
About the other issue (having to use g++): XCode seems to dislike how PythonQt deals with stl things it seems. I'm not sure how to fix that without breaking current code relying on stl integration. You might want to try #5.
EDIT: Lastly, about using a custom python istall: See https://cmake.org/cmake/help/v3.0/module/FindPythonLibs.html
The Importer.get_data issue is fixed by 313404399e5d564aac230c108bcc1cad56dab16e
Hi, I'm trying to use cmake to compile python qt on osx wth qt with qt installed via homebrew:
I cmaked with
but get this error
Which looks like a missing reference to python3 error.
What did I miss? So, my questions are:
python-config --prefix /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7
Thanks
p.s. I have to change the default compiler to g++5 otherwise I get these errors HERE