building static Qt6 results in ABI "unknown"
-
Hi all -
I tried building a static Qt installation (on Windows) using the steps on this page. The build seems to work, but when I add my new Qt version in Creator, the ABI shows as follows:
ABI: unknown-unknown-unknown-unknown-unknown
Obviously, I can't build with this.
Anyone have an idea what I might have done wrong here?
Thanks...
-
Which compiler did you use to build on Windows?
-
@cristian-adam presumably the one in my PATH environment variable: C:\Qt\Tools\mingw1120_64\bin.
EDIT:
C:\Qt\Tools\mingw1120_64\bin>g++ -v Using built-in specs. COLLECT_GCC=g++ Target: x86_64-w64-mingw32
EDIT 2:
Actually, this doesn't appear to be the case -- I had installed Strawberry Perl which included its own toolchain, and appears ahead of C:\Qt\Tools\mingw1120_64\bin in my PATH. The version in Strawberry is GNU 8.3.0.
I'll get my IT department to remove Strawberry and see if that changes things.
-
Here are the details of my newly-built Qt:
Name: Qt 6.2.4 (6.2.4_static) ABI: unknown-unknown-unknown-unknown-unknown Source: C:\Qt\6.2.4_static mkspec: win32-g++ qmake: C:\Qt\6.2.4_static\bin\qmake.exe Version: 6.2.4 QMAKE_SPEC win32-g++ QMAKE_VERSION 3.1 QMAKE_XSPEC win32-g++ QT_HOST_BINS C:\Qt\6.2.4_static\bin QT_HOST_DATA C:\Qt\6.2.4_static QT_HOST_LIBEXECS C:\Qt\6.2.4_static\bin QT_HOST_LIBS C:\Qt\6.2.4_static\lib QT_HOST_PREFIX C:\Qt\6.2.4_static QT_INSTALL_ARCHDATA C:\Qt\6.2.4_static QT_INSTALL_BINS C:\Qt\6.2.4_static\bin QT_INSTALL_CONFIGURATION QT_INSTALL_DATA C:\Qt\6.2.4_static QT_INSTALL_DEMOS C:\Qt\6.2.4_static\examples QT_INSTALL_DOCS C:\Qt\6.2.4_static\doc QT_INSTALL_EXAMPLES C:\Qt\6.2.4_static\examples QT_INSTALL_HEADERS C:\Qt\6.2.4_static\include QT_INSTALL_LIBEXECS C:\Qt\6.2.4_static\bin QT_INSTALL_LIBS C:\Qt\6.2.4_static\lib QT_INSTALL_PLUGINS C:\Qt\6.2.4_static\plugins QT_INSTALL_PREFIX C:\Qt\6.2.4_static QT_INSTALL_QML C:\Qt\6.2.4_static\qml QT_INSTALL_TESTS C:\Qt\6.2.4_static\tests QT_INSTALL_TRANSLATIONS C:\Qt\6.2.4_static\translations QT_SYSROOT QT_VERSION 6.2.4
Any suggestions as to what I did wrong would be greatly appreciated.
Thanks...
-
The above information comes from Qt Creator, and for some reason parseCoffHeader function is not detecting the ABI of your qmake executable.
I think this is good enough for a bug report at https://bugreports.qt.io/ with the executable attached 😊
Last time I checked a static build of Qt, I used the MSVC compiler, and worked fine. MinGW 11.2.0 might have a problem.
-
@cristian-adam I see you're the assignee on this. Feel free to contact me if you want any more information, or want me to try something.