Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [solved] Application did not run on different Windows Versions (MSVC2008 + QT4.7.1)

[solved] Application did not run on different Windows Versions (MSVC2008 + QT4.7.1)

Scheduled Pinned Locked Moved Installation and Deployment
17 Posts 7 Posters 8.6k 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.
  • S Offline
    S Offline
    swhweng
    wrote on last edited by
    #7

    I have tried also to deploy with dlls from plugins/codecs , plugins/imageformats, plugins/iconengines but still I can’t see icons
    I can see only when I install full Qt SDK and I deploy to qt/bin directory
    But we understand the end user should not install full Qt SDK so as to use application
    why such a problem?>

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #8

      You can use some process monitor to check which files your application is trying (and failing) to open. That should give you a better understanding of which files you actually need to distribute.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        steph0815
        wrote on last edited by
        #9

        Sorry it was lunch time :)

        -Gerolf
        Yes i use the DLL which come from the development machine. When I analyze the application with Dependency Walker it gives me the same output.

        -Pavel Mazniker
        Yes the problems are on machines which are not used for development and where no third-party software is installed. The first prob I see is the missing image and the missing icons. The task behind the menu is working. Only when I open images the program crash's. On one machine the program wont start at all and gives me only the output that i should reinstall the software.

        -Tobias Hunger
        Will try that, totally forgot about a process monitor!

        -all
        still there is the question why is it not working with the icons but the program is starting?! Did I miss something?

        THX so far!!

        greetz
        Stephan

        1 Reply Last reply
        0
        • ZlatomirZ Offline
          ZlatomirZ Offline
          Zlatomir
          wrote on last edited by
          #10

          [quote author="steph0815" date="1298034219"]-all
          still there is the question why is it not working with the icons but the program is starting?! Did I miss something?[/quote]
          This is normal behavior, the OS doesn't load all the dll's when your application starts, this is an optimization to start applications faster.

          As for the crash make sure that you deploy the correct dll's, and imageformats folder should be directly in the same folder as application, not in the plugins folder.

          https://forum.qt.io/category/41/romanian

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #11

            See "this thread":http://developer.qt.nokia.com/forums/viewthread/3641/, it has similar problems regarding icons. It is crucial to setup the plugins folder correctly (and maybe add it to the library path, see the thread for a snippet).

            Also, have a look at "Dependencies in Qt":http://developer.qt.nokia.com/wiki/Qt_Library_Cross_Dependencies to check if you deliver all relevant libs and plugins.

            For visual studio it is very likely that you will have to install the runtime redistributalbe (ie. run vcredist_xxx.exe on the target machine or include the libs into an MSI installer). If that is missing, the system moans about a bad application configuration and recommends to "reinstall" it (which does not work if you do not at the redist package).

            If a plugin is missing (imageformat, iconengine), the program starts but does not handle the data - resulting in missing icons.

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • S Offline
              S Offline
              steph0815
              wrote on last edited by
              #12

              Hey,

              THX Holger u saved my life again. I used the library path import u wrote on the other article and now it is working fine. I figured it out that this is the problem when i used the QT directory structure for the plugins. After I created the /QT/4.7.1/plugins/.... folder it worked. Then I added your path import and now it works perfect!!

              I only copy the c++ redistributables direct in my working directory. Is that a problem or can I stay with that?

              THX
              steph0815

              greetz
              Stephan

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #13

                The path to the plugins directory can be any, just put it where you want (e.g. as a subdirectory in the directory where your .exe lives) as long as that subdir contains further subdirs with imageformats, iconengines, sqldrivers and so on.

                Regarding the redistributables: That could work too, I'm not really sure. Microsoft wanted to abandon the DLL hell and created the manifest fiasco that makes things even more complicated :-/ I usually just run vcredist_xxxx.exe in my installers, regardless if it is already present or not. If you use Windows Installer MSI (WiX or the like) you can use the Microsoft provided merge modules to include the redistributables.

                http://www.catb.org/~esr/faqs/smart-questions.html

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

                  I just figured out that it is not working with the redistributibles in the directory. It still needs a installed version of it. So I include it in my Installer (NSIS).

                  THX

                  greetz
                  Stephan

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

                    Yea, the redistributables for windows (msvcrt*.dll) are loaded via manifest files from the side by side installation (<windowshome>\winSxs...). On that way, you can have more than one version on that windows and it is needed, as the different compiler versions (also via SPs) have different C-runtimes.

                    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
                    • S Offline
                      S Offline
                      swhweng
                      wrote on last edited by
                      #16

                      Hi people
                      It is such a joy to see a lot of developers, engineers in one place…
                      So are you sure the problem with icons are not visible solved by deploing also plugin directory with its subdirectories together with dlls and .exe on Windows?

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

                        Pavel, if you have a problem, please open your own thread or stick to that one that deals with it (I suppose you mean "this one":http://developer.qt.nokia.com/forums/viewthread/3908/). It is regarded bad behavior to hijack other threads and it clutters the flow of logic and answers.

                        Secondly, I want to point you to the edit link on the right side of your comments. Please use it if you have to correct your posts (and leave a note there). It's not very nice to have tons of double posts that differ only in a few words. I have deleted one of the double posts.

                        Third, please do not answer to this comment here. If you have questions on netiquette etc, pleas read the forum help, the wiki, use google and ask in the Lounge.

                        Thanks for listening.

                        http://www.catb.org/~esr/faqs/smart-questions.html

                        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