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. Embed plugin with .so
Qt 6.11 is out! See what's new in the release blog

Embed plugin with .so

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 576 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
    tzmotional
    wrote on last edited by
    #1

    Hi. I have some qml plugin modules that I want to embed as resource. Each module includes a .so that's compiled from some cpp files and some qmlfiles.
    I managed to build qmldir, .so and qml files as resources. But when I tried to load it, it gives the following error. It seems the module qmldir is loaded, but cannot load the .so embedded as resource.
    Is there a way around this?

    QQmlImports(qrc:/qml/app.qml)::importExtension: loaded ":/modules/<my-module>"
    QQmlImportDatabase::resolvePlugin: Could not resolve plugin "<my-module>" in ":/modules/<my-module>"
    QQmlApplicationEngine failed to load component

    jsulmJ 1 Reply Last reply
    0
    • T tzmotional

      Hi. I have some qml plugin modules that I want to embed as resource. Each module includes a .so that's compiled from some cpp files and some qmlfiles.
      I managed to build qmldir, .so and qml files as resources. But when I tried to load it, it gives the following error. It seems the module qmldir is loaded, but cannot load the .so embedded as resource.
      Is there a way around this?

      QQmlImports(qrc:/qml/app.qml)::importExtension: loaded ":/modules/<my-module>"
      QQmlImportDatabase::resolvePlugin: Could not resolve plugin "<my-module>" in ":/modules/<my-module>"
      QQmlApplicationEngine failed to load component

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @tzmotional said in Embed plugin with .so:

      Is there a way around this?

      I don't think you can directly load libs from resource files. You will need to store them somewhere first.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      T 1 Reply Last reply
      0
      • jsulmJ jsulm

        @tzmotional said in Embed plugin with .so:

        Is there a way around this?

        I don't think you can directly load libs from resource files. You will need to store them somewhere first.

        T Offline
        T Offline
        tzmotional
        wrote on last edited by
        #3
        This post is deleted!
        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