Unsolved Static compilation. Qt 5.12.3, Win10, MinGW.
-
Hi gentelmen,
I'm using Windows 10 x64, Qt 5.12.3, MinGW 7.30 (32 bits).
I'm trying to build Qt statically, using this guide: https://wohlsoft.ru/pgewiki/Building_static_Qt_5
Setup is ok, but when compiling, I get tons of:..\..\..\..\include\QtWindowsUIAutomationSupport\5.12.3/QtWindowsUIAutomationSupport/private/qwindowsuiawrapper_p.h:1:10: fatal error: ../../../../../src/platformsupport/windowsuiautomation/qwindowsuiawrapper_p.h: No such file or directory
Searching the bug tracker, I found that: https://bugreports.qt.io/browse/QTBUG-68502?focusedCommentId=406323&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel
Sadly, no information is given to fix the problem.Could someone help me to fix this please? Thanks in advance!
-
This post is deleted! -
Try to change the '\' in QtStaticDir, on '/'
-
Changing the '\' to '/' in QtStaticDir (e.g. from C:\Qt\5.13.0\mingw73_64_static to C:/Qt/5.13.0/mingw73_64_static) did not work for me.
I'm having the same problem using Windows 10 x64, Qt 5.13.0 and MinGW 7.30 64-bit
So we have established that the problem is not specifically with the 5.12.3 version of Qt (5.13 is affected too), nor the 32-bit version of MinGW (the 64-bit version is affected too).It is unfortunate that the bug report in bug tracker was closed (twice!):
https://bugreports.qt.io/browse/QTBUG-68502
https://bugreports.qt.io/browse/QTBUG-72585
The claim by the person who closed it was that this is not a Qt problem. There is clearly an issue with the way Qt sources interact with the compiler that Qt is distributing, affecting users who follow the instructions on static builds that are given on the official Qt website: this sounds a "Qt problem" to me, even if "it's someone else's fault".I'll keep trying to find a solution and post back here.