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. How to deploy EXE to Windows XP
Forum Updated to NodeBB v4.3 + New Features

How to deploy EXE to Windows XP

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 5 Posters 4.6k 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.
  • mark1215M Offline
    mark1215M Offline
    mark1215
    wrote on last edited by
    #1

    Win7 + Qt Creator3.6.1 + Qt5.6

    i use #windeployqt ***.exe deploy my application, it can run in Win7/ Win8/ Win10, but can not run in Window XP, i see Qt5.6 can deploy in Window XP, but i don't know how i can do.

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

      windeployqt just copies a bunch of libraries to the deployment folder, just copy the same files manually and it will work

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      1
      • mark1215M mark1215

        Win7 + Qt Creator3.6.1 + Qt5.6

        i use #windeployqt ***.exe deploy my application, it can run in Win7/ Win8/ Win10, but can not run in Window XP, i see Qt5.6 can deploy in Window XP, but i don't know how i can do.

        D Offline
        D Offline
        Devopia53
        wrote on last edited by
        #3

        @mark1215

        See http://doc.qt.io/qt-5/windows-issues.html#windows-xp

        mark1215M 1 Reply Last reply
        1
        • D Devopia53

          @mark1215

          See http://doc.qt.io/qt-5/windows-issues.html#windows-xp

          mark1215M Offline
          mark1215M Offline
          mark1215
          wrote on last edited by
          #4

          @Devopia53
          any other way? compile qt source is so difficult,

          i think it just lack some .dll files, or set some environment paras

          jsulmJ 1 Reply Last reply
          0
          • mark1215M mark1215

            @Devopia53
            any other way? compile qt source is so difficult,

            i think it just lack some .dll files, or set some environment paras

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

            @mark1215 Which compiler do you use?

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

            mark1215M 1 Reply Last reply
            0
            • jsulmJ jsulm

              @mark1215 Which compiler do you use?

              mark1215M Offline
              mark1215M Offline
              mark1215
              wrote on last edited by
              #6

              @jsulm
              Desktop Qt 5.6.0 MinGW 32bit

              jsulmJ 1 Reply Last reply
              0
              • mark1215M mark1215

                @jsulm
                Desktop Qt 5.6.0 MinGW 32bit

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

                @mark1215 Then you don't have to build Qt - the description in the link targets Visual Studio >= 2012 not MinGW

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

                mark1215M 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @mark1215 Then you don't have to build Qt - the description in the link targets Visual Studio >= 2012 not MinGW

                  mark1215M Offline
                  mark1215M Offline
                  mark1215
                  wrote on last edited by
                  #8

                  @jsulm
                  then do you know what should i do? i think i should change some make paras or .pro paras,

                  jsulmJ 1 Reply Last reply
                  0
                  • mark1215M mark1215

                    @jsulm
                    then do you know what should i do? i think i should change some make paras or .pro paras,

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

                    @mark1215 If I understand the problem correctly you cannot execute windeployqt.exe on Windows XP, right? You can do that on Windows >= 7 and check whether your application is working on Windows XP then. Or do you have to use windeployqt on XP?

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

                    mark1215M 1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      Rondog
                      wrote on last edited by
                      #10

                      It sounds like the application 'windeployqt.exe' is compiled for a version not compatible with XP. There is a decent description of the problem (and a possible solution) here: http://www.tripleboot.org/?p=423

                      If you need to target WinXP with Qt 5.6.0 you should consider building from source on a WinXP machine. You will need a couple of configure options in this case or you will have problems:

                      configure <whatever options are required> -target xp -no-directwrite
                      

                      Also, I found that when I tried to run 'configure' with Qt 5.6.0 on a WinXP machine to setup for building the Qt source I got the Not a Valid Application error. I altered the version information in the configure executable from 6.0 to 5.1 (see link for details) and this worked for me.

                      1 Reply Last reply
                      0
                      • jsulmJ jsulm

                        @mark1215 If I understand the problem correctly you cannot execute windeployqt.exe on Windows XP, right? You can do that on Windows >= 7 and check whether your application is working on Windows XP then. Or do you have to use windeployqt on XP?

                        mark1215M Offline
                        mark1215M Offline
                        mark1215
                        wrote on last edited by
                        #11

                        @jsulm
                        maybe i can not description the problem, @Rondog has pointed out. i want compile a EXE with Win7+Qt Creator+Qt5.6+MinGW and it can run on WIN XP / WIN 7 / WIN 8 / WIN 10

                        i has solved. the point of problem is not 'windepolyqt.exe', it's ok,
                        the reason is that there are some source code of 'ffmpeg' in my application. i remove those source code, then the EXE can run on WIN XP.

                        this is my first card on Qt Forum, thanks for your reply @jsulm @Rondog

                        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