Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.8.0 Beta1
-
None
-
Windows 11 23H2.
-
3b789ed01 (dev), 24f26ca9b (6.8), 4fc3516d6 (6.7)
Description
- Use the Online Installer to install Qt 6.8.0 beta1 for MinGW and MinGW 13.1.0 (to work around
QTBUG-126587). - Download the attached project files.
It's a simple Qt Widgets Application generated using Qt Creator's wizard. - Open a Windows command prompt (cmd.exe).
- Get a Qt environment:
D:\tmp>D:\Qt\6.8.0\mingw_64\bin\qtenv2.bat Setting up environment for Qt usage...
- Go to some empty directory where you'd like to build:
D:\Qt\6.8.0\mingw_64>cd \tmp\build
- Add the right MinGW to PATH:
D:\tmp\build>set PATH=D:\Qt\Tools\mingw1310_64\bin;%PATH%
This works around
QTBUG-126587 - Build the project:
D:\tmp\build>qmake D:\tmp\demo\demo.pro && mingw32-make
- Try starting the built application from the command prompt.
D:\tmp\build>release\demo.exe
This works. Fine.
- Quit the built application.
- Open the Windows Explorer (not from the command prompt) and navigate to the build directory.
- Double-click the built .exe file.
The application cannot start because it cannot find needed libraries. As expected. - Back on the developer prompt we prepared in steps 1 to 6, run windeployqt to provide the needed libraries:
D:\tmp\build>cd release D:\tmp\build\release>windeployqt demo.exe
- In the Windows Explorer, double-click the built .exe file.
Now it has the Qt libraries but still it cannot find gcc's libraries libgcc_s_seh-1.dll and libstdc++-6.dll.
I expected that windeployqt provided those.
Attachments
For Gerrit Dashboard: QTBUG-126775 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
573521,2 | windeployqt: Fix typo in mkspec detection | dev | qt/qtbase | Status: MERGED | +2 | 0 |
574198,2 | windeployqt: Fix typo in mkspec detection | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |
574394,2 | windeployqt: Fix typo in mkspec detection | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |