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. Qt app for windows XP

Qt app for windows XP

Scheduled Pinned Locked Moved Solved General and Desktop
28 Posts 4 Posters 3.2k 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.
  • H hskoglund
    5 Jun 2020, 13:58

    That misbehaved update from Microsoft last year which caused the sprintf_s error, it seems not to have touched msvcrt.dll directly, but rather some other files, but msvcrt.dll got the raw deal :-(

    msvcrt.dll is somewhat of an unwanted child from Microsoft's point of view, for example here's what Raymond Chen writes: https://devblogs.microsoft.com/oldnewthing/20140411-00/?p=1273

    O Offline
    O Offline
    ODБOï
    wrote on 5 Jun 2020, 13:59 last edited by ODБOï 6 May 2020, 14:01
    #17

    guys thank you very much for help and thank you for your time

    1 Reply Last reply
    0
    • H hskoglund
      5 Jun 2020, 13:58

      That misbehaved update from Microsoft last year which caused the sprintf_s error, it seems not to have touched msvcrt.dll directly, but rather some other files, but msvcrt.dll got the raw deal :-(

      msvcrt.dll is somewhat of an unwanted child from Microsoft's point of view, for example here's what Raymond Chen writes: https://devblogs.microsoft.com/oldnewthing/20140411-00/?p=1273

      O Offline
      O Offline
      ODБOï
      wrote on 5 Jun 2020, 14:23 last edited by
      #18

      @hskoglund said in Qt app for windows XP:

      for example here's what Raymond Chen writes: https://devblogs.microsoft.com/oldnewthing/20140411-00/?p=1273

      a real nightmare the story of this dll, just like my day ^^

      1 Reply Last reply
      0
      • H hskoglund
        5 Jun 2020, 13:49

        @LeLev Don't forget that line in your .pro file:

        QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01
        

        P.S. Just tried an empty vanilla Qt 5.6.3 MinGW49_32 QtQuick QML project (where you see Hello World in the middle of 640x480 window. Built on Windows 10 and tested on Windows XP, worked fine without that sprintf_s error, the msvcrt.dll on that Windows XP has version 7.0.2600.5512.

        Anyway, since MSVC2013 is Microsoft own stuff, it's more likely to survive as the years go by :-)

        O Offline
        O Offline
        ODБOï
        wrote on 5 Jun 2020, 14:38 last edited by
        #19

        @hskoglund said in Qt app for windows XP:

        Don't forget that line in your .pro file:
        QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01

        i have error in compilation output saying
        g++: error: /SUBSYSTEM:WINDOWS,5.01: No such file or directory

        if i add this to my pro file
        QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01

        1 Reply Last reply
        0
        • H Offline
          H Offline
          hskoglund
          wrote on 5 Jun 2020, 14:39 last edited by hskoglund 6 May 2020, 14:42
          #20

          That line is only applicable if you use the MSVC2013 compiler

          Edit: to satisfy both compilers, we can use a prefix, change the line to

          win32-msvc:QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01
          
          1 Reply Last reply
          1
          • O Offline
            O Offline
            ODБOï
            wrote on 5 Jun 2020, 14:42 last edited by
            #21

            @hskoglund said in Qt app for windows XP:

            QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01

            oh ok! my bad, i was still trying with minGw

            1 Reply Last reply
            0
            • O Offline
              O Offline
              ODБOï
              wrote on 5 Jun 2020, 15:11 last edited by ODБOï 6 May 2020, 15:14
              #22

              @hskoglund , @JonB

              apparently qt-opensource-windows-x86-msvc2013-5.6.0 that i just installed doas not configure kits automatically,

              i have no compiler and no debugger in the kit, so i cant compile the project

              do i have to download the compiler separately ? i dont see it in my qt 5.6 install dir C:\Qt\Qt5.6.0\5.6\msvc2013\bin nor in C:\Qt\Qt5.6.0\Tools\

              compiler column is empty here..
              https://doc.qt.io/archives/qt-5.6/supported-platforms.html

              H 1 Reply Last reply 5 Jun 2020, 15:14
              0
              • O ODБOï
                5 Jun 2020, 15:11

                @hskoglund , @JonB

                apparently qt-opensource-windows-x86-msvc2013-5.6.0 that i just installed doas not configure kits automatically,

                i have no compiler and no debugger in the kit, so i cant compile the project

                do i have to download the compiler separately ? i dont see it in my qt 5.6 install dir C:\Qt\Qt5.6.0\5.6\msvc2013\bin nor in C:\Qt\Qt5.6.0\Tools\

                compiler column is empty here..
                https://doc.qt.io/archives/qt-5.6/supported-platforms.html

                H Offline
                H Offline
                hskoglund
                wrote on 5 Jun 2020, 15:14 last edited by
                #23

                @LeLev try
                https://visualstudio.microsoft.com/vs/older-downloads/

                O 1 Reply Last reply 5 Jun 2020, 15:19
                1
                • H hskoglund
                  5 Jun 2020, 15:14

                  @LeLev try
                  https://visualstudio.microsoft.com/vs/older-downloads/

                  O Offline
                  O Offline
                  ODБOï
                  wrote on 5 Jun 2020, 15:19 last edited by ODБOï 6 May 2020, 15:23
                  #24

                  @hskoglund ok i will download vs2013 and try to use the c++ compiler from it
                  thank you

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    hskoglund
                    wrote on 5 Jun 2020, 15:37 last edited by
                    #25

                    If, after you've installed MSVC2013, you cannot persuade Qt to recognize that compiler/kit, one workaround is to uninstall Qt 5.6 MSVC2013 and then install it in Qt again.

                    1 Reply Last reply
                    1
                    • O Offline
                      O Offline
                      ODБOï
                      wrote on 8 Jun 2020, 08:07 last edited by
                      #26

                      @jsulm @hskoglund @JonB
                      Thank you so much!
                      my application now works on XP.
                      all i have to do now is re-write most of the qml code because i have to switch from qt quick controls 2 to controls 1

                      H 1 Reply Last reply 8 Jun 2020, 13:11
                      0
                      • O ODБOï
                        8 Jun 2020, 08:07

                        @jsulm @hskoglund @JonB
                        Thank you so much!
                        my application now works on XP.
                        all i have to do now is re-write most of the qml code because i have to switch from qt quick controls 2 to controls 1

                        H Offline
                        H Offline
                        hskoglund
                        wrote on 8 Jun 2020, 13:11 last edited by
                        #27

                        @LeLev Now there's one reason to try 5.7 instead of 5.6 (I use MSVC2013 with Qt. 5.7.1 for Windows XP) because I think qt quick controls 2 works in 5.7...

                        O 1 Reply Last reply 8 Jun 2020, 13:20
                        1
                        • H hskoglund
                          8 Jun 2020, 13:11

                          @LeLev Now there's one reason to try 5.7 instead of 5.6 (I use MSVC2013 with Qt. 5.7.1 for Windows XP) because I think qt quick controls 2 works in 5.7...

                          O Offline
                          O Offline
                          ODБOï
                          wrote on 8 Jun 2020, 13:20 last edited by
                          #28

                          @hskoglund good, maybe i will try it. But i already adapted everything to work with controls 1
                          thank you for the information.
                          Right now im trying to "optimize" some things because the application is very slow on the XP, i guess it will be even slower if i use controls 2

                          1 Reply Last reply
                          0

                          26/28

                          8 Jun 2020, 08:07

                          • Login

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