-static configure flag for imports

  • 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.

  • 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.

Log in to reply