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]Deployment of a Qt application with combining OpenGL and QPainter
Forum Updated to NodeBB v4.3 + New Features

[Solved]Deployment of a Qt application with combining OpenGL and QPainter

Scheduled Pinned Locked Moved Installation and Deployment
8 Posts 3 Posters 3.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.
  • D Offline
    D Offline
    Debbie
    wrote on 1 Apr 2014, 05:03 last edited by
    #1

    I built a Qt application on Window 7 with Visual Studio 2010. I can successfully run the exe with VS2010 (work well with OpenGL and QPainter. I used OpenGL to draw the 3D objects and QPainter to draw the background). But when I deploy it, I found that no 3D objects are rendered (Background has no problem). Did I miss something important in the exe folder ? The folder structure is like this

    --folder--
    Myapp.exe
    icudt51.dll
    icuin51.dll
    icuuc51.dll
    libEGL.dll
    libEGLd.dll
    libGLESv2.dll
    Qt5Core.dll
    Qt5Gui.dll
    Qt5OpenGL.dll
    Qt5Widgets.dll
    platforms/qwindows.dll

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on 1 Apr 2014, 05:37 last edited by
      #2

      try " Dependency Walker":http://qt-project.org/doc/qt-5/windows-deployment.html#application-dependencies

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Debbie
        wrote on 1 Apr 2014, 06:55 last edited by
        #3

        Thanks. I checked with dependency walker, seems nothing missed. I profiled the program and some lines are highlighted. Is that relevant?

        @GetProcAddress(0x74CF0000 [KERNEL32.DLL], "GetCurrentPackageFamilyName") called from "NVD3DUM.DLL" at address 0x6BE95AAE and returned NULL. Error: w{C (127).
        GetProcAddress(0x74CF0000 [KERNEL32.DLL], "GetCurrentPackageFamilyName") called from "NVD3DUM.DLL" at address 0x6BE95AAE and returned NULL. Error: w{C (127).@

        1 Reply Last reply
        0
        • H Offline
          H Offline
          hskoglund
          wrote on 1 Apr 2014, 07:26 last edited by
          #4

          Hi, googling those highlighted lines, it seems it's from a Nvidia graphics driver complaining about not finding a Windows 8 API ("GetCurrentPackageFamilyName").

          Maybe try upgrading the graphics driver on the PC you're deploying to.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            Debbie
            wrote on 1 Apr 2014, 09:02 last edited by
            #5

            I updated my graphics driver (GTX780), but it still cannot render any model by OpenGL.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              Debbie
              wrote on 2 Apr 2014, 02:32 last edited by
              #6

              Thank you guys. I solved the problem this morning.
              The reason is that I copied the dlls from [..\Qt5.2.1\Tools\QtCreator\bin], but I should copy from [..\Qt5.2.1\5.2.1\msvc2010_opengl\bin]. The version is different in two folders. :P

              1 Reply Last reply
              0
              • H Offline
                H Offline
                hskoglund
                wrote on 2 Apr 2014, 05:34 last edited by
                #7

                Aha! I know before that if you installed Qt for the MingGW compiler, you couldn't use the .dlls in \Tools\QtCreator\bin for deployment, because QtCreator is built using VS2010.

                But you installed Qt for VS2010, so the dlls should be compatible, or not. Because probably QtCreator is built using the vanilla Qt VS2010 version and you installed and used the Qt VS2010 OpenGL version?

                (The reason I'm asking, I'm writing a blog post on "my blog":http://www.tripleboot.org about deployment pitfalls, and this is one of them :-)

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  Debbie
                  wrote on 2 Apr 2014, 06:45 last edited by
                  #8

                  I installed two things on my computer (Window 7 64-bit).

                  1. Qt 5.2.1 for Windows 32-bit (VS 2010, OpenGL, 517 MB)
                  2. Visual Studio Add-in 1.2.2 for Qt5

                  hope this information is helpful to you :)

                  1 Reply Last reply
                  0

                  1/8

                  1 Apr 2014, 05:03

                  • Login

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