Yes, IIRC some of the debug plugins do not get copied over when using 
-use-debug-libs, and some release libraries do get copied.

There are also issues regarding this:
https://bugreports.qt.io/browse/QTBUG-48800 
<https://bugreports.qt.io/browse/QTBUG-48800>
https://bugreports.qt.io/browse/QTBUG-40660 
<https://bugreports.qt.io/browse/QTBUG-40660>



> On 15 Mar 2016, at 15:51, Larry Martell <larry.mart...@gmail.com> wrote:
> 
> On Tue, Mar 15, 2016 at 10:33 AM, Larry Martell <larry.mart...@gmail.com> 
> wrote:
>> I am building my Qt app with symbols so I can use lldb. I use this
>> cmake option "-DCMAKE_BUILD_TYPE=Debug". That indeed does make an
>> executable that I debug locally on the machine I built it on.
>> 
>> But if I then use macdeployqt to generate a dmg file, the executable
>> in there does not seem to have symbols, so I cannot debug it with
>> lldb.
>> 
>> Is there a way to get the symbols into the dmg executable?
> 
> I found the -use-debug-libs option to macdeployqt and with that the
> executable in the dmg does have symbols and works on the machine I
> build it 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 don't build the dmg with -use-debug-libs and copy the dmg to
> another machine it does work. This seems like a bug in macdeployqt.
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to