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. Cannot deploy debug plugins with macdeployqt, Qt 5.9.1, macOS10.12.6
Forum Update on Monday, May 27th 2025

Cannot deploy debug plugins with macdeployqt, Qt 5.9.1, macOS10.12.6

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 2 Posters 1.4k Views
  • 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.
  • V Offline
    V Offline
    v5exp4
    wrote on last edited by v5exp4
    #1

    Hi All,

    I am using macdeployqt to deploy my application which is dependent on several custom plugins. I am on macOS10.12.6 using Qt 5.9.1 with clang64. When I install the plugins I can see them correctly installed under Qt/5.9.1/clang_64/qml/my_custom_plugin_dir which means that the library is named:

    • libMyLib.dylib if compiled with release configuration
    • libMyLib_debug.dylib if compiled with debug configuration

    However when I try to deploy my application with macdeployqt which is dependant on the above mentioned plugin, it is copying the release version of the plugin even if I pass the arguments "-no-strip -use-debug-libs" to it.

    The weird thing about it is that macdeployqt however copies the correct debug libraries for Frameworks, the problem is only with plugins.

    Has anyone seen this behaviour before?

    Thank your for all your help!

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

      Hi,

      What parameters did you pass to macdeployqt ?

      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
      • V Offline
        V Offline
        v5exp4
        wrote on last edited by
        #3

        Hi,

        I passed:
        macdeployqt myApp $$QT_DEPLOY_CONFIG -qmldir=$$QML_RESOURCES -verbose=3

        Where:
        QT_DEPLOY_CONFIG: -no-strip -use-debug-libs

        I have read through the macdeployqt help, and did not find any other option related to this.

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

          What was the output ?

          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
          • V Offline
            V Offline
            v5exp4
            wrote on last edited by
            #5

            The output of macdeployqt were the deployed release version of the plugins instead of the debug libraries.

            The relevant part of the log states that macdeployqt really picked up the release version of the plugins. But even with verbose=3 I can see no explanations or reason why.

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

              Can you show your .pro file ?

              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