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. qmlplugindump for QML plugin on iOS platform
QtWS25 Last Chance

qmlplugindump for QML plugin on iOS platform

Scheduled Pinned Locked Moved Solved QML and Qt Quick
qmlqmlplugindumpiosqtquick
4 Posts 2 Posters 1.7k 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.
  • shavS Offline
    shavS Offline
    shav
    wrote on last edited by shav
    #1

    Hi everyone!

    I want to create QML plugin for iOS. How I can generate <plugin_name>.qmltypes file for my iOS QML plugin? For Desktop i'm using command like this:

    <Qt_install_folder>/5.7/clang_64/bin/qmlplugindump <plugin_uri> 1.0 <Qt_install_folder>/5.7/clang_64/qml > ~/<plugin_name>.qmltypes
    

    and all works fine. But if I trying something like this:

    <Qt_install_folder>/5.7/clang_64/bin/qmlplugindump <plugin_uri> 1.0 <Qt_install_folder>/5.7/ios/qml > ~/<plugin_name>.qmltypes
    

    I get error message like this:

    This plugin does not support createPlatformOpenGLContext!
    QQmlComponent: Component is not ready
    file:///Volumes/HPDD/Applications/Qt/Qt5.x/5.7/ios/qml/loaddependencies.qml:2:1: module "QtQuick" plugin "qtquick2plugin" not found
    

    What i do wrong?

    Thanks for the help!

    Mac OS and iOS Developer

    1 Reply Last reply
    0
    • shavS Offline
      shavS Offline
      shav
      wrote on last edited by
      #2

      Hi everyone!

      I can find any ways to generate qmltypes file for static library on iOS platform. So I've create this file by myself. I think my problem is solved.

      Mac OS and iOS Developer

      1 Reply Last reply
      0
      • aj2kA Offline
        aj2kA Offline
        aj2k
        wrote on last edited by
        #3

        How exactly did you solve your problem? Can you provide a smal working example which works for ios?

        1 Reply Last reply
        0
        • shavS Offline
          shavS Offline
          shav
          wrote on last edited by
          #4

          Hi,

          For now I have a project on desktop and mobile. In my case I need to remove a few classes for iOS. I generated qmltypes for desktop version of my project using qmlplugindump and the edit the file in text editor (removed not needed classes). I know this is bad solution but for me it solved problem. For big projects this solution not useful.

          Mac OS and iOS Developer

          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