[PyQt] Building PyQt5 on Windows
phil at riverbankcomputing.com
Sun Jun 4 13:42:45 BST 2017
On 4 Jun 2017, at 12:57 pm, Wallboy <wallboy at wallboy.ca> wrote:
> No, I thought maybe the DLLs were different then the ones Qt provides. What are those DLL files in the /release directories for then if we just use Qt's already built DLLs?
Those are the Python extension modules.
> I have added Qt's bin folder to my PATH env and my programs seem to be working. However in my IDE (PyCharm), I am still getting Unresolved reference warnings on all my PyQt5.* imports. Though PyQt5 is working even with the warnings. I'm not sure if this is a virtualenv / PyCharm quirk? I do have the correct interpreter selected. Any ideas?
> Also one other question. What would happen if I tried to build PyQt5 against the newest 5.9 Qt binaries? The entire reason I'm doing all this for a custom build, is that I need to disable WebRTC in QtWebEngine (this is now doable as of 5.9 using -no-webrtc in configure).
PyQt5 will build against Qt v5.9 as expected.
> Would it be possible to build just the WebEngine module for 5.9 and overwrite the QWeb*.dll files with the 5.9 ones? (Though I'm guessing -no-webrtc only affects the chromium QtWebEngineProcess.exe binary) Or is this just asking for trouble...
> I'm not sure how the QWeb*.pyd and QWeb*.dll files work with one another. I'm guessing it just glues together the python function names to the actual C++ function names? If that's the case, and I use a newer DLL file, then I just wouldn't have access to any new functions that might have got added correct? Though I'm sure it's not that simple...
More information about the PyQt