Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. error trying to build static Qt 6.5.0 (Windows)
Qt 6.11 is out! See what's new in the release blog

error trying to build static Qt 6.5.0 (Windows)

Scheduled Pinned Locked Moved Solved Installation and Deployment
15 Posts 4 Posters 4.6k Views 2 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.
  • JoeCFDJ JoeCFD

    @mzimmers
    check his build out.
    http://bin.ceicer.com/qt/Windows/
    https://forum.qt.io/topic/144231/qt5-15-9-linux-and-windows-compiled-source-code?_=1681152916124

    mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #3

    @JoeCFD that's essentially what I'm trying to do (with different options set). But I have to get past that zlib issue for the configuration to complete successfully.

    I also recall from years ago that after a failed configure attempt, it was necessary to perform some clean-up before retrying the configure. I'm not sure this is still the case; I haven't found any recent mention of it.

    mzimmersM 1 Reply Last reply
    0
    • mzimmersM mzimmers

      @JoeCFD that's essentially what I'm trying to do (with different options set). But I have to get past that zlib issue for the configuration to complete successfully.

      I also recall from years ago that after a failed configure attempt, it was necessary to perform some clean-up before retrying the configure. I'm not sure this is still the case; I haven't found any recent mention of it.

      mzimmersM Offline
      mzimmersM Offline
      mzimmers
      wrote on last edited by
      #4

      UPDATE: it turns out the culprit that killed my configure was the inclusion of strawberry perl in my PATH environment variable. I removed it, and it configured and built.

      BUT: my static build give me a warning in Creator: "No QML utility installed." I remember seeing this long ago, but I don't recall what the fix is. (I had to manually add my static library, as it wasn't auto-detected.)

      Can someone please remind me what the fix is for this? Thank you.

      JoeCFDJ 1 Reply Last reply
      0
      • mzimmersM mzimmers

        UPDATE: it turns out the culprit that killed my configure was the inclusion of strawberry perl in my PATH environment variable. I removed it, and it configured and built.

        BUT: my static build give me a warning in Creator: "No QML utility installed." I remember seeing this long ago, but I don't recall what the fix is. (I had to manually add my static library, as it wasn't auto-detected.)

        Can someone please remind me what the fix is for this? Thank you.

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by JoeCFD
        #5

        @mzimmers said in error trying to build static Qt 6.5.0 (Windows):

        "No QML utility installed."

        are these QML executable commands like qml etc. not installed? and you can copy them to bin dir? Not sure.

        mzimmersM 1 Reply Last reply
        0
        • JoeCFDJ JoeCFD

          @mzimmers said in error trying to build static Qt 6.5.0 (Windows):

          "No QML utility installed."

          are these QML executable commands like qml etc. not installed? and you can copy them to bin dir? Not sure.

          mzimmersM Offline
          mzimmersM Offline
          mzimmers
          wrote on last edited by
          #6

          @JoeCFD said in error trying to build static Qt 6.5.0 (Windows):

          are these QML executable commands like qml etc. not installed?

          Well, if they aren't, then I did something wrong with my configure command, though this exact command (above) worked with an earlier version of Qt 6, so I'm not sure what to say.

          JoeCFDJ 1 Reply Last reply
          0
          • mzimmersM mzimmers

            @JoeCFD said in error trying to build static Qt 6.5.0 (Windows):

            are these QML executable commands like qml etc. not installed?

            Well, if they aren't, then I did something wrong with my configure command, though this exact command (above) worked with an earlier version of Qt 6, so I'm not sure what to say.

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by
            #7

            @mzimmers you can see if they are there.

            mzimmersM 1 Reply Last reply
            0
            • JoeCFDJ JoeCFD

              @mzimmers you can see if they are there.

              mzimmersM Offline
              mzimmersM Offline
              mzimmers
              wrote on last edited by mzimmers
              #8

              @JoeCFD I just checked - they're not (at least qml.exe isn't). So...that's a problem for sure.

              I looked through the configure help, and found nothing that I might need to set in order to get this, but there's nothing in my static build with any QML stuff.

              EDIT: I've been building from the source code that I downloaded through the maintenance tool. I think I'll try downloading via git, and building with that. I'll report back with any findings.

              JoeCFDJ 1 Reply Last reply
              0
              • mzimmersM mzimmers

                @JoeCFD I just checked - they're not (at least qml.exe isn't). So...that's a problem for sure.

                I looked through the configure help, and found nothing that I might need to set in order to get this, but there's nothing in my static build with any QML stuff.

                EDIT: I've been building from the source code that I downloaded through the maintenance tool. I think I'll try downloading via git, and building with that. I'll report back with any findings.

                JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by
                #9

                @mzimmers
                look at his summery for windows
                http://bin.ceicer.com/qt/Windows/Qt5.15.9_msvc_shared_64-bit/config.summary

                mzimmersM 1 Reply Last reply
                0
                • JoeCFDJ JoeCFD

                  @mzimmers
                  look at his summery for windows
                  http://bin.ceicer.com/qt/Windows/Qt5.15.9_msvc_shared_64-bit/config.summary

                  mzimmersM Offline
                  mzimmersM Offline
                  mzimmers
                  wrote on last edited by
                  #10

                  I tried building with sources downloaded from git...same result.

                  @JoeCFD I've looked through the details of that configuration -- I don't see anything that would cause me to change my arguments.

                  mzimmersM 1 Reply Last reply
                  0
                  • mzimmersM mzimmers

                    I tried building with sources downloaded from git...same result.

                    @JoeCFD I've looked through the details of that configuration -- I don't see anything that would cause me to change my arguments.

                    mzimmersM Offline
                    mzimmersM Offline
                    mzimmers
                    wrote on last edited by
                    #11

                    An update on this: the missing QML was caused (at least partly) by running the configure.bat script from qtbase, and not the root folder.

                    I now produce a semi-valid Qt library, but for some reason, it's missing parts of the qtmultimedia module, so I can't use it with apps that need multimedia support. I opened a bug report on this and am discussing it with the bug fixing folks.

                    I'll report back when I have more information.

                    mzimmersM 1 Reply Last reply
                    0
                    • mzimmersM mzimmers

                      An update on this: the missing QML was caused (at least partly) by running the configure.bat script from qtbase, and not the root folder.

                      I now produce a semi-valid Qt library, but for some reason, it's missing parts of the qtmultimedia module, so I can't use it with apps that need multimedia support. I opened a bug report on this and am discussing it with the bug fixing folks.

                      I'll report back when I have more information.

                      mzimmersM Offline
                      mzimmersM Offline
                      mzimmers
                      wrote on last edited by mzimmers
                      #12

                      So, the team identified a bug that was causing my problem, and gave me a workaround (detailed in the bug report linked above). They also made a patch which I'm in the process of building.

                      Using the workaround, I am able to build a static version of my application.
                      I can pull it out of the build directory, double click on it, and it opens fine. So, I thought I had the problem solved. BUT: when I shared this file with someone else, he got an error message about "libgcc_s_seh-1.dll was not found."

                      EDIT:

                      This is a different enough question to merit its own topic.

                      I'll report back on the patch after I build it.

                      EDIT 2:

                      I never did apply the patch, but further investigation revealed that the lingering problem was traced to my Perl installation, which placed perl bins (which included C compilers) above my Qt toolchain in my PATH variable. Fixing this allowed the build to work.

                      K 1 Reply Last reply
                      0
                      • mzimmersM mzimmers has marked this topic as solved on
                      • mzimmersM mzimmers

                        So, the team identified a bug that was causing my problem, and gave me a workaround (detailed in the bug report linked above). They also made a patch which I'm in the process of building.

                        Using the workaround, I am able to build a static version of my application.
                        I can pull it out of the build directory, double click on it, and it opens fine. So, I thought I had the problem solved. BUT: when I shared this file with someone else, he got an error message about "libgcc_s_seh-1.dll was not found."

                        EDIT:

                        This is a different enough question to merit its own topic.

                        I'll report back on the patch after I build it.

                        EDIT 2:

                        I never did apply the patch, but further investigation revealed that the lingering problem was traced to my Perl installation, which placed perl bins (which included C compilers) above my Qt toolchain in my PATH variable. Fixing this allowed the build to work.

                        K Offline
                        K Offline
                        K Pradeep Kumar Reddy
                        wrote on last edited by
                        #13

                        @mzimmers I'm facing this error
                        CMake Error at qtbase/cmake/QtSyncQtHelpers.cmake:235 (message):
                        syncqt.cpp failed for module QtCore:

                        Missing argument: -rhiIncludeDir

                        Call Stack (most recent call first):
                        qtbase/cmake/QtModuleHelpers.cmake:871 (qt_internal_target_sync_headers)
                        qtbase/cmake/QtScopeFinalizerHelpers.cmake:24:EVAL:1 (qt_finalize_module)
                        qtbase/src/corelib/CMakeLists.txt:DEFERRED

                        -- Configuring incomplete, errors occurred!
                        CMake Error at /Users/fyi/Documents/qt-workspace/qt5/qtbase/cmake/QtProcessConfigureArgs.cmake:994 (message):
                        CMake exited with code 1.

                        This is how my PATH variable looks like
                        /Users/fyi/Library/Android/sdk/platform-tools:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/opt/openjdk/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin

                        perl is installed in /usr/bin/perl

                        How did fix it in the PATH variable ?

                        jsulmJ 1 Reply Last reply
                        0
                        • K K Pradeep Kumar Reddy

                          @mzimmers I'm facing this error
                          CMake Error at qtbase/cmake/QtSyncQtHelpers.cmake:235 (message):
                          syncqt.cpp failed for module QtCore:

                          Missing argument: -rhiIncludeDir

                          Call Stack (most recent call first):
                          qtbase/cmake/QtModuleHelpers.cmake:871 (qt_internal_target_sync_headers)
                          qtbase/cmake/QtScopeFinalizerHelpers.cmake:24:EVAL:1 (qt_finalize_module)
                          qtbase/src/corelib/CMakeLists.txt:DEFERRED

                          -- Configuring incomplete, errors occurred!
                          CMake Error at /Users/fyi/Documents/qt-workspace/qt5/qtbase/cmake/QtProcessConfigureArgs.cmake:994 (message):
                          CMake exited with code 1.

                          This is how my PATH variable looks like
                          /Users/fyi/Library/Android/sdk/platform-tools:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/opt/openjdk/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin

                          perl is installed in /usr/bin/perl

                          How did fix it in the PATH variable ?

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #14

                          @K-Pradeep-Kumar-Reddy Your problem has nothing to do with Perl. You should start your own thread instead of posting in this one.

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          K 1 Reply Last reply
                          0
                          • jsulmJ jsulm

                            @K-Pradeep-Kumar-Reddy Your problem has nothing to do with Perl. You should start your own thread instead of posting in this one.

                            K Offline
                            K Offline
                            K Pradeep Kumar Reddy
                            wrote on last edited by
                            #15

                            @jsulm Figured out the issue. It was happening because i did not switch to the git branch 6.6.1.

                            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