On Sat, Mar 5, 2011 at 4:48 PM, Arno Rehn <span dir="ltr"><<a href="mailto:arno@arnorehn.de">arno@arnorehn.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Sunday 06 March 2011 01:26:16 Elliott Slaughter wrote:<br>
> On Sat, Mar 5, 2011 at 3:59 PM, Arno Rehn <<a href="mailto:arno@arnorehn.de">arno@arnorehn.de</a>> wrote:<br>
> > On Sunday 06 March 2011 00:54:17 Elliott Slaughter wrote:<br>
> > > On Sat, Mar 5, 2011 at 3:37 PM, Arno Rehn <<a href="mailto:arno@arnorehn.de">arno@arnorehn.de</a>> wrote:<br>
> > > > On Sunday 06 March 2011 00:29:15 Elliott Slaughter wrote:<br>
> > > > > On Sat, Mar 5, 2011 at 3:14 PM, Arno Rehn <<a href="mailto:arno@arnorehn.de">arno@arnorehn.de</a>> wrote:<br>
> > > > > > On Sunday 06 March 2011 00:03:36 Elliott Slaughter wrote:<br>
> > > > > > > On Sat, Mar 5, 2011 at 2:51 PM, Arno Rehn <<a href="mailto:arno@arnorehn.de">arno@arnorehn.de</a>><br>
> ><br>
> > wrote:<br>
> > > > > > > > On Saturday 05 March 2011 22:46:43 Cyrus Harmon wrote:<br>
> > > > > > > > > is required to get past Elliott's latest bug. Now, I get<br>
> > > > > > > > > _almost_ to the end:<br>
> > > > > > > > ><br>
> > > > > > > > > [100%] Building CXX object<br>
> > > > > ><br>
> > > > > > phonon/CMakeFiles/smokephonon.dir/x_10.cpp.o<br>
> > > > > ><br>
> > > > > > > > > /Users/sly/src/kde/smokeqt/phonon/x_10.cpp: In static<br>
> > > > > > > > > member function ‘static void<br>
> > > > > > > > > __smokephonon::x_QGlobalSpace::x_1(Smoke::StackItem*)’:<br>
> > > > > ><br>
> > > > > > > > > /Users/sly/src/kde/smokeqt/phonon/x_10.cpp:18: error:<br>
> > > > > > ‘Q_COMPLEX_TYPE’<br>
> > > > > ><br>
> > > > > > > > was<br>
> > > > > > > ><br>
> > > > > > > > > not declared in this scope<br>
> > > > > ><br>
> > > > > > /Users/sly/src/kde/smokeqt/phonon/x_10.cpp:<br>
> > > > > > > > > In static member function ‘static void<br>
> > > > > > > > > __smokephonon::x_QGlobalSpace::x_2(Smoke::StackItem*)’:<br>
> > > > > > > > > /Users/sly/src/kde/smokeqt/phonon/x_10.cpp:21: error:<br>
> > > > > > > > > ‘Q_PRIMITIVE_TYPE’ was not declared in this scope ...<br>
> > > > > > > ><br>
> > > > > > > > Does this only happen with phonon? These constants are all<br>
> > > > > > > > unconditionally declared in qglobal.h, so this shouldn't<br>
> ><br>
> > happen.<br>
> ><br>
> > > > Can<br>
> > > ><br>
> > > > > > you<br>
> > > > > ><br>
> > > > > > > > post the complete error message?<br>
> > > > > > ><br>
> > > > > > > Thanks for pushing :-).<br>
> > > > > > ><br>
> > > > > > > I can duplicate this error. It's long so I put it in a paste.<br>
> > > > > > ><br>
> > > > > > > Error: <a href="http://pastebin.com/spA85f1F" target="_blank">http://pastebin.com/spA85f1F</a><br>
> > > > > > > x_10.cpp: <a href="http://pastebin.com/sDaXpTjk" target="_blank">http://pastebin.com/sDaXpTjk</a><br>
> > > > > ><br>
> > > > > > Right, I think this should be fixed now.<br>
> > > > ><br>
> > > > > I'm still getting the same error. New pastes are attached (although<br>
> > > > > they look the same to me as the originals).<br>
> > > > ><br>
> > > > > Error: <a href="http://pastebin.com/MCZD1fQp" target="_blank">http://pastebin.com/MCZD1fQp</a><br>
> > > > > x_10.cpp: <a href="http://pastebin.com/bSPNuZUG" target="_blank">http://pastebin.com/bSPNuZUG</a><br>
> > > ><br>
> > > > Strange. Can you try adding #include <QtCore/qglobal.h> at the<br>
> ><br>
> > beginning<br>
> ><br>
> > > > and/or end of <src>/phonon/phonon_includes.h? Something's going<br>
> > > > really wrong<br>
> > > > here as it seems.<br>
> > ><br>
> > > Somehow that didn't fix it. Here's the patch I used.<br>
> > ><br>
> > > diff --git a/phonon/phonon_includes.h b/phonon/phonon_includes.h<br>
> > > index acf03d6..a3fe857 100644<br>
> > > --- a/phonon/phonon_includes.h<br>
> > > +++ b/phonon/phonon_includes.h<br>
> > > @@ -38,3 +38,4 @@<br>
> > ><br>
> > >  #include <phonon/volumeslider.h><br>
> > ><br>
> > >  #include <QtCore/qurl.h><br>
> > ><br>
> > > +#include <QtCore/qglobal.h><br>
> ><br>
> > That's fine. I didn't really expect it to be fixed by this... try to<br>
> > build with 'make VERBOSE=1' and post the output. I'm really interested<br>
> > in what it's<br>
> > doing there..<br>
><br>
> Here you go: <a href="http://pastebin.com/xzpspSCn" target="_blank">http://pastebin.com/xzpspSCn</a><br>
><br>
> I think you're most interested in the part starting at line 698.<br>
><br>
> By the way, I did a git checkout HEAD phonon/phonon_includes.h before doing<br>
> this, so this is without the qglobal include.<br>
</div></div>Hm, this doesn't make any sense to me. There is<br>
-I/Library/Frameworks/QtCore.framework/Headers<br>
on the command line, so we can be sure we have the qglobal.h header included.<br>
I don't have the faintest clue why it's not picking up the constants.<br>
You could run line 699 manually with 'g++ -E' to see the preprocessed contents<br>
only and guess where the constants have gone. (Or nopaste that again ;)).<br>
For the time being, you could also simply skip phonon by passing<br>
-DDISABLE_Phonon=TRUE<br>
to cmake. But that's not really a solution.<font color="#888888"><br></font></blockquote><div><br></div><div>Here ya go, all 18k lines of preprocessed output: <a href="http://pastebin.com/LsxrPt7k">http://pastebin.com/LsxrPt7k</a></div>
<div><br></div><div>I'll try disabling phonon until you've got something else for me to try :-).</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#888888">
--<br>
</font><div><div></div><div class="h5">Arno Rehn<br>
<a href="mailto:arno@arnorehn.de">arno@arnorehn.de</a><br>
_______________________________________________<br>
Kde-bindings mailing list<br>
<a href="mailto:Kde-bindings@kde.org">Kde-bindings@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-bindings" target="_blank">https://mail.kde.org/mailman/listinfo/kde-bindings</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Elliott Slaughter<br><br>"Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay<br>