<br><br><div class="gmail_quote">On Tue, May 6, 2008 at 5:57 PM, bridd <<a href="mailto:bridd@bridd.com">bridd@bridd.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Tue, 2008-05-06 at 15:15 +1000, Jared Henley wrote:<br>
> rather I'm building an ArchLinux package, basing my PKGBUILD file on<br>
> one I found on the ArchLinux site for kdenlive 0.6-svn (svn number<br>
> 1727).<br>
<br>
<br>
</div><div class="Ih2E3d">> After 41% i get a big slab of warnings, and this error:<br>
><br>
> /home/j/dev/pkgs/kdenlive/src/kdenlive/kdenlive/effect.h: At global<br>
> scope:<br>
> /home/j/dev/pkgs/kdenlive/src/kdenlive/kdenlive/effect.h:39: error:<br>
> multiple parameters named 'id'<br>
><br>
> This doesn't look like a dependency problem to me. Should I be using<br>
> a specific version of gcc or some other tool? Or can I expect that a<br>
> lot of svn revisions won't build? Because I haven't yet found a<br>
> subversion revision that actually builds.<br>
<br>
</div>I've been trying this myself, under fully up to date ArchLinux, except<br>
rather than going for building an ArchLinux package I've just been<br>
trying to compile it and install. I get exactly the same error.<br>
<br>
I've had a few things break on me building from source due to Arch<br>
running GCC 4.3 and it being strict about the way C libraries are<br>
declared in scope in C++ files, and usually they're easy enough to patch<br>
up, move on.<br>
<br>
Anyone else have any experience with running Kdenlive under Arch or<br>
compiled with GCC 4.3 ?<br>
</blockquote><div><br>I figured, given the lack of response, I'd better try to solve this myself. I think you're right about the C library declarations in C++. Here's a patch which I've just used against revision 2167 to build an arch package (on a pretty up-to-date arch installation)<br>
<br>Index: kdenlive/kdenlive.cpp<br>===================================================================<br>--- kdenlive/kdenlive.cpp (revision 2167)<br>+++ kdenlive/kdenlive.cpp (working copy)<br>@@ -17,6 +17,9 @@<br>
<br> #define _ISOC99_SOURCE<br> <br>+// Include file for exit()<br>+#include <stdlib.h><br>+<br> // include files for QT<br> #include <qdir.h><br> #include <qprinter.h><br>Index: kdenlive/effect.h<br>===================================================================<br>
--- kdenlive/effect.h (revision 2167)<br>+++ kdenlive/effect.h (working copy)<br>@@ -36,7 +36,7 @@<br> <br> class Effect {<br> public:<br>- Effect(const EffectDesc & desc, const QString & id, const QString & id = NULL);<br>
+ Effect(const EffectDesc & desc, const QString & id, const QString & group = NULL);<br> <br> ~Effect();<br> <br>Index: kdenlive/ktrackview.cpp<br>===================================================================<br>
--- kdenlive/ktrackview.cpp (revision 2167)<br>+++ kdenlive/ktrackview.cpp (working copy)<br>@@ -15,6 +15,9 @@<br> * *<br> ***************************************************************************/<br>
<br>+// For abs()<br>+#include <stdlib.h><br>+<br> #include <iostream><br> #include <math.h><br> <br>Index: kdenlive/krender.cpp<br>===================================================================<br>
--- kdenlive/krender.cpp (revision 2167)<br>+++ kdenlive/krender.cpp (working copy)<br>@@ -22,6 +22,9 @@<br> * *<br> ***************************************************************************/<br>
<br>+// for exit()<br>+#include <stdlib.h><br>+<br> // ffmpeg Header files<br> <br> extern "C" {<br>Index: kdenlive/kruler.cpp<br>===================================================================<br>--- kdenlive/kruler.cpp (revision 2167)<br>
+++ kdenlive/kruler.cpp (working copy)<br>@@ -15,6 +15,9 @@<br> * *<br> ***************************************************************************/<br>
<br>+// For abs()<br>+#include <stdlib.h><br>+<br> #include <qpainter.h><br> #include <qcolor.h><br> #include <qtextstream.h><br></div></div><br>Jared.<br>