REM Set up Microsoft Visual Studio 2019, where is amd64, x86, etc.ĬALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 Purely for experimental/"at your own risk" use of course :)ĭownload for DLLs (also contains diff file showing the modifications needed to the original source files): ĮDIT: Here is the batch file I used to setup my environment for building: off With some initial guidance from (thanks!), I have managed to create Windows 7-compatible DLLs for Qt 6.3.0 (QtCore, QtGui, qwindows). They are a bit rough around the edges so only use them on a Windows 7 PC, on a Windows 10 PC use the real stuff. So the Xmas gift is a zip with the 3 patched dlls if you're feeling adventurous. However since I only work with widgets this problem has low priority.) That plugin dll also needs some patching for Windows7. (I also tested a qtquick program but got the error "Cannot load library C:\Qt\6.2.2\msvc2019_64\qml\QtQuick\qtquickplugin.dll: file not found" Then if you replace Qt6Core.dll, Qt6Gui.dll and qwindows.dll in C:\Qt\6.2.2\msvc2019_64 compiling and building widgets based programs seems to work fine. So I installed MSVC 2019 64-bit 6.2.2 on my Windows 7, late in the installation process it stops with a qmake error (because qmake runs on an unpatched qt6core.dll) but if you click Ignore 2 times it will install anyway. Next step was to be able to build and run Qt 6.2.2 apps on Windows 7. When I replaced both Qt Creator's dlls in C:\Qt\Tools\QtCreator\bin and the qwindows.dll in C:\Qt\Tools\QtCreator\bin\plugins.\platforms, voila! It started just fine: Some hacking/backporting later I had new versions of them. Turns on there are 3 showstoppers: qt6core.dll, qt6gui.dll and the platforms plugin qwindows.dll. Today I spent some time debugging how much trouble it would be to make Qt 6.2.2 run on Windows 7. Why cannot Qt Creator issue the same kind of warning and install anyway, instead of exiting with an 0xC0000005 error? Because it is based on Qt 6.2.2 which by design will not run on Windows 7 :-( You can still install it but." Anyway it seems to work nicely on my Windows 7 PC. Recently I installed Microsoft's new Visual Studio 2022 on my Windows 7 PC, when you install it you get a warning "We haven't designed this version of Visual Studio to work with this operating system. Hi, Christmas is soon upon us, I thought I should bring a gift to those poor souls (like me) that are stuck/prefer working with Qt on Windows 7 instead of 10 or 11.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |