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. QPluginLoader problem [SOLVED]
Forum Updated to NodeBB v4.3 + New Features

QPluginLoader problem [SOLVED]

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.3k 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.
  • W Offline
    W Offline
    wibstr
    wrote on last edited by
    #1

    Hi, I'm having trouble loading a custom plugin using the QPluginLoader on Windows 7. It's getting as far as as the LoadLibrary() system call in QLibraryPrivate::load_sys() in qlibrary_win.cpp, so I know it's actually finding the file. I know the dll is valid because I'm able to load it in another Qt application. The error string that Qt gives me is:

    bq. Cannot load library C:/Path/to/my/customplugin.dll: The specified module could not be found

    I don't know how to debug the LoadLibrary call. There must be some configuration or something that I'm forgetting, but I can't figure out what it is. Any suggestions?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bodzio131
      wrote on last edited by
      #2

      Are you sure that at time of loading all customplugin.dll dependencies are fulfilled?

      1 Reply Last reply
      1
      • W Offline
        W Offline
        wibstr
        wrote on last edited by
        #3

        Ah, that was it. I'd forgotten to copy over a required dll. Thanks a lot.

        If anyone else is interested, I found this very helpful in debugging the LoadLibrary:

        http://blogs.msdn.com/b/junfeng/archive/2006/11/20/debugging-loadlibrary-failures.aspx

        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