1

I want to build a dmg with a executable with debug symbols so I can take to another machine and debug it there. If I use macdeployqt with -use-debug-libs the dmg does seem to have debug symbols and I can use it on the machine it was built on.

But when I copy the dmg to another mac it fails with:

Library not loaded: @rpath/QtOpenGL.framework/Versions/5/QtOpenGL
Reason: image not found

If I build the dmg without -use-debug-libs and copy the dmg to another machine it does work. This seems like a bug in macdeployqt.

More info:

They both reference the same lib:

@rpath/QtOpenGL.framework/Versions/5/QtOpenGL (compatibility version 5.5.0, current version 5.5.1)

The non-debug Frameworks dir has this:

lrwxrwxr-x  1 LarryMartell  staff   25 Mar 15 11:00 QtOpenGL -> Versions/Current/QtOpenGL
lrwxrwxr-x  1 LarryMartell  staff   26 Mar 15 11:00 Resources -> Versions/Current/Resources
drwxrwxr-x@ 4 LarryMartell  staff  136 Mar 15 11:00 Versions

And the debug one has this:

lrwxrwxr-x  1 LarryMartell  staff   31 Mar 15 10:41 QtOpenGL_debug -> Versions/Current/QtOpenGL_debug
lrwxrwxr-x  1 LarryMartell  staff   26 Mar 15 10:41 Resources -> Versions/Current/Resources
drwxrwxr-x@ 4 LarryMartell  staff  136 Mar 15 10:41 Versions
Larry Martell
  • 3,526
  • 6
  • 40
  • 76

0 Answers0