trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: May 2011

Re: [trinity-devel] poppler-qt3 NEED HELP - Anybody got it building with current poppler-qt & gcc 4.6?

From: "David C. Rankin" <drankinatty@...>
Date: Mon, 09 May 2011 19:17:30 -0500
On 05/09/2011 07:09 PM, David C. Rankin wrote:
> On 05/09/2011 06:41 PM, /dev/ammo42 wrote:
>
>>> <bigsnip>
>>> I need help sorting both out. Anybody see anything that sticks out
>>> above?
>> Can't you use the non-trinity poppler-qt3 and correct the build error
>> by #include'ing<cstddef> ? It's a gcc-4.6 related error again.
>>
>
> Hah! Now we are getting somewhere! On the regular arch build (with the trinity
> 3.5.12 packages) I was able to build the poppler-qt package.
>
> poppler-qt3-0.16.4-1-x86_64.pkg.tar.xz
>
> The BIG problem this presents is that /opt/qt/include/qvaluelist.h (and the rest
> of the headers) are owned by Qt3 (which at least for the normal Arch AUR
> poppler-qt3 - we will need to have Albert rebuild Qt3 enhanced.
>
> For Trnity - I'll try the same thing and let you know. We will probably need to
> patch all the Qt3 headers for <cstddef>.
>
>
>

Here is the patch:

--- /opt/qt/include/qvaluelist.h
+++ /opt/qt/include/qvaluelist.h 2011-05-09 19:00:30.000000000 -0500
@@ -40,6 +40,7 @@

#ifndef QVALUELIST_H
#define QVALUELIST_H
+#include <cstddef>

#ifndef QT_H
#include "qtl.h"

-- 
David C. Rankin, J.D.,P.E.