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. Problem with execute exe file on Windows XP
Forum Updated to NodeBB v4.3 + New Features

Problem with execute exe file on Windows XP

Scheduled Pinned Locked Moved Solved General and Desktop
29 Posts 5 Posters 11.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.
  • A Offline
    A Offline
    atraks
    wrote on 26 Mar 2017, 12:31 last edited by atraks
    #1

    Hi. I have problem with execute my qt exe on windows xp. when i try I get Exceptin Processing Message c0000139 Parameters 18ee68 169428 75b4bf7c 75b4b7c error... I m really bad.
    it works on windows 10, 7, 8 but xp is a problem.

    Anyone can help me???

    Im using QT5.6.2 with Mingw.

    My .pro file is

    #-------------------------------------------------
    #
    # Project created by QtCreator 2017-03-01T21:14:27
    #
    #-------------------------------------------------
    
    
    
    
    
    win32 {
        contains(QMAKE_TARGET.arch, x86_64) {
            QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.02
            QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE,5.02
        } else {
            QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01
            QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE,5.01
        }
    }
    
    DEFINES += _ATL_XP_TARGETING
    
    
    DEFINES += PSAPI_VERSION=1
    
    INCLUDEPATH += “ //kckr/Department/Boyahane/Teknik/Enerji_Arıtma/Ufuk/komur”
    
    
    QT       +=  core gui sql
    greaterThan(QT_MAJOR_VERSION, 4) {
        QT *= printsupport
    }
    
    
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    
    TARGET = komur
    TEMPLATE = app
    
    # The following define makes your compiler emit warnings if you use
    # any feature of Qt which as been marked as deprecated (the exact warnings
    # depend on your compiler). Please consult the documentation of the
    # deprecated API in order to know how to port your code away from it.
    
    
    # You can also make your code fail to compile if you use deprecated APIs.
    # In order to do so, uncomment the following line.
    # You can also select to disable deprecated APIs only up to a certain version of Qt.
    #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050000    # disables all the APIs deprecated before Qt 6.0.0
    
    
    SOURCES += main.cpp\
            login.cpp \
        anasayfa.cpp \
        veri.cpp \
        veritopla.cpp \
        edit.cpp \
        yonetici.cpp \
        yoneticiveri.cpp \
        komurkirec.cpp \
        verivv.cpp
    
    HEADERS  += login.h \
        anasayfa.h \
        veri.h \
        veritopla.h \
        edit.h \
        yonetici.h \
        yoneticiveri.h \
        komurkirec.h \
        verivv.h
    
    FORMS    += login.ui \
        anasayfa.ui \
        veritopla.ui \
        edit.ui \
        yonetici.ui \
        yoneticiveri.ui \
        komurkirec.ui \
        veri.ui \
        verivv.ui
    
    DISTFILES +=
    1 Reply Last reply
    0
    • A Offline
      A Offline
      atraks
      wrote on 26 Mar 2017, 12:51 last edited by
      #2

      Can anyone help for this problem. What can i do.? If this problem cant work in xp i m thinking sucide :(

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Cobra91151
        wrote on 26 Mar 2017, 14:43 last edited by
        #3

        Hi!

        Did you have this code in your project pro file for Win XP compatibility?

        win32 {
            contains(QMAKE_TARGET.arch, x86_64) {
                QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.02
                QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE,5.02
            } else {
                QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01
                QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE,5.01
            }
        }
        
        DEFINES += _ATL_XP_TARGETING
        
        A 1 Reply Last reply 26 Mar 2017, 15:17
        0
        • C Cobra91151
          26 Mar 2017, 14:43

          Hi!

          Did you have this code in your project pro file for Win XP compatibility?

          win32 {
              contains(QMAKE_TARGET.arch, x86_64) {
                  QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.02
                  QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE,5.02
              } else {
                  QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01
                  QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE,5.01
              }
          }
          
          DEFINES += _ATL_XP_TARGETING
          
          A Offline
          A Offline
          atraks
          wrote on 26 Mar 2017, 15:17 last edited by
          #4

          @Cobra91151 thank u for your answer. After your reply i set tihs to my pro file. but same error is happen :(

          C 1 Reply Last reply 26 Mar 2017, 15:23
          0
          • A atraks
            26 Mar 2017, 15:17

            @Cobra91151 thank u for your answer. After your reply i set tihs to my pro file. but same error is happen :(

            C Offline
            C Offline
            Cobra91151
            wrote on 26 Mar 2017, 15:23 last edited by
            #5

            @atraks

            What architecture is your app (x86 or x64)? If you can make screenshot of this error then post it here.

            A 1 Reply Last reply 26 Mar 2017, 15:26
            0
            • C Cobra91151
              26 Mar 2017, 15:23

              @atraks

              What architecture is your app (x86 or x64)? If you can make screenshot of this error then post it here.

              A Offline
              A Offline
              atraks
              wrote on 26 Mar 2017, 15:26 last edited by atraks
              #6

              @Cobra91151 https://ibb.co/eokzwF
              error is that

              @Cobra91151 https://ibb.co/fOpgAa
              is my compile screen.

              I compile this program on x64 windows 10 system but deploying x86 programs thank u your answers :(

              C 1 Reply Last reply 26 Mar 2017, 15:29
              0
              • A atraks
                26 Mar 2017, 15:26

                @Cobra91151 https://ibb.co/eokzwF
                error is that

                @Cobra91151 https://ibb.co/fOpgAa
                is my compile screen.

                I compile this program on x64 windows 10 system but deploying x86 programs thank u your answers :(

                C Offline
                C Offline
                Cobra91151
                wrote on 26 Mar 2017, 15:29 last edited by Cobra91151
                #7

                @atraks

                If your problem is solved please mark it as solved.

                A 1 Reply Last reply 26 Mar 2017, 15:36
                0
                • C Cobra91151
                  26 Mar 2017, 15:29

                  @atraks

                  If your problem is solved please mark it as solved.

                  A Offline
                  A Offline
                  atraks
                  wrote on 26 Mar 2017, 15:36 last edited by
                  #8

                  @Cobra91151

                  no, same error is happen. :( can u see my images?

                  C 1 Reply Last reply 26 Mar 2017, 15:38
                  0
                  • A atraks
                    26 Mar 2017, 15:36

                    @Cobra91151

                    no, same error is happen. :( can u see my images?

                    C Offline
                    C Offline
                    Cobra91151
                    wrote on 26 Mar 2017, 15:38 last edited by
                    #9

                    @atraks

                    No. Try to upload to ImgBB host.

                    A 1 Reply Last reply 26 Mar 2017, 15:43
                    0
                    • C Cobra91151
                      26 Mar 2017, 15:38

                      @atraks

                      No. Try to upload to ImgBB host.

                      A Offline
                      A Offline
                      atraks
                      wrote on 26 Mar 2017, 15:43 last edited by atraks
                      #10

                      @Cobra91151 i changed the uploader. Please help me

                      now i rebuild it again and get error subsystem:windows,5.01: no such file or directory foulth from my compiler.

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        Rondog
                        wrote on 26 Mar 2017, 15:53 last edited by
                        #11

                        You didn't mention the version of Qt that you are using (or any other details for that matter). I believe Qt 5.6.x is the latest that you can use for XP.

                        I would recommend compiling your program on WinXP and then you will know it works on this target. You can setup a virtual machine with XP and a minimal set of what you need to compile software. This is basically what I have setup as I need to make sure my software runs on this older operating system.

                        My guess is that you are using a version of Qt that no longer supports XP (for example, I don't think Qt 5.8.x supports XP anymore). You might have a problem with your version of Qt were it was not compiled with the proper options to support XP. Either way the best way to solve this is to setup an environment on WinXP and compile your program there. If it works on XP it will run on Win10 but the reverse is not always true.

                        A 1 Reply Last reply 26 Mar 2017, 16:02
                        0
                        • R Rondog
                          26 Mar 2017, 15:53

                          You didn't mention the version of Qt that you are using (or any other details for that matter). I believe Qt 5.6.x is the latest that you can use for XP.

                          I would recommend compiling your program on WinXP and then you will know it works on this target. You can setup a virtual machine with XP and a minimal set of what you need to compile software. This is basically what I have setup as I need to make sure my software runs on this older operating system.

                          My guess is that you are using a version of Qt that no longer supports XP (for example, I don't think Qt 5.8.x supports XP anymore). You might have a problem with your version of Qt were it was not compiled with the proper options to support XP. Either way the best way to solve this is to setup an environment on WinXP and compile your program there. If it works on XP it will run on Win10 but the reverse is not always true.

                          A Offline
                          A Offline
                          atraks
                          wrote on 26 Mar 2017, 16:02 last edited by
                          #12

                          @Rondog thank u for your answer

                          I m using Desktop QT 5.6.2 mİNGW 32 bit, I guess it is competible with windows xp.

                          I try to setup online qt-unfied-windows-x86-2.0.5.1-online. exe file from qt site to my xp system.. But Iı get not valid win32 application error.
                          i dont know what is my problem.

                          1 Reply Last reply
                          0
                          • C Offline
                            C Offline
                            Cobra91151
                            wrote on 26 Mar 2017, 16:11 last edited by Cobra91151
                            #13

                            I am also developing my apps for Win XP and use Qt 5.7.1, everything works from Win XP to Win 10, but I use Visual Studio compiler. I think the problem might be with MinGW or wrong library distribution. Try to run clean and qmake then build your project. Use Qt Command Prompt with command: windeployqt NameOfYourApp.exe to distribute your project libraries (don't forget to set path to your executable dir). Then try it on Win XP.

                            A 1 Reply Last reply 26 Mar 2017, 16:23
                            0
                            • C Cobra91151
                              26 Mar 2017, 16:11

                              I am also developing my apps for Win XP and use Qt 5.7.1, everything works from Win XP to Win 10, but I use Visual Studio compiler. I think the problem might be with MinGW or wrong library distribution. Try to run clean and qmake then build your project. Use Qt Command Prompt with command: windeployqt NameOfYourApp.exe to distribute your project libraries (don't forget to set path to your executable dir). Then try it on Win XP.

                              A Offline
                              A Offline
                              atraks
                              wrote on 26 Mar 2017, 16:23 last edited by
                              #14

                              @Cobra91151 i run clean and qmake, get error subsystem:windows,5.01: no such file or director..

                              I guess Mingw is a problem. can ı set my code visual studio? Is it hard?

                              1 Reply Last reply
                              0
                              • C Offline
                                C Offline
                                Cobra91151
                                wrote on 26 Mar 2017, 16:36 last edited by Cobra91151
                                #15

                                You can try Visual Studio compiler.

                                1. Save your project and close Qt.
                                2. Download and install free MS Visual Studio 2015 Community version
                                3. Try to build your project.

                                Make sure you have auto selected Visual Studio kit in Qt or you will have to select it manually.

                                A 1 Reply Last reply 26 Mar 2017, 17:25
                                0
                                • C Cobra91151
                                  26 Mar 2017, 16:36

                                  You can try Visual Studio compiler.

                                  1. Save your project and close Qt.
                                  2. Download and install free MS Visual Studio 2015 Community version
                                  3. Try to build your project.

                                  Make sure you have auto selected Visual Studio kit in Qt or you will have to select it manually.

                                  A Offline
                                  A Offline
                                  atraks
                                  wrote on 26 Mar 2017, 17:25 last edited by
                                  #16

                                  @Cobra91151 i wll try, u mean qt 5.6.2 with vs2015 can ı succed it?

                                  thank u my hero

                                  C 1 Reply Last reply 26 Mar 2017, 17:33
                                  0
                                  • A atraks
                                    26 Mar 2017, 17:25

                                    @Cobra91151 i wll try, u mean qt 5.6.2 with vs2015 can ı succed it?

                                    thank u my hero

                                    C Offline
                                    C Offline
                                    Cobra91151
                                    wrote on 26 Mar 2017, 17:33 last edited by Cobra91151
                                    #17

                                    @atraks

                                    I think it will support it. Check this link for compatibility Qt Supported Platforms and Configurations

                                    By the way, when compiling app with Qt 5.7.1 will also support Win XP SP3 x86 (even I have tried on Win XP SP2 x64) but in docs it has no support.

                                    1 Reply Last reply
                                    0
                                    • A Offline
                                      A Offline
                                      atraks
                                      wrote on 26 Mar 2017, 21:18 last edited by
                                      #18

                                      can anyone suggust something?

                                      1 Reply Last reply
                                      0
                                      • R Offline
                                        R Offline
                                        Rondog
                                        wrote on 26 Mar 2017, 21:48 last edited by
                                        #19

                                        @atraks I am using Qt 5.6.0 with Mingw32 and it works fine from XP to Win10.

                                        I suspect the difference is that I build my version of Qt from source. I also compiled my version of Qt on WinXP just to make sure it works on this OS. I don't use WinXP to write any software but I do use this to compile programs that are required to run on Windows.

                                        Your version of Qt needs the compile options "-target xp -no-directwrite". Example:

                                        ./configure -target xp -no-directwrite ...
                                        

                                        If your version doesn't have these configure options set when compiled it won't work on WinXP (I believe, I didn't try it personally).

                                        I also found I had to change one of the configure executables so it would run on WinXP (it has a target version set higher than WinXP). This situation returns the 'Not a valid Win32 Application' error (that was mentioned in this thread).

                                        You could also use older versions of Qt I suppose. You might run into new problems if you do this though if you want to compile on Win10. An older version of Qt on an older operating system like Win7 (WinXP preferred) should produce something that can run on WinXP.

                                        A 1 Reply Last reply 27 Mar 2017, 08:55
                                        1
                                        • hskoglundH Offline
                                          hskoglundH Offline
                                          hskoglund
                                          wrote on 26 Mar 2017, 22:38 last edited by
                                          #20

                                          Hi, just to add to @Rondog I also use Qt 5.6.2 with MinGW, compiling on Windows 10 64-bit and deploying on Windows XP SP3 32-bit. To get my programs to run on Windows XP I don't need to do recompile or rebuild Qt, I just download the standard Qt 5.6.2 MinGW 32-bit Qt flavor.

                                          About your error: QMAKE_LFLAGS_WINDOWS setting does not work with MinGW compiler. But it is also not needed for the MinGW compiler. when you compile with MinGW compiler you can start your .exe file on Windows NT 4, Windows 2000 and Windows XP.

                                          I'm guessing that error message "Exception processing message 0xC0000139..." instead comes from some problem with your antivirus program and drive letters, try ejecting all USB disks and memory cards from your computer so that only your C: hard disk is connected (note: this is just a guess!).

                                          A 1 Reply Last reply 27 Mar 2017, 11:33
                                          1

                                          1/29

                                          26 Mar 2017, 12:31

                                          • Login

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