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. [SOLVED] Is the static build option for Qt 5.1.1 broken?
QtWS25 Last Chance

[SOLVED] Is the static build option for Qt 5.1.1 broken?

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 2.0k 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.
  • D Offline
    D Offline
    DGords27
    wrote on last edited by
    #1

    Hi all,

    I'm new to Qt and have just finished my first desktop application. I would like to try and deploy a stand alone application and therefore have tried to build it statically but I have an issue from step one! I try to setup Qt to build statically by typing the following in the command line:
    "
    cd C:\path\to\Qt
    configure -static <any other options you need>"
    I'm pretty certain I'm in the right directory but i receive the following error:
    "configure is not recognized as an internal or external command"

    So:

    1. Do I have a problem with my PATH and if so what must I add to it?
    2. is it just a problem with Qt 5.1.1 (as stated here: http://stackoverflow.com/questions/18940926/making-static-buildstandalone-application-with-qt) and if so what can I do to fix this?

    Any help would be appreciated!

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dbzhang800
      wrote on last edited by
      #2

      Can you find the configure.bat or configure.exe in your current directory?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        To add to 1+1=2, did you download Qt's sources ? Or installed them when you installed Qt ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DGords27
          wrote on last edited by
          #4

          Thanks for the quick replies! @1+1=2 No I can't find them, @SGaist is that my problem I need to download Qt sources, as I can't find them in my Qt folder which makes me think that I have not downloaded (or installed them)! Where do I get them and how do I install them.
          (sorry if this is a simple question, just want to make sure I do it right)

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Just download the zip source file (even if its bigger than the tar.gz) to have the sources with the correct line endings.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DGords27
              wrote on last edited by
              #6

              Thanks SGaist! Works! Now for the next problem:
              I'm just trying to follow the Qt tut on building statically on windows(found here: http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html)

              and when i get to the step:
              mingw32-make sub-src
              I receive the following error:
              mingw32-make: *** No rule to make target `sub-src'. Stop.

              I have read a few ppl have encountered this problem but there does not seem to be an easy way around it!
              (I'm slightly confused as to why the Qt tutorial for deploying on windows is almost impossible to follow!)

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                just call mingw32-make

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  DGords27
                  wrote on last edited by
                  #8

                  Thanks SGaist, that did work but kept encountering error after error and after readying many blogs with ppl encountering the same problems I decided to stop wasting time and made it a dynamic build! It pretty sad though that Qt is so awesome up until the deployment point where it gets impossible for first timers like me!

                  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