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: Baho Utot <baho-utot@...>
Date: Mon, 09 May 2011 20:27:20 -0400
On 05/09/2011 08:17 PM, David C. Rankin wrote:
> 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"
>

Here is the correct patch...

--- qt-x11-free-3.3.8b/src/tools/qmap.h~    2008-01-15 
19:09:13.000000000 +0000
+++ qt-x11-free-3.3.8b/src/tools/qmap.h    2011-04-11 00:16:04.000000000 
+0100
@@ -50,6 +50,7 @@
  #endif // QT_H

  #ifndef QT_NO_STL
+#include <cstddef>
  #include <iterator>
  #include <map>
  #endif
--- qt-x11-free-3.3.8b/src/tools/qvaluelist.h~    2008-01-15 
19:09:13.000000000 +0000
+++ qt-x11-free-3.3.8b/src/tools/qvaluelist.h    2011-04-11 
00:16:49.000000000 +0100
@@ -48,6 +48,7 @@
  #endif // QT_H

  #ifndef QT_NO_STL
+#include <cstddef>
  #include <iterator>
  #include <list>
  #endif

I am rebuilding qt3 with the correct patch as we speak