Re: [Mingw-w64-public] Qt 4.7 branch now completely, utterly, fully and (nearly) working with mingw-w64/w32!

2010-05-06 Thread t66...@gmail.com
On 6/05/2010 10:06 PM, Fridrich Strba wrote:
> Check wrap the #include windows.h in qt_windows.h by:
>
> #ifdef __cplusplus
> extern "C" {
> #endif
>
> ...
>
> #ifdef __cplusplus
> }
> #endif
>
>
> ???
>
Yeah that worked!
>
> On Thu, 2010-05-06 at 21:57 +1000,
> t66...@gmail.com wrote:
>
>> On 4/05/2010 2:04 AM, Ruben Van Boxem wrote:
>>  
>>> Just to express my happiness. The WebKit part has been merged, so
>>> every part of Qt works now.
>>>
>>> To compile Qt 4.7 (development version!):
>>> Get sources from eg qt.gitorious.org/qt/qt/4.7
>>> Get mingw-w64 from here: mingw-w64.sourceforge.net
>>> Make sure the\bin folder has a copy of gmake named
>>> "mingw32-make"
>>> in the Qt dir: configure -qt-style-windowsxp -qt-style-windowsvista
>>> -phonon
>>> gmake
>>>
>>>
>> In file included from
>> lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include/winnt.h:1412:0,
>>   from
>> lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include/windef.h:131,
>>   from
>> lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include/windows.h:62,
>>   from ..\..\include
>> \QtCore/../../src/corelib/global/qt_windows.h:63,
>>   from ..\..\include\QtCore/qt_windows.h:1,
>>   from tools\qstring.cpp:3834:
>> lib/gcc/x86_64-w64-mingw32/4.5.1/include/emmintrin.h:234:1: error:
>> previous declaration of '__vector(2) double _mm_add_sd(__vector(2)
>> double, __vector(2) double)' with 'C++' linkage
>> lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include/intrin.h:644:5:
>>  error: conflicts with new declaration with 'C' linkage
>> lib/gcc/x86_64-w64-mingw32/4.5.1/include/emmintrin.h:228:1: error:
>> previous declaration of '__vector(2) double _mm_add_pd(__vector(2)
>> double, __vector(2) double)' with 'C++' linkage
>> lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include/intrin.h:645:5:
>>  error: conflicts with new declaration with 'C' linkage
>>
>> I attempted to build it qt-everywhere-opensource-src-4.7.0-tp.tar.gz
>> but failed.
>> This error looks weird and the Qt developer said the bug comes from
>> the gcc toolchain, I'm using the same gcc to build
>> qt-everywhere-opensource-src-4.6.2.tar.gz successfully.
>> Is my error still related to the gcc toolchain?
>>  
>>> The options that still need to be provided are optional, but rely on
>>> the presence of two headers (uxtheme.h and dshow.h), or rather the
>>> ability of Qt's configure.exe to find them...Which it doesn't. It
>>> has already been attempted to be fixed, I'll need to reopen the bug
>>> report then...
>>>
>>> Ruben
>>>
>>>


--
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Qt 4.7 branch now completely, utterly, fully and (nearly) working with mingw-w64/w32!

2010-05-06 Thread Fridrich Strba
Check wrap the #include windows.h in qt_windows.h by:

#ifdef __cplusplus
extern "C" {
#endif

...

#ifdef __cplusplus
}
#endif


???


On Thu, 2010-05-06 at 21:57 +1000,
t66...@gmail.com wrote:
> On 4/05/2010 2:04 AM, Ruben Van Boxem wrote: 
> > Just to express my happiness. The WebKit part has been merged, so
> > every part of Qt works now.
> > 
> > To compile Qt 4.7 (development version!):
> > Get sources from eg qt.gitorious.org/qt/qt/4.7
> > Get mingw-w64 from here: mingw-w64.sourceforge.net
> > Make sure the \bin folder has a copy of gmake named
> > "mingw32-make"
> > in the Qt dir: configure -qt-style-windowsxp -qt-style-windowsvista
> > -phonon
> > gmake
> > 
> In file included from
> lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include/winnt.h:1412:0,
>  from
> lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include/windef.h:131,
>  from
> lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include/windows.h:62,
>  from ..\..\include
> \QtCore/../../src/corelib/global/qt_windows.h:63,
>  from ..\..\include\QtCore/qt_windows.h:1,
>  from tools\qstring.cpp:3834:
> lib/gcc/x86_64-w64-mingw32/4.5.1/include/emmintrin.h:234:1: error:
> previous declaration of '__vector(2) double _mm_add_sd(__vector(2)
> double, __vector(2) double)' with 'C++' linkage
> lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include/intrin.h:644:5:
>  error: conflicts with new declaration with 'C' linkage
> lib/gcc/x86_64-w64-mingw32/4.5.1/include/emmintrin.h:228:1: error:
> previous declaration of '__vector(2) double _mm_add_pd(__vector(2)
> double, __vector(2) double)' with 'C++' linkage
> lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include/intrin.h:645:5:
>  error: conflicts with new declaration with 'C' linkage
> 
> I attempted to build it qt-everywhere-opensource-src-4.7.0-tp.tar.gz
> but failed.
> This error looks weird and the Qt developer said the bug comes from
> the gcc toolchain, I'm using the same gcc to build
> qt-everywhere-opensource-src-4.6.2.tar.gz successfully.
> Is my error still related to the gcc toolchain?
> > The options that still need to be provided are optional, but rely on
> > the presence of two headers (uxtheme.h and dshow.h), or rather the
> > ability of Qt's configure.exe to find them...Which it doesn't. It
> > has already been attempted to be fixed, I'll need to reopen the bug
> > report then...
> > 
> > Ruben
> > 
> > 
> > 
> > --
> >   
> > 
> > ___
> > Mingw-w64-public mailing list
> > Mingw-w64-public@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
> >   
> 
> --
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public




--
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Qt 4.7 branch now completely, utterly, fully and (nearly) working with mingw-w64/w32!

2010-05-06 Thread t66...@gmail.com

On 4/05/2010 2:04 AM, Ruben Van Boxem wrote:
Just to express my happiness. The WebKit part has been merged, so 
every part of Qt works now.


To compile Qt 4.7 (development version!):
Get sources from eg qt.gitorious.org/qt/qt/4.7 

Get mingw-w64 from here: mingw-w64.sourceforge.net 

Make sure the \bin folder has a copy of gmake named 
"mingw32-make"
in the Qt dir: configure -qt-style-windowsxp -qt-style-windowsvista 
-phonon

gmake

In file included from 
lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include/winnt.h:1412:0,
 from 
lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include/windef.h:131,
 from 
lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include/windows.h:62,
 from 
..\..\include\QtCore/../../src/corelib/global/qt_windows.h:63,

 from ..\..\include\QtCore/qt_windows.h:1,
 from tools\qstring.cpp:3834:
lib/gcc/x86_64-w64-mingw32/4.5.1/include/emmintrin.h:234:1: error: 
previous declaration of '__vector(2) double _mm_add_sd(__vector(2) 
double, __vector(2) double)' with 'C++' linkage
lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include/intrin.h:644:5: 
error: conflicts with new declaration with 'C' linkage
lib/gcc/x86_64-w64-mingw32/4.5.1/include/emmintrin.h:228:1: error: 
previous declaration of '__vector(2) double _mm_add_pd(__vector(2) 
double, __vector(2) double)' with 'C++' linkage
lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include/intrin.h:645:5: 
error: conflicts with new declaration with 'C' linkage


I attempted to build it qt-everywhere-opensource-src-4.7.0-tp.tar.gz but 
failed.
This error looks weird and the Qt developer said the bug comes from the 
gcc toolchain, I'm using the same gcc to build 
qt-everywhere-opensource-src-4.6.2.tar.gz successfully.

Is my error still related to the gcc toolchain?
The options that still need to be provided are optional, but rely on 
the presence of two headers (uxtheme.h and dshow.h), or rather the 
ability of Qt's configure.exe to find them...Which it doesn't. It has 
already been attempted to be fixed, I'll need to reopen the bug report 
then...


Ruben



--
   



___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
   


--
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public