Cant deploy qml app to MacOS



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



  • Please, anyone help me?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.