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] Qt 5.0.1 + MSVC2010 desktop app deployment
Forum Updated to NodeBB v4.3 + New Features

[Solved] Qt 5.0.1 + MSVC2010 desktop app deployment

Scheduled Pinned Locked Moved Installation and Deployment
19 Posts 2 Posters 6.0k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #6

    Sure platform will help, image formats should go in a plugins subfolder.

    By check I meant you could be looking for some configuration/resources and if not available stop you program there.

    What type of application is it ? Widget based ? QML ? OpenGL ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • A Offline
      A Offline
      angry_tapeworm
      wrote on last edited by
      #7

      It's a widget based Qt GUI app, I utilize some of the OpenCV libraries, but that's all.

      The app does not load any external resources after startup, so even if they were missing, that should not cause problems - I only work with some image files, but not right after the app starts.

      I figured that by adding the libraries like this:

      @LIBS += -LC:\opencv\build\x86\vc10\lib
      -lopencv_core246
      -lopencv_features2d246
      -lopencv_highgui246
      -lopencv_nonfree246
      -lopencv_flann246
      -lopencv_calib3d246
      -lopencv_imgproc246@

      it is not necessary to add them as dlls later and that they should be linked statically. Can these libraries cause these problems?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #8

        Unless you are linking to the static version of OpenCV you will need to copy the dlls besides your application or have them in your PATH environment variable.

        One thing you can to is to check your application with Dependency Walker to see whether you have something missing (which should yield a crash unless it's a plugin not loaded)

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • A Offline
          A Offline
          angry_tapeworm
          wrote on last edited by
          #9

          Ok, so I copied the OpenCV dlls corresponding to the libs I added to my .pro file to the exe file directory, nothing happens.

          Dependency walker shows:

          @Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
          @

          There are a few modules with red-ish icons with names like

          @EXT-MS-WIN-ADVAPI32-PSM-APP-L1-1-0.DLL@

          is it a problem? What can be the cause?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #10

            No, these ones are not a concern.

            Can you show a picture or write down how your current application folder looks like ?

            e.g

            myfolder
            myapp.exe
            libopencv_core.dll
            platforms
            ….qwindows.dll
            plugins
            ….imageformats
            ……..qjpeg.dll

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • A Offline
              A Offline
              angry_tapeworm
              wrote on last edited by
              #11

              Ok, my app folder looks like this:
              !http://images.megaupload.cz/app_folder.PNG(app folder)!

              The platforms folder:
              !http://images.megaupload.cz/platforms.PNG(platforms folder)!

              plugins/imageformats:
              !http://images.megaupload.cz/imageformats.PNG(imageformats)!

              To be honest, I copied everything, out of desperation, hoping that I could erase the stuff I do not need later.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                angry_tapeworm
                wrote on last edited by
                #12

                Sorry, the complete contents off app folder after I added the opencv libs:

                !http://images.megaupload.cz/app_folderrnZ0R.PNG(app folder)!

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #13

                  Silly question but… Is this in the release build folder ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    angry_tapeworm
                    wrote on last edited by
                    #14

                    Yes, it's in the release build folder.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #15

                      Which installer of Qt did you use ?

                      Also, why not update to a more recent version ? Current stable is 5.1.1 and 5.2 is almost out.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        angry_tapeworm
                        wrote on last edited by
                        #16

                        Desktop Qt 5.0.1 MSVC2010 32bit. I didn´t keep track of the current versions, but ok, I'll update the Qt and see what happens.

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #17

                          IIRC, it means that it's an ANGLE build, I don't know whether this can play a role when also using OpenCV.

                          If it doesn't get better, just build a default widget project and try to make it run. Doing so you'll be sure that it can start properly on your computer

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            angry_tapeworm
                            wrote on last edited by
                            #18

                            OH GOD IT ACTUALLY WORKS!

                            I built it using Qt 5.1.1 and placed the new version dlls in the release folder and it works! You are my hero! Thanks a million!

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #19

                              You're welcome !

                              Since now you have everything working, please, update the thread title prepending [solved] so other forum users may know a solution has been found :)

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              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