Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. building static Qt6 results in ABI "unknown"
Forum Updated to NodeBB v4.3 + New Features

building static Qt6 results in ABI "unknown"

Scheduled Pinned Locked Moved Solved General and Desktop
qt6buildstatic
9 Posts 2 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mzimmers
    wrote on 14 Jun 2022, 14:41 last edited by
    #1

    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...

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cristian-adam
      wrote on 14 Jun 2022, 14:57 last edited by
      #2

      Which compiler did you use to build on Windows?

      M 1 Reply Last reply 14 Jun 2022, 15:00
      0
      • C cristian-adam
        14 Jun 2022, 14:57

        Which compiler did you use to build on Windows?

        M Offline
        M Offline
        mzimmers
        wrote on 14 Jun 2022, 15:00 last edited by mzimmers
        #3

        @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.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mzimmers
          wrote on 14 Jun 2022, 22:53 last edited by
          #4

          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...

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mzimmers
            wrote on 16 Jun 2022, 15:28 last edited by
            #5

            BTT. Anyone?

            Thanks...

            1 Reply Last reply
            0
            • C Offline
              C Offline
              cristian-adam
              wrote on 18 Jun 2022, 11:12 last edited by
              #6

              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.

              M 1 Reply Last reply 23 Jun 2022, 20:06
              0
              • M Offline
                M Offline
                mzimmers
                wrote on 18 Jun 2022, 16:58 last edited by
                #7

                Done.

                Thanks. I'll keep this open until I get some resolution on it, then summarize it here.

                1 Reply Last reply
                0
                • C cristian-adam
                  18 Jun 2022, 11:12

                  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.

                  M Offline
                  M Offline
                  mzimmers
                  wrote on 23 Jun 2022, 20:06 last edited by
                  #8

                  @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.

                  M 1 Reply Last reply 1 Jul 2022, 13:51
                  0
                  • M mzimmers
                    23 Jun 2022, 20:06

                    @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.

                    M Offline
                    M Offline
                    mzimmers
                    wrote on 1 Jul 2022, 13:51 last edited by
                    #9

                    This has been fixed in a development release of Creator 8.0.0 beta 2, and can be found here. Marking as solved. Thanks for the help.

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved