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. [solved] Problem dynamic linking QT dlls
QtWS25 Last Chance

[solved] Problem dynamic linking QT dlls

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

    Hello, I am trying to make a windows application ( desktop ). I am using QT5 with qtcreator with MinGW. I am starting a default QT Gui application, then build a release and using DependancyListing program, the qt QA suggested, I`ve added the DLL-s that are required. However I still get nasty errors.

    1. The application failed to load because it could not find QT platform plugin "windows"
    2. After I`ve added Qt/Qt5.1.1/5.1.1/mingw48_32/plugins/platforms/qwindows.dll it gave me some windows error, memory error with abnormal termination and suggest reinstall.

    Can you provide tell me where I got wrong with deployment?

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

      Hi and welcome to devnet ?

      Are you sure you got all dependencies ? Have a look at the "windows deployment guide":https://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html it might contain additional information you are needing.

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

        Thank you. Ive found my mistake. It appears that qwindows.dll should be in its default platforms/ dir. :) Thanks, for re-refering to me the tutorial. Lame of me, lame.

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

          You're welcome !

          Windows deployment can be tricky. You might also be interested by the qt.conf file (but if you have it all working as you want it, you can safely ignore it)

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

            Yes, Ill skip diggin into it as long as it works. I am writing a desktop app and the user wants it to work. BTW, I am using wine with QT Creator+MinGW. Any more civilized ways to compile for windows on linux qtcreator? However I need the wine to test if working but I am having 2 qtcreators now...

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

              The only other option I see would be to have a virtual machine containing Windows and using the MinGW package to build/test natively.

              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