Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are 3 tools at your disposal to sort out deployment of Qt for OS X (MacOS).</p> <ol> <li><p><code>macdeployqt</code>: This tool gathers all the Qt libraries that your application declares it needs in its project, adds them to the app bundle and updates their paths so that your application knows where to find them.</p></li> <li><p><code>otool</code>: A complex tool for examining the contents of binaries, but in this case, used with the <code>-L</code> argument, will display the paths to all the libraries that your application will reference. These are the paths that it will be looking to find those libraries.</p></li> <li><p><code>install_name_tool</code>: Since <code>macdeployqt</code> only handles Qt libraries that are required by your application, you can use <code>install_name_tool</code> to update paths to any other libraries that your app requires. For example, if you have a separate non-Qt framework that your application relies upon, you need to have a post compilation step to copy the framework into the application bundle and then use <code>install_name_tool</code> to update the paths to the framework.</p></li> </ol> <p>If you're having problems, check that the libraries / frameworks have been copied to the correct location in the application bundle and then use <code>otool -L</code> to check the paths. If any are incorrect, use name_install tool to fix them.</p> <p>If you still can't get it to work, please edit your question and add the output from using <code>otool -L</code>.</p> <p>Note, historically, various versions of Qt have suffered bugs with the <code>macdeployqt</code> utility, so if it is not working properly, you may also want to <a href="https://bugreports.qt.io/browse/QTBUG-41611?jql=text%20~%20%22macdeployqt%22" rel="nofollow">check the qt bug tracker</a>.</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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