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. -static configure flag for imports

-static configure flag for imports

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 2.1k 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.
  • P Offline
    P Offline
    privet
    wrote on last edited by
    #1

    Hi,
    it is possible to compile the most of the plugins into my executable
    (-static configure flag, e.g. for imageformats with using of Q_IMPORT_PLUGIN(...)).

    It is possible to compile the imports statically into my app (especially 'QtDesktop','qt-components').

    Reason: I'm trying to create a small iOS-QML app with using of "import QtDesktop 1.1").
    Qt must be compiled statically for iOS system; it is not allowed (by apple) to load external libraries at runtime.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      privet
      wrote on last edited by
      #2

      That's a possible way to create static imports:

      Build the plugin statically,
      link it to your app.
      Look for the qmlRegisterType() code in the plugin.
      Create a plugin.cpp file in your app which includes that code.

      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