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. How do I compile a .exe file which I can run on any windows computer?
Forum Updated to NodeBB v4.3 + New Features

How do I compile a .exe file which I can run on any windows computer?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
29 Posts 4 Posters 11.5k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #21

    I'd first cleanup to ensure there's no remaining from your old build tentative.

    Also, consider doing out of source builds, that will simplify things if you want to build Qt for several architectures or make different static/shared builds.

    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
    • S Offline
      S Offline
      StevenD
      wrote on last edited by
      #22

      What should I clean up? Attempting to run mingw32-make clean results in mingw32-make: *** No rule to make target 'clean'. Stop.

      In addition, I do not see any additional files I should delete.

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

        Because you are calling configure repeatedly with different options, so you should cleanup between invocation.

        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
        • S Offline
          S Offline
          StevenD
          wrote on last edited by
          #24

          I know I should clean, but what and how do I clean?

          jsulmJ 1 Reply Last reply
          0
          • S StevenD

            I know I should clean, but what and how do I clean?

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

            @StevenD You should start with fresh Qt source tree and do out of source build as @SGaist suggested.
            Out of source means:

            c:\qt_source
            mkdir c:\qt_build
            cd c:\qt_build
            ..\qt_source\configure.exe...
            make
            

            So, basically you call configure and make from outside of the Qt source code directory.
            In general you should read http://doc.qt.io/qt-5/build-sources.html

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

            1 Reply Last reply
            0
            • S Offline
              S Offline
              StevenD
              wrote on last edited by
              #26

              Right, I now have a different problem:

              C:\qt_build>..\Qt-3.0.1\5.9.2\Src\configure -opensource -confirm-license -nomake examples -nomake tests -static
              + cd qtbase
              + C:\Qt-3.0.1\5.9.2\Src\qtbase\configure.bat -top-level -opensource -confirm-license -nomake examples -nomake tests -static
              Host platform 'win32-g++' is invalid. Aborting.
              
              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #27

                From a clean source ?
                What command prompt are you using ?

                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
                • S Offline
                  S Offline
                  StevenD
                  wrote on last edited by
                  #28

                  I've tried using cmd and PowerShell, in that order. Both give the same ouput.

                  This may be a problem with Windows. I've recently started having... issues with it that are not related to Qt. Random applications suddenly can't run on my pc... I had this pop up with Qt Creator, Cygwin, and some other things.

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

                    IIRC Windows latest updates may broke things in surprising ways.

                    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

                    • Login

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