<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 16, 2015 at 3:02 AM, René J.V. <span dir="ltr"><<a href="mailto:rjvbertin@gmail.com" target="_blank">rjvbertin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thursday January 15 2015 19:02:00 Jeremy Whiting wrote:<br>
<br>
>I thought I'd look a bit further into debugging why audio isn't working in<br>
>kanagram which uses QtMultimedia via qml to play a chalk sound for each new<br>
>word. I added some debug lines to the qml and found that the MediPlayer is<br>
>getting ServiceMissing error when it's trying to load the media service. I<br>
<br>
</span>Do you know which service it's trying to load? Also, have you tried a "pure Qt" application that should play sound using your Qt installation? One from the demos/examples, for instance?<br>
<span class=""><br>
>also seem to be somehow getting both the _debug.dylib and the .dylib qt<br>
>libraries loaded somehow as shown here. any idea why that would be? Did I<br>
>mistakenly build in non debug mode once (creating the multimedia plugin)<br>
>then again in debug mode or something when building my qt5build build of qt<br>
>dev branch with the qsp patch?<br>
</span>...<br>
<span class="">>objc[33021]: Class NotificationReceiver is implemented in both<br>
>/Users/jeremy/devel/kde/src/qt5build/qtbase/lib/libQt5Widgets_debug.5.dylib<br>
>and /Users/jeremy/devel/kde/src/qt5build/qtbase/lib/libQt5Widgets.5.dylib.<br>
>One of the two will be used. Which one is undefined.<br>
<br>
</span>Did you ask for a debug-and-release build? I would avoid that if I were you, it's unnecessarily complicated. You need to set DYLD_FRAMEWORK_PATH or something of the sort to get dyld to load the debug libraries, and I remember having had issues with that myself, probably the same. If you want to debug Qt code there must be a way to build ONLY a debug version (-O0 -g), otherwise you have configure options that add debug info to the release build (optionally such that "no-separate-debug-info"). That's enough to get usable backtraces into Qt code (though it appears the platform plugin is compiled without -g).<br></blockquote><div><br></div><div>My configure line is this:</div><div>../qt5/configure -debug -separate-debug-info -system-zlib -system-libpng -system-libjpeg -system-sqlite -dbus-linked -nomake examples -nomake tests -confirm-license -opensource -developer-build -no-frameork -I/opt/local/include/dbus-1.0 -L/opt/local/lib I've also set CFLAGS to -isystem/opt/local/include and CXXFLAGS the same. So are you saying that -debug and -separate-debug-info are conflicting arguments? i.e. -separate-debug-info should only be used when doing a release build?</div><div><br></div><div>thanks,</div><div>Jeremy </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
<br>
><br>
>QObject::moveToThread: Current thread (0x7f82c9c1e730) is not the object's<br>
>thread (0x7f82c9d87bf0).<br>
><br>
>Cannot move to target thread (0x7f82c9c1e730)<br>
<br>
</span>Could this be related to your sound issue?<br>
<br>
Qt has an annoying habit of printing this kind of message without even trying to identify the object. Does the Linux gdb allow you to print the values of QStrings etc. or do Qt devs only develop in an IDE (Creator...) that has a "feature-added" debugger?<br>
<br>
R.<br>
_______________________________________________<br>
<a href="mailto:kde-mac@kde.org">kde-mac@kde.org</a><br>
List Information: <a href="https://mail.kde.org/mailman/listinfo/kde-mac
KDE/Mac" target="_blank">https://mail.kde.org/mailman/listinfo/kde-mac<br>
KDE/Mac</a> Information: <a href="http://community.kde.org/Mac" target="_blank">http://community.kde.org/Mac</a><br>
</blockquote></div><br></div></div>