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"
QtWS25 Last Chance

building static Qt6 results in ABI "unknown"

Scheduled Pinned Locked Moved Solved General and Desktop
qt6buildstatic
9 Posts 2 Posters 1.1k Views
  • 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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on 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
    • cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote on last edited by
      #2

      Which compiler did you use to build on Windows?

      mzimmersM 1 Reply Last reply
      0
      • cristian-adamC cristian-adam

        Which compiler did you use to build on Windows?

        mzimmersM Offline
        mzimmersM Offline
        mzimmers
        wrote on 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
        • mzimmersM Offline
          mzimmersM Offline
          mzimmers
          wrote on 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
          • mzimmersM Offline
            mzimmersM Offline
            mzimmers
            wrote on last edited by
            #5

            BTT. Anyone?

            Thanks...

            1 Reply Last reply
            0
            • cristian-adamC Offline
              cristian-adamC Offline
              cristian-adam
              wrote on 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.

              mzimmersM 1 Reply Last reply
              0
              • mzimmersM Offline
                mzimmersM Offline
                mzimmers
                wrote on 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
                • cristian-adamC cristian-adam

                  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.

                  mzimmersM Offline
                  mzimmersM Offline
                  mzimmers
                  wrote on 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.

                  mzimmersM 1 Reply Last reply
                  0
                  • mzimmersM mzimmers

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

                    mzimmersM Offline
                    mzimmersM Offline
                    mzimmers
                    wrote on 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