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. Compiling for windows xp
Forum Updated to NodeBB v4.3 + New Features

Compiling for windows xp

Scheduled Pinned Locked Moved General and Desktop
17 Posts 5 Posters 9.1k 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.
  • L Offline
    L Offline
    lgeyer
    wrote on last edited by
    #4

    Specify "doesn't run".

    Are there any errors or exceptions thrown?
    Have you distributed all neccessary libraries along with your application?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Scylla
      wrote on last edited by
      #5

      Have you checked the dependencies with "dependency walker":http://www.dependencywalker.com/ ?
      I think there is some lib missing!

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kitten
        wrote on last edited by
        #6

        yes i think i distrobuted its dependencies
        because it runs on other windows 7 but it doesn't run on windows xp

        www.kitten.mihanblog.com

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Scylla
          wrote on last edited by
          #7

          All my application developed on my win7 are running on win xp ;-)

          Have you checked the dependencies on the xp machine?

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kitten
            wrote on last edited by
            #8

            i think it is 'nt about dependencies

            www.kitten.mihanblog.com

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kitten
              wrote on last edited by
              #9

              should i distrubute kernel32.dll and msvcr90.dll and mcvcp90.dll?

              www.kitten.mihanblog.com

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Scylla
                wrote on last edited by
                #10

                bq. msvcr90.dll and mcvcp90.dll?

                This two of course, these are the mscv runtime libs.

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  lgeyer
                  wrote on last edited by
                  #11

                  And you will have - of course - to redistribute the Qt DLLs as well.

                  But as long as you do not specify what "doesn't run" means this is some kind of fishing in murky waters.

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    kitten
                    wrote on last edited by
                    #12

                    sorry for my bad english:D
                    the program does'nt run on windows xp
                    but it run on any windows 7

                    www.kitten.mihanblog.com

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      kitten
                      wrote on last edited by
                      #13

                      i found a problem i should download visual studio redistribute and install it on windows xp
                      http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=5582

                      www.kitten.mihanblog.com

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        Scylla
                        wrote on last edited by
                        #14

                        bq. i think it is ‘nt about dependencies

                        How did you check this?

                        1 Reply Last reply
                        0
                        • L Offline
                          L Offline
                          lgeyer
                          wrote on last edited by
                          #15

                          [quote author="kitten" date="1313918381"]sorry for my bad english:D[/quote]
                          It's not about bad english, it's about insufficient information.

                          Does your application even start?
                          Is there an error message when you start your application? If yes, which?
                          If it starts successfully - does your application crash?
                          Which DLLs did you redistribute along with your application? In which localtion did you put this DLLs?
                          Have you tested this on multiple Windows XP / Windows 7 machines?

                          Otherwise we have to depend on our crystal balls which is sometimes pretty insufficient too.

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            sigrid
                            wrote on last edited by
                            #16

                            The following "document":http://doc.qt.nokia.com/4.7/deployment-windows.html contains detailed information on how to deploy your application on Windows. The recommended way to distribute the C runtimes is to include the appropriate Visual C++ Redistributable Package (VCRedist) executable with your application and ensure that it is executed when the user installs your application. Try doing that to see if it solves the problem and make sure that your deployment is in accordance with what's recommended in the link above.

                            1 Reply Last reply
                            0
                            • G Offline
                              G Offline
                              giesbert
                              wrote on last edited by
                              #17

                              [quote author="kitten" date="1313915797"]my windows is 64 bit and when i compile it on release mode it doesn't run [/quote]

                              You should also compile 32 bit for 32 bit systems. 32 bit software can run on 32 bit machines and on 64 bit machines. 64 bit software only on 64 bit machines.

                              The second thing is, if you compile with MSVS, you must always ensure that the redistributables are correctly installed.

                              Nokia Certified Qt Specialist.
                              Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                              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