Hi All,
Getting QtWebEngineWidgets packaged properly is complicated and people, myself
included, seem to still be having issues with it.
In my case it seems that the issue arises because I'm using versions of Qt5 and
PyQt5 that I built from source and I have got it to work as described here:
https://github.com/pyinstaller/pyinstaller/issues/2276#issuecomment-635781511
While looking into this I notice that many of the Qt libraries seem to be
duplicated.
The Qt dylibs that my app is linked to are in
myapp.app/Contents/MacOS. E.g.
myapp.app/Contents/MacOS/QtCore. The PyQt libs in
myapp.app/Contents/MacOS/PyQt5/*.so are also linked with those dylibs e.g.
$otool -L PyQt5/QtCore.so
PyQt5/QtCore.so:
@loader_path/../QtCore (compatibility version 5.12.0, current version 5.12.7)
QtWebEngineProcess.aps is located at
PyQt5/Qt/lib/QtWebEngineCore.framework/Versions/5/Helpers/QtWebEngineProcess.app
but the way it's set up it will only work if it has its own private version of
the Qt libraries:
otool -L
PyQt5/Qt/lib/QtWebEngineCore.framework/Versions/5/Helpers/QtWebEngineProcess.app/Contents/MacOS/QtWebEngineProcess
PyQt5/Qt/lib/QtWebEngineCore.framework/Versions/5/Helpers/QtWebEngineProcess.app/Contents/MacOS/QtWebEngineProcess:
@rpath/QtGui.framework/Versions/5/QtGui (compatibility version 5.12.0, current
version 5.12.7)
@rpath/QtCore.framework/Versions/5/QtCore (compatibility version 5.12.0,
current version 5.12.7)
@rpath/QtWebEngineCore.framework/Versions/5/QtWebEngineCore (compatibility
version 5.12.0, current version 5.12.7)
@rpath/QtPositioning.framework/Versions/5/QtPositioning (compatibility version
5.12.0, current version 5.12.7)
@rpath/QtQuick.framework/Versions/5/QtQuick (compatibility version 5.12.0,
current version 5.12.7)
@rpath/QtWebChannel.framework/Versions/5/QtWebChannel (compatibility version
5.12.0, current version 5.12.7)
@rpath/QtQml.framework/Versions/5/QtQml (compatibility version 5.12.0, current
version 5.12.7)
@rpath/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.12.0,
current version 5.12.7)
What is the reason for this?
If I change it to use the main copy of the Qt libraries will that break anything?
Glenn