Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Static Build Fails on Windows 7 Professional X64 with QTSDK
Qt 6.12 LTS is out! See what's new in the release blog

Static Build Fails on Windows 7 Professional X64 with QTSDK

Scheduled Pinned Locked Moved Installation and Deployment
19 Posts 5 Posters 19.8k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #8

    It has been a while since the last time I had Qt build statically, so I don't know if the wiki article is correct on all the settings... so don't blame me if it doesn't build correctly ;-)

    Apart for the makespecs and make file editing and the configure options, the sameway I build Qt with openssl support from QtSources.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #9

      I got everything done up until the dos prompt. Everything except creating qmake went fine.

      @Creating qmake...
      execute: File or path is not found (mingw32-make)
      execute: File or path is not found (mingw32-make)
      Cleaning qmake failed, return code -1@

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #10

        Do @> set PATH=C:\QtSDK\mingw\bin;%PATH%@ and rerun configure with your arguments. Sorry my mistake, forgot to mention that part ;-). I edited my post accordingly.

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #11

          Maybe you could update the wiki, if you succeed, with your findings?

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #12

            Still not working. Unless I'm not setting the environmental variable for MinGW correctly?

            @Variable Name %PATH%
            Variable Value C:\QtSDK\mingw\bin@

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #13

              If you posted the whole message you got and not just a part, it would be much easier to help you out.

              Did you set, like I showed you, the path to mingw32-make at the prompt before rerunning configure?

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #14

                The command prompt was cutting it off. Have it in a text file so I'll post it if I have an issue again.

                Ah I misunderstood that. Seems like it's actually building now, but I don't know for sure so I'll post an update after a bit.:)

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #15

                  It failed again saying interrupt. Is there a way that when I'm about ready to release a program I can compile it against the libraries without having static set up? Nokia needs to provide better documentation on this.

                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #16

                    Until now you only given incomplete error messages. As said before if you provide us with the full error message maybe someone will be able to help you.

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #17

                      [quote author="DarkSnake-Kobra" date="1309984350"]Is there a way that when I'm about ready to release a program I can compile it against the libraries without having static set up?[/quote]

                      Build your application as usual and redistribute the Qt libraries (.dlls) along with your application. (There are tons of threads on how to do this.)

                      If you really consider to link Qt statically to your application you should probably "consider":http://developer.qt.nokia.com/forums/viewthread/6749/ buying a commercial license too.

                      1 Reply Last reply
                      0
                      • ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by
                        #18

                        Was just thinking on that. I think it'll be easier to compress the libraries with UPX and redistribute them with the programs.:)

                        Everything resolved now.:)

                        1 Reply Last reply
                        0
                        • ? Offline
                          ? Offline
                          A Former User
                          wrote on last edited by
                          #19

                          please, how can I redistribute Qt dlls ?

                          I use Qt 5.2, I need to create Stand-Alone .exe file as a Release from my application, and till now static Qt build fails.
                          Even it completes, Qml and Quick doesn't known for Qt.

                          So, If there are any other solution to get stand-alone file, that will be very appreciated.

                          Thank you,

                          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
                          • Unsolved