Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Cannot load library but only on Windows
Forum Update on Monday, May 27th 2025

Cannot load library but only on Windows

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 1 Posters 152 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.
  • T Offline
    T Offline
    t.vanbesien
    wrote on 14 Feb 2025, 13:30 last edited by
    #1

    Hi,

    I'm trying to build a C++ plugin and have it run on Windows and Linux.

    On Linux I am able to:

    • Build the plugin in Qt Creator
    • Use the plugin when building an application with Qt Design Studio by setting the importPaths property of the .qmlproject file.

    However, when I try to do the same thing on Windows, it doesn't work. I can build the plugin in Qt Creator, and run the project in Qt Creator too, using the plugin. So the project works. But when running it via Qt Design Studio I get the following error:

    14:19:27: Starting E:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\bin\qml2puppet-4.6.2.exe --qml-runtime -I C:/Users/tvanbesi/Desktop/bobink/Bobink/. -I C:/Users/tvanbesi/Desktop/bobink/Bobink-Release/qml --apptype widget C:/Users/tvanbesi/Desktop/bobink/Bobink/BobinkContent/App.qml...
    QML debugging is enabled. Only use this in a safe environment.
    Info: Starting QML Runtime
    Warning: QQmlApplicationEngine failed to load component
    Warning: file:///C:/Users/tvanbesi/Desktop/bobink/Bobink/BobinkContent/App.qml:5:1: Cannot load library C:\Users\tvanbesi\Desktop\bobink\Bobink-Release\qml\BobinkMachineModel\bobink_machine_model_plugin.dll: The specified module could not be found.
    qml: Did not load any objects, exiting.
    

    It says the specified module could not be found. But it is there when I check.

    I'm confused as to why it works on Linux but not on Windows following the same steps, rebuilding everything, setting the importPaths etc. More confused as to why Qt Creator is able to load the plugin and run the app but not Qt Design Studio, but only on Windows. So the plugin works, for some reason Qt Design Studio is unable to find it.

    I don't have errors in the Qt Design Studio interface, the QML linter isn't complaining about the library being missing or anything.

    I am using Qt version 6.8.0 for Qt Creator and Qt Design Studio (no way to change the kit in Qt Design Studio anyway) on both platforms.

    Please help!

    1 Reply Last reply
    0
    • T Offline
      T Offline
      t.vanbesien
      wrote on 14 Feb 2025, 14:32 last edited by t.vanbesien
      #2

      Okay so it seems that the problem is the compiler not being the same in Qt Creator than in Qt Design Studio. My Qt Creator kit on Windows is using MinGW but it's not compatible with whatever Qt Design Studio is using.

      Does someone know how to proceed?

      1 Reply Last reply
      0

      1/2

      14 Feb 2025, 13:30

      • Login

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