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. Cant deploy qml app to MacOS
Qt 6.11 is out! See what's new in the release blog

Cant deploy qml app to MacOS

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 1.7k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi, My Qt Quick qml application use particles module. I need create launched application for other mac with havent Qt libs, so I need copy all used qt libs to boundless of my app. For this job I use macdeployqt, but its dont deploy imports from qml ... ok I copy it manually but and after use:

    install_name_tool -change
    &

    otool -L AngryBuster.app/Contents/MacOS/Qt/labs/particles/libqmlparticlesplugin.dylib

    AngryBuster.app/Contents/MacOS/Qt/labs/particles/libqmlparticlesplugin.dylib:
    @executable_path/../imports/Qt/labs/particles/libqmlparticlesplugin.dylib (compatibility version 0.0.0, current version 0.0.0)
    @executable_path/../Frameworks/QtDeclarative.framework/Versions/4.0/QtDeclarative (compatibility version 4.8.0, current version 4.8.1)
    @executable_path/../Frameworks/QtScript.framework/Versions/4.0/QtScript (compatibility version 4.8.0, current version 4.8.1)
    @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore (compatibility version 4.8.0, current version 4.8.1)
    @executable_path/../Frameworks/QtSvg.framework/Versions/4.0/QtSvg (compatibility version 4.8.0, current version 4.8.1)
    @executable_path/../Frameworks/QtGui.framework/Versions/4.0/QtGui (compatibility version 4.8.0, current version 4.8.1)
    @executable_path/../Frameworks/QtSql.framework/Versions/4.0/QtSql (compatibility version 4.8.0, current version 4.8.1)
    @executable_path/../Frameworks/QtXmlPatterns.framework/Versions/4.0/QtXmlPatterns (compatibility version 4.8.0, current version 4.8.1)
    @executable_path/../Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork (compatibility version 4.8.0, current version 4.8.1)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
    /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 625.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 123.0.0)

    But my app cant load imports plugin:

    file:///Users/alexkyrpa/Documents/QtProject/AngryBuster-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Release/AngryBuster.app/Contents/Resources/qml/AngryBuster/content/BoomBlock.qml:42:1: plugin cannot be loaded for module "Qt.labs.particles": The file '/Users/alexkyrpa/Documents/QtProject/AngryBuster-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Release/AngryBuster.app/Contents/MacOS/Qt/labs/particles/libqmlparticlesplugin.dylib' is not a valid Qt plugin.
    import Qt.labs.particles 1.0

    Why ????????????

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Please, anyone help me?

      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