Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. macdeployqt dmg references with links
Qt 6.11 is out! See what's new in the release blog

macdeployqt dmg references with links

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 197 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.
  • sbelaS Offline
    sbelaS Offline
    sbela
    wrote on last edited by
    #1

    I have a qml app in which I have links to local files in the release folder of AppName.app/Contents/Resources/qml folder. Which is a problem if I run the macdeployqt command with -dmg switch.

    eg.:

    ./QtQuick/Shapes:
    total 48
    drwxr-xr-x@  5 sbela  staff    160 Már 18 17:33 .
    drwxr-xr-x@ 17 sbela  staff    544 Már 18 17:33 ..
    lrwxr-xr-x@  1 sbela  staff     50 Már 18 17:33 libqmlshapesplugin.dylib -> ../../../../PlugIns/quick/libqmlshapesplugin.dylib
    -rw-r--r--@  1 sbela  staff  16470 Jan 24 07:48 plugins.qmltypes
    -rw-r--r--@  1 sbela  staff    199 Jan 24 07:21 qmldir
    

    This is a problem when I try to install this app on a machine where these files are not in that directory.

    This is how I create the dmg file:

    #!/bin/zsh
    /Users/sbela/Qt/6.8.2/macos/bin/macdeployqt AppName.app -qmldir=/Users/sbela/work/projects/AppName/build/Qt_6_8_2_for_macOS-Release/qml -dmg
    

    It solves my problem if I manually copy every single dylib in the correct folder.
    But if there is a solution which does that automatically that I would appreciate it.
    Thank you !

    I would like!

    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