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. macdeployqt also includes debug libs in the app bundle (even for a release build)
Qt 6.11 is out! See what's new in the release blog

macdeployqt also includes debug libs in the app bundle (even for a release build)

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 400 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.
  • NihilishN Offline
    NihilishN Offline
    Nihilish
    wrote on last edited by Nihilish
    #1

    Our Qt app is built by a CI machine. Recently we updated our Qt version to 5.15.11 and started making universal builds for MacOS. At the end of our pipeline, we run macdeployqt on the build but since we upgraded to 5.15.11, we noticed macdeployqt was also adding debug versions of the Qt libraries to our app bundle. This is a release build, so we don't need the debug libraries. I saw that there's a -use-debug-libs argument to include those libs (which we're not using). Is there a similar argument to prevent macdeployqt from adding these libs?

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

      Hi,

      5.15.11 being currently commercial only I would recommend contacting the Qt Company directly.

      In between, is it something that you observed between Qt 5.15.10 and 5.15.11 ?

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

        Hey!

        We were using 5.15.8 before and we didn't have the debug libs in our app bundle. It might have something to do with our new Qt install. A lot of the library files in the qml subfolder are suffixed by _debug.

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

          You can have both builds co-existing but macdeployqt should only take the ones used to build your application.

          Can you run otool -L against your application executable to check which librairies it is linked against.

          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