<div dir="ltr"><div>I'm running a simple PyQt5 QML application[0] on a test Windows 7 32-bit VM with only Python 3.6.5 and PyQt5==5.10.1 installed but I'm getting an error about missing DLLs.</div><div><br></div><div>The full output is attached but the main part is <br></div><div><br></div><div>QWindowsEGLStaticContext::create: Could not initialize EGL display: error 0x3001<br>QWindowsEGLStaticContext::create: When using ANGLE, check if d3dcompiler_4x.dll is available<br>Failed to load opengl32sw.dll (The specified module could not be found.)<br>Failed to load and resolve WGL/OpenGL functions</div><div><br></div><div><br></div><div>When I build PyQt5 from source and add the Qt bin directory to my PATH there are two additional files that are available.</div><div><br></div><div>d3dcompiler_47.dll and opengl32sw.dll</div><div><br></div><div>If they are not available the application fails with the same message I get when PyQt5 was installed from PyPI using the wheel.<br></div><div><br></div><div>Should these two files be included in the PyQt5 wheels for Windows?</div><div><br></div><div>In the Qt Windows deployment docs[1] these two files are included in the table of required files when using
"dynamic OpenGL".</div><div><br></div><div>
- d3dcompiler_XX.dll is the DirectX shader compiler[2], "where XX is the version number that ANGLE (libGLESv2) was linked against."</div><div>- opengl32sw.dll is for software rendering<br></div><div><br></div><div>0: <a href="https://github.com/siecje/qml-testing">https://github.com/siecje/qml-testing</a><br></div><div>1: <a href="http://doc.qt.io/qt-5/windows-deployment.html#creating-the-application-package">http://doc.qt.io/qt-5/windows-deployment.html#creating-the-application-package</a></div><div>2: <a href="https://github.com/Microsoft/DirectXShaderCompiler">https://github.com/Microsoft/DirectXShaderCompiler</a><br></div></div>