Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>having the same issue. I applied next workaround: </p> <p>after I build my program, I've changed links inside exe to a right ones</p> <pre><code>install_name_tool -change /Users/username/Qt5.1.0//5.1.0/clang_64/lib/QtQuick.framework/Versions/5/QtQuick /Users/username/Qt5.1.0/5.1.0/clang_64/lib/QtQuick.framework/Versions/5/QtQuick &lt;YourExecutable&gt; </code></pre> <p>After this workaround macdeployqt has changed all links inside exe to a relative ones.</p> <p>But my App became broken. The thing is that I've added all my images and QML files into resources. After I ran macdeployqt - I can not run my app. When I ran this with gdb - I see next error:</p> <pre><code>QQmlApplicationEngine failed to load component qrc:/qml/main.qml:-1 File not found Error: Your root item has to be a Window. </code></pre> <p>So somehow all my resources became unavailable. Does anyone know how to fix that?</p> <p>I also started a discussion on <a href="http://qt-project.org/forums/viewthread/29805/" rel="noreferrer">qt forum</a></p> <p><strong>UPDATE, HOW TO DEPLOY:</strong></p> <ol> <li><p>Use <a href="https://gist.github.com/lasconic/5965542" rel="noreferrer">this script</a> to get rid of double slashes inside dynamic linking paths.</p> <p>./fixqt.sh ~/Qt5.1.0/5.1.0/clang_64</p></li> <li><p>Build macdeployqt tool from this <a href="https://github.com/MaximAlien/macdeployqtfixed" rel="noreferrer">repository</a>.</p></li> <li><p>Run macdeployqt and specify dir with your qml source: </p> <p>macdeployqt MyApp.app/ -qmldir=../src/qml -dmg</p></li> </ol> <p>After those steps I managed to run my application on different OS X system, without QT Installed. I've added all my qml files and images into resources. QtQuick and QtQuick.2 modules copied inside MyApp.app/Content/MacOS/</p> <p>Hope it helps</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload