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. [SOLVED] Deploying Qt, problems
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Deploying Qt, problems

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 1.2k 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.
  • N Offline
    N Offline
    nikolakoco
    wrote on last edited by
    #1

    I'm trying to use install_name_tool for deploying my C++ application that uses Qt for the gui.
    I did all this steps but the afterwards the executable is broken and it's crashing

    @mkdir myapp.app/Contents/Frameworks
    cp -R /path/to/Qt/lib/QtCore.framework myapp.app/Contents/Frameworks
    .
    .
    install_name_tool -id @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore
    myapp.app/Contents/Frameworks/QtCore.framework/Versions/4.0/QtCore
    .
    .
    install_name_tool -change path/to/Qt/lib/QtCore.framework/Versions/4.0/QtCore
    @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore
    myapp.app/Contents/MacOs/myapp@

    So I did all of this steps, for all the libraries that were shown on the output of the oname tool. And I also have changed the references between the libraries to match with the new locations.

    So can anyone help me with this issue. Or is there any there way to deploy qt libraries with your application

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rcari
      wrote on last edited by
      #2

      Look into the macdeployqt executable which comes with Mac OS X distributions of Qt. It will take care of this for you and make your .app bundle deployment ready.

      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