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. Project Structure for QT Quick plugins
Qt 6.11 is out! See what's new in the release blog

Project Structure for QT Quick plugins

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 626 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.
  • R Offline
    R Offline
    robert35
    wrote on last edited by
    #1

    Hi,
    Is there a possibility, within (qt-creator), to create apps with that structure :
    MyProject

    --sharedlib1 ( use any of sharedlibrary i created )
    --sharedlib2 (use any of sharedlibrary i created )
    --sharedlib3 (use any of sharedlibrary i created )
    --qtquick2Plugin1 (use any of sharedlibrary or plugin i created ) --> use sharedlib1 in my example
    --qtquick2Plugin2 (use any of sharedlibrary or plugin i created )
    --app1 (qml app use any lib or plugin) --> use qtquick2Plugin1 and sharedlib2
    --app2 (qml app use any lib or plugin)

    (no cycle in the use)

    Actually I can create shared libs and modules, but when running the first app ( with : 'import "../qtquick2Plugin1" 1.0' inside), the app quit with an error message :
    ...Main.qml:7 plugin cannot be loaded for module "...MyProject.qtquick2Plugin1Plugin": Impossible de charger la bibliothèque...MyProject/qtquick2Plugin1/libqtquick2Plugin1Plugin.so : (libsharedlib1.so.1: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type)
    I change the message accordingly to my example of project : The plugin qtquick2Plugin1 does not find sharedlib1

    If it is not too much to ask, is somebody might create such a "foo project", i'm stuck with those problems (and lots other boring problem not related to coding but project configuration) ( i don't want to copy my libs somewwhere manualy in order to get the build/install process clean), in a second hand is there an existing project wich is structured like that but which one...?
    From my point of view it might be in the app1.qmlproject i may declare the libs but how...?

    Regards.

    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