Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Solve]QT 5.1 Deployment on mac OS X, how could I deploy the QtQuick2 apps?

[Solve]QT 5.1 Deployment on mac OS X, how could I deploy the QtQuick2 apps?

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 1 Posters 1.6k 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.
  • S Offline
    S Offline
    stereomatching
    wrote on last edited by
    #1

    How could I let the app know where to find the dylib?

    I create the folder inside of the bundle

    @
    mkdir qmlTest2.app/Contents/PlugIns
    mkdir qmlTest2.app/Contents/PlugIns/QtQuick
    mkdir qmlTest2.app/Contents/PlugIns/QtQuick/Controls@

    use install_name_tool to change the id and dependencies of the "libqtquickcontrolsplugin.dylib"
    but the app always complain it can't find the QtQuick component

    My qt.conf is
    @
    [Paths]
    Plugins = PlugIns
    @

    Do I need to add something into the qt.conf?the plugins
    under "/Users/name/Qt5.1.0/5.1.0/clang_64/qml" can't find by the app

    The whole procedures of my deployment steps are

    1 : copy the dll of "qml/QtQuick/Controls" to "Contents/PlugIns/QtQuick/Controls"

    2 : run the script on stackoverflow "workaround":http://stackoverflow.com/questions/17475788/qt-5-1-and-mac-bug-making-macdeployqt-not-working-properly.Thanks to JimmyTaker

    3 : run macdeployqt

    4 : execute the app by lldb

    Then I get the error message,

    bq. file:///Users/Qt/program/experiment_apps_and_libs/qmlTest2/main.qml:23:1: module "QtQuick" is not installed
    import QtQuick 2.1

    I can find the QtQuick module when I run otool -L, so I guess the problem maybe is on the plugins

    @executable_path/../Frameworks/QtQuick.framework/Versions/5/QtQuick@

    The qml is very simple

    @
    import QtQuick 2.1

    Rectangle{
    width: 400
    height: 300
    color: "black"
    }
    @

    ps : Some say the macdeploy of Qt5.1rc don't have bug like Qt5.1, I tried it but it do not work either
    looks like macdeploy can't deploy the QtQuick apps yet

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stereomatching
      wrote on last edited by
      #2

      Any document could show us how to deploy QtQuick2 apps on mac?
      Which plugins we must have?Where are they?

      I am staring at a blank white screen with no information on what I am doing wrong.
      It is highly frustrating!

      my .pro

      @
      QT += core gui qml quick

      CONFIG += c++11

      SOURCES +=
      main.cpp

      OTHER_FILES +=
      main.qml

      @

      1 Reply Last reply
      0
      • S Offline
        S Offline
        stereomatching
        wrote on last edited by
        #3

        Solved, check out this answer
        "savior":http://stackoverflow.com/questions/17475788/qt-5-1-and-mac-bug-making-macdeployqt-not-working-properly/17591828#17591828

        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