Results 1 to 1 of 1

Thread: QT 5.1rc1 Deployment on mac OS X, how could I deploy a simple QtQuick2 apps?

  1. #1
    Join Date
    Jan 2011
    Posts
    127
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default QT 5.1rc1 Deployment on mac OS X, how could I deploy a simple QtQuick2 apps?

    Why rc1 but not release version?Because the macdeploy of release version has more bugs than rc1

    The qml is very simple
    Qt Code:
    1. import QtQuick 2.1
    2.  
    3. Rectangle{
    4. width: 400
    5. height: 300
    6. color: "black"
    7. }
    To copy to clipboard, switch view to plain text mode 

    my .pro
    Qt Code:
    1. QT += core gui qml quick
    2.  
    3. CONFIG += c++11
    4.  
    5. SOURCES += \
    6. main.cpp
    7.  
    8. OTHER_FILES += \
    9. main.qml
    To copy to clipboard, switch view to plain text mode 

    But I can't even deploy this simple app

    My scrips

    Qt Code:
    1. #******copy main.qml into the bundle**********
    2. cp /Users/Qt/program/experiment_apps_and_libs/qmlTest2/main.qml /Users/Qt/program/experiment_apps_and_libs/qmlTest2/qmlTest2.app/Contents/MacOs
    3.  
    4. #*******create the folder and copy the plugins into the bundle**********
    5. mkdir qmlTest2.app/Contents/PlugIns
    6. mkdir qmlTest2.app/Contents/PlugIns/QtQuick
    7.  
    8. mkdir qmlTest2.app/Contents/PlugIns/QtQuick/LocalStorage
    9. cp /Users/yyyy/Qt5.1.0RC1/5.1.0-rc1/clang_64/qml/QtQuick/LocalStorage/libqmllocalstorageplugin.dylib qmlTest2.app/Contents/PlugIns/QtQuick/LocalStorage
    10. cp /Users/yyyy/Qt5.1.0RC1/5.1.0-rc1/clang_64/qml/QtQuick/LocalStorage/plugins.qmltypes qmlTest2.app/Contents/PlugIns/QtQuick/LocalStorage
    11. cp /Users/yyyy/Qt5.1.0RC1/5.1.0-rc1/clang_64/qml/QtQuick/LocalStorage/qmldir qmlTest2.app/Contents/PlugIns/QtQuick/LocalStorage
    12.  
    13. mkdir qmlTest2.app/Contents/PlugIns/QtQuick.2
    14. cp /Users/yyyy/Qt5.1.0RC1/5.1.0-rc1/clang_64/qml/QtQuick.2/libqtquick2plugin.dylib qmlTest2.app/Contents/PlugIns/QtQuick.2
    15. cp /Users/yyyy/Qt5.1.0RC1/5.1.0-rc1/clang_64/qml/QtQuick.2/plugins.qmltypes qmlTest2.app/Contents/PlugIns/QtQuick.2
    16. cp /Users/yyyy/Qt5.1.0RC1/5.1.0-rc1/clang_64/qml/QtQuick.2/qmldir qmlTest2.app/Contents/PlugIns/QtQuick.2
    17.  
    18. #**********call macdeployqt***************
    19. macdeployqt /Users/Qt/program/experiment_apps_and_libs/qmlTest2/qmlTest2.app -verbose=3
    To copy to clipboard, switch view to plain text mode 

    I run otool -L on every plugins I added, all of them become relative path after macdeployqt

    When I run the program by lldb, it always give me the error messages
    file:///Users/Qt/program/experiment_apps_and_libs/qmlTest2/main.qml:23:1: module “QtQuick” is not installed import QtQuick 2.1
    I am stuck staring at a blank white screen with no information on what I am doing wrong.
    No document, current document is almost useless because the bugs of macdeploy haven't fixed since Qt5.0.1, and I have no idea
    when they would fix it(maybe never get fixed).
    no information telling me which dylib I need.It is highly frustrating!
    Anybody know how to deploy QtQuick2 apps on mac os x?

    If this keep going, maybe I better keep on using QWidget, atleast I don't have to suffer the deployment trouble again.
    I am pretty surprise they spend a lot of times to develop QtQuick2 but do not release a useful document to teach us
    how could we deploy the apps on their targeted platforms.
    Last edited by stereoMatching; 15th July 2013 at 08:30.

Similar Threads

  1. QtQuick2 in a Citrix environment?
    By gemmell in forum Qt Quick
    Replies: 0
    Last Post: 29th June 2013, 06:46
  2. Replies: 2
    Last Post: 28th February 2013, 21:47
  3. Correct DLLs for simple Windows deployment
    By Zyl in forum Installation and Deployment
    Replies: 3
    Last Post: 14th June 2012, 15:28
  4. Mac OS X and closed source apps deployment?
    By 0xl33t in forum Installation and Deployment
    Replies: 3
    Last Post: 10th July 2009, 10:30
  5. Replies: 0
    Last Post: 26th June 2009, 18:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.