Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. using the macdeployqt tool for create the .dmg file shows error

using the macdeployqt tool for create the .dmg file shows error

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.0k 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.
  • P Offline
    P Offline
    Princein
    wrote on last edited by
    #1

    I want to deploy my mac app, so I follow the document:
    http://doc.qt.io/qt-5/macos-deployment.html#macdeploy

    when I use the command line
    'macdeployqt FUEditor.app -dmg -no-plugins -verbose=3' in my .app file directory , it shows the error:

    Log: Adding framework:
    Log: Framework name "libavutil.56.dylib"
    Framework directory "/usr/local/Cellar/ffmpeg/4.1/lib/"
    Framework path "/usr/local/Cellar/ffmpeg/4.1/lib/libavutil.56.dylib"
    Binary directory "/usr/local/Cellar/ffmpeg/4.1/lib/"
    Binary name "libavutil.56.dylib"
    Binary path "/usr/local/Cellar/ffmpeg/4.1/lib/libavutil.56.dylib"
    Version ""
    Install name "/usr/local/opt/ffmpeg/lib/libavutil.56.dylib"
    Deployed install name "@executable_path/../Frameworks/libavutil.56.dylib"
    Source file Path "/usr/local/Cellar/ffmpeg/4.1/lib/libavutil.56.dylib"
    Framework Destination Directory (relative to bundle) "Contents/Frameworks/"
    Binary Destination Directory (relative to bundle) "Contents/Frameworks/"

    Log: Using install_name_tool:
    Log: in "FUEditor.app/Contents/Frameworks//libswresample.3.dylib"
    Log: change reference "/usr/local/opt/ffmpeg/lib/libavutil.56.dylib"
    Log: to "@executable_path/../Frameworks/libavutil.56.dylib"
    Log: Using install_name_tool:
    Log: in "FUEditor.app/Contents/Frameworks//libswresample.3.dylib"
    Log: change reference "/usr/local/Cellar/ffmpeg/4.1/lib/libavutil.56.22.100.dylib"
    Log: to "@executable_path/../Frameworks/libavutil.56.dylib"
    Log: Using strip:
    Log: stripped "/Users/lee/.Trash/Product/FUEditor.app/Contents/MacOS/FUEditor"
    Log:
    Log: Disk image already exists, skipping .dmg creation for "FUEditor.dmg"
    Log: Image will use "HFS+"
    ERROR: Bundle creation error: "hdiutil: create failed - File exists\n"

    after that, I don't see the .dmg file in the directory which my .app file belongs to, I don't know why, is there a simple tutorial for using the macdeployqt tool, thanks a lot!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Looks like it finds a .dmg file. Do you have one ? If so, try deleting it before running macdeployqt again.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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