Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-111521

qt 6 macdeployqt error for universal architecture app on MacOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.2
    • None
    • macOS

    Description

      I opened an qt example "application"

      add the following lines in CMake to create an universal architecture app

      //代码占位符
      set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "Architectures supported" FORCE) 

      then I use macdeployqt to package it, I received the following error:

      //代码占位符
      ERROR: "error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: \"-delete_rpath /Users/xupeng/Qt/6.4.2/macos/lib\" specified more than once\nUsage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool [-change old new] ... [-rpath old new] ... [-add_rpath new] ... [-delete_rpath old] ... [-id name] input\n"
      ERROR: "" 

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            xp19870106 peng xu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes