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. Run Application on WinXp 32Bit

Run Application on WinXp 32Bit

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 6 Posters 1.4k 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.
  • B Offline
    B Offline
    Boris1980
    wrote on last edited by Boris1980
    #1

    Good day,

    i try to create a native 32bit Windows Application. I Have VS2015 with QT5.6.3 (32Bit) installled on a Win7 Machine.

    • Select the WinXP Toolkit in mein VS Solution
    • Selct 32 bit an Release.

    After build solition i can run the exe on my development machine (Win 7). but wenn i copy the exe (and depende dll) on a WinXP machine . I get an error "Not a valid Win32 application" .

    Iam new in Qt an deplayment system.. what i have to get i work?

    Thank you

    EDIT: I get an lit bit further.. now i get the error "MSVCP140.dll" not found!? Maybe something with service packs?

    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by
      #2

      Hi, looks like the WinXP computer is missing the VC2015 dlls, you could try installing them, download is here

      1 Reply Last reply
      3
      • B Offline
        B Offline
        Boris1980
        wrote on last edited by
        #3

        Hey thank you, i will try. But why do i need this, when i deplay a native exe for winxp?

        Christian EhrlicherC 1 Reply Last reply
        0
        • B Boris1980

          Hey thank you, i will try. But why do i need this, when i deplay a native exe for winxp?

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by Christian Ehrlicher
          #4

          @Boris1980 said in Run Application on WinXp 32Bit:

          But why do i need this, when i deplay a native exe for winxp?

          You need the correct visual studio C/C++ runtime on every computer where it is not available, not just on xp.

          /edit: @JonB - fixed, thx :)

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          JonBJ 1 Reply Last reply
          2
          • Christian EhrlicherC Christian Ehrlicher

            @Boris1980 said in Run Application on WinXp 32Bit:

            But why do i need this, when i deplay a native exe for winxp?

            You need the correct visual studio C/C++ runtime on every computer where it is not available, not just on xp.

            /edit: @JonB - fixed, thx :)

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @Christian-Ehrlicher

            visual studio runtime

            Visual C/C++ runtime! :)

            1 Reply Last reply
            0
            • R Offline
              R Offline
              robopoulos
              wrote on last edited by robopoulos
              #6

              Please let me ask a related question here: is it possible and legal to add the VS compiler runtime to go with the Qt files in the installation setup or must it be installed independently? How about mingw?

              Thanks

              K 1 Reply Last reply
              0
              • R robopoulos

                Please let me ask a related question here: is it possible and legal to add the VS compiler runtime to go with the Qt files in the installation setup or must it be installed independently? How about mingw?

                Thanks

                K Offline
                K Offline
                koahnig
                wrote on last edited by koahnig
                #7

                @robopoulos said in Run Application on WinXp 32Bit:

                Please let me ask a related question here: is it possible and legal to add the VS compiler runtime to go with the Qt files in the installation setup or must it be installed independently? How about mingw?

                For MinGW it is easy IMHO just use the default settings of the online installer. The different MinGW versions are put to tools folder under Qt.

                In general I would not see a problem to do similar with the different MSVC versions as long you do not through an automated installer which is not supplied by MS. Just MHO and IANAL

                Vote the answer(s) that helped you to solve your issue(s)

                R 1 Reply Last reply
                2
                • K koahnig

                  @robopoulos said in Run Application on WinXp 32Bit:

                  Please let me ask a related question here: is it possible and legal to add the VS compiler runtime to go with the Qt files in the installation setup or must it be installed independently? How about mingw?

                  For MinGW it is easy IMHO just use the default settings of the online installer. The different MinGW versions are put to tools folder under Qt.

                  In general I would not see a problem to do similar with the different MSVC versions as long you do not through an automated installer which is not supplied by MS. Just MHO and IANAL

                  R Offline
                  R Offline
                  robopoulos
                  wrote on last edited by
                  #8

                  @koahnig said in Run Application on WinXp 32Bit:

                  @robopoulos said in Run Application on WinXp 32Bit:

                  Please let me ask a related question here: is it possible and legal to add the VS compiler runtime to go with the Qt files in the installation setup or must it be installed independently? How about mingw?

                  For MinGW it is easy IMHO hust use the default settings of the online installer. The different MinGW versions are put to tools folder under Qt.

                  In general I would not see a problem to do similar with the different MSVC versions as long you do not through an automated installer which is not supplied by MS. Just MHO and IANAL

                  I'm sorry, my mistake, I chose my words badly, I meant that is it possible to add the runtimes to go with a program deployment installation. Or perhaps you noticed my mistake in your reply.

                  K 1 Reply Last reply
                  0
                  • R robopoulos

                    @koahnig said in Run Application on WinXp 32Bit:

                    @robopoulos said in Run Application on WinXp 32Bit:

                    Please let me ask a related question here: is it possible and legal to add the VS compiler runtime to go with the Qt files in the installation setup or must it be installed independently? How about mingw?

                    For MinGW it is easy IMHO hust use the default settings of the online installer. The different MinGW versions are put to tools folder under Qt.

                    In general I would not see a problem to do similar with the different MSVC versions as long you do not through an automated installer which is not supplied by MS. Just MHO and IANAL

                    I'm sorry, my mistake, I chose my words badly, I meant that is it possible to add the runtimes to go with a program deployment installation. Or perhaps you noticed my mistake in your reply.

                    K Offline
                    K Offline
                    koahnig
                    wrote on last edited by
                    #9

                    @robopoulos

                    OK, now the question is more related to the discussion before. Sorry did not notice.

                    I believe it should be no problem for MS dlls IMHO. But again IANAL.

                    For MinGW you should be save IMHO.

                    Vote the answer(s) that helped you to solve your issue(s)

                    1 Reply Last reply
                    0
                    • Christian EhrlicherC Offline
                      Christian EhrlicherC Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      The vcredist package is explicitly meant for distribution with your installer. It can be downloaded here: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
                      There are also scripts for e.g. innosetup to automatically install it when needed.

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      1 Reply Last reply
                      4
                      • B Offline
                        B Offline
                        Boris1980
                        wrote on last edited by Boris1980
                        #11

                        Good Morning,

                        after i have installed the Visual C/C++ runtime, i get an Qt error? QtCore.dll (guiapplication.cpp)

                        "This Application failed to start, because it could not finde or load the Qt Plattform plugin "windows" in "".

                        When i execute the app on my development PC form the output folder, ther is no error. only if copy the app to another machine (The Exectuiotn folder contains my exe and QtCore.dll QtGui.dll and Qtwidget.dll)
                        sorry for my noob questions, i am new in QT;)

                        1 Reply Last reply
                        0
                        • Christian EhrlicherC Offline
                          Christian EhrlicherC Offline
                          Christian Ehrlicher
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          You also have to deploy the needed qt plugins for your application. The easiest way to do so is to use 'windeployqt' - see http://doc.qt.io/qt-5/windows-deployment.html

                          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                          Visit the Qt Academy at https://academy.qt.io/catalog

                          1 Reply Last reply
                          4

                          • Login

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