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. Static linked app requires DLLs

Static linked app requires DLLs

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 1.7k 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.
  • M Offline
    M Offline
    mobi
    wrote on last edited by
    #1

    Hello everybody,

    first of all, sorry for my english.

    My prob is, i have Qt 5.2 static linked and added the Qt Version and the Kit. And then i have added the Kit to my project and compiled it. All goes right and my app is much bigger than the non-static version. But when i start my app, there comes the messagebox which says, thats he requires the Qt5Core, Qt5Test, .. dlls.

    Whats wrong?

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

      Hi,

      Do you have any dependencies that uses Qt 5 ? Using any plugins ?

      Also, check what Dependency Walker tells you about your application dependencies

      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
      • M Offline
        M Offline
        mobi
        wrote on last edited by
        #3

        Hi,

        thanks i got it. I'am using the LIBOPENCV_HIGHGUI246.DLL and that uses Qt5. But the opencv Files are not static. Does a static app cannot use dynamic linked files?

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

          A static app can very well use dlls.

          What happens is that highgui is linked to a dynamic Qt 5 so it needs it in order to work

          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
          • M Offline
            M Offline
            mobi
            wrote on last edited by
            #5

            Ok, so i think thats i have to static linked opencv. Thats right?

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

              Not necessarily, you can build OpenCV with the same Qt 5 you use for your application and you'll only need the OpenCV dlls

              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