GCC Version for KDE Compilation in MinGW

Ganesh Paramasivam ganesh at crystalfab.com
Wed Oct 14 13:10:48 CEST 2009


Carlo,

Thanks a lot... It's fixed now..
I was using a older version of mingw-runtime. I have upgraded it to
3.14 now and it compiles past that stage.

Regards,
Ganesh

On Wed, Oct 14, 2009 at 4:20 PM, Ganesh Paramasivam
<ganesh at crystalfab.com> wrote:
> Hi,
>
> Here is the compilation error ( The actual error can be seen in the
> last 4 lines regarding the declaration of usleep )..
> No, I'm not compiling trunk yet ( Though that is the final goal ). I'm
> compiling the koffice source downloaded using the installer.
>
> Thanks,
> Ganesh
>
> In file included from
> D:\KDE4\libs\pigment/colorprofiles/KoLcmsColorProfileContainer.h:28,
>                 from D:\KDE4\libs\pigment\/KoLcmsColorSpace.h:28,
>                 from D:\KDE4\libs\pigment\KoBasicHistogramProducers.cpp:32:
> D:\KDE4\include/lcms.h:196:1: warning: "ZeroMemory" redefined
> In file included from
> d:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windows.h:50,
>                 from
> d:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/winsock2.h:22,
>                 from D:\KDE4\include\mingw/unistd.h:26,
>                 from D:\KDE4\include/lcms.h:185,
>                 from
> D:\KDE4\libs\pigment/colorprofiles/KoLcmsColorProfileContainer.h:28,
>                 from D:\KDE4\libs\pigment\/KoLcmsColorSpace.h:28,
>                 from D:\KDE4\libs\pigment\KoBasicHistogramProducers.cpp:32:
> d:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/winbase.h:1205:1:
> warning: this is the location of the previous definition
> In file included from
> D:\KDE4\libs\pigment/colorprofiles/KoLcmsColorProfileContainer.h:28,
>                 from D:\KDE4\libs\pigment\/KoLcmsColorSpace.h:28,
>                 from D:\KDE4\libs\pigment\KoBasicHistogramProducers.cpp:32:
> D:\KDE4\include/lcms.h:197:1: warning: "CopyMemory" redefined
> In file included from
> d:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windows.h:50,
>                 from
> d:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/winsock2.h:22,
>                 from D:\KDE4\include\mingw/unistd.h:26,
>                 from D:\KDE4\include/lcms.h:185,
>                 from
> D:\KDE4\libs\pigment/colorprofiles/KoLcmsColorProfileContainer.h:28,
>                 from D:\KDE4\libs\pigment\/KoLcmsColorSpace.h:28,
>                 from D:\KDE4\libs\pigment\KoBasicHistogramProducers.cpp:32:
> d:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/winbase.h:1203:1:
> warning: this is the location of the previous definition
> In file included from
> D:\KDE4\libs\pigment/colorprofiles/KoLcmsColorProfileContainer.h:28,
>                 from D:\KDE4\libs\pigment\/KoLcmsColorSpace.h:28,
>                 from D:\KDE4\libs\pigment\KoBasicHistogramProducers.cpp:32:
> D:\KDE4\include/lcms.h:212:1: warning: "LOWORD" redefined
> In file included from
> d:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windows.h:48,
>                 from
> d:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/winsock2.h:22,
>                 from D:\KDE4\include\mingw/unistd.h:26,
>                 from D:\KDE4\include/lcms.h:185,
>                 from
> D:\KDE4\libs\pigment/colorprofiles/KoLcmsColorProfileContainer.h:28,
>                 from D:\KDE4\libs\pigment\/KoLcmsColorSpace.h:28,
>                 from D:\KDE4\libs\pigment\KoBasicHistogramProducers.cpp:32:
> d:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windef.h:131:1:
> warning: this is the location of the previous definition
> In file included from
> D:\KDE4\libs\pigment/colorprofiles/KoLcmsColorProfileContainer.h:28,
>                 from D:\KDE4\libs\pigment\/KoLcmsColorSpace.h:28,
>                 from D:\KDE4\libs\pigment\KoBasicHistogramProducers.cpp:32:
> D:\KDE4\include/lcms.h:213:1: warning: "HIWORD" redefined
> In file included from
> d:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windows.h:48,
>                 from
> d:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/winsock2.h:22,
>                 from D:\KDE4\include\mingw/unistd.h:26,
>                 from D:\KDE4\include/lcms.h:185,
>                 from
> D:\KDE4\libs\pigment/colorprofiles/KoLcmsColorProfileContainer.h:28,
>                 from D:\KDE4\libs\pigment\/KoLcmsColorSpace.h:28,
>                 from D:\KDE4\libs\pigment\KoBasicHistogramProducers.cpp:32:
> d:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windef.h:132:1:
> warning: this is the location of the previous definition
> In file included from D:\KDE4\include/lcms.h:185,
>                 from
> D:\KDE4\libs\pigment/colorprofiles/KoLcmsColorProfileContainer.h:28,
>                 from D:\KDE4\libs\pigment\/KoLcmsColorSpace.h:28,
>                 from D:\KDE4\libs\pigment\KoBasicHistogramProducers.cpp:32:
>
> D:\KDE4\include\mingw/unistd.h:119: error: declaration of C function
> 'void usleep(unsigned int)' conflicts with
> d:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/../include/unistd.h:36:
> error: previous declaration 'int usleep(useconds_t)' here
> mingw32-make[2]: ***
> [libs/pigment/CMakeFiles/pigmentcms.dir/KoBasicHistogramProducers.obj]
> Error 1
> mingw32-make[1]: *** [libs/pigment/CMakeFiles/pigmentcms.dir/all] Error 2
>
>
>
> On Wed, Oct 14, 2009 at 4:12 PM, Carlo <brandon.ml at gmail.com> wrote:
>> On Wed, Oct 14, 2009 at 12:31 PM, Ganesh Paramasivam
>> <ganesh at crystalfab.com> wrote:
>>> Hi all,
>>>
>>> I have installed the mingw4 build using kde-win-installer on my
>>> WIndows Vista laptop and I'm trying to compile koffice.
>>> The GCC version I'm using is 4.4.0
>>>
>>> I'm following the instructions from here
>>>
>>> http://techbase.kde.org/Getting_Started/Build/KDE4/Windows/DistributionBasedBuild
>>>
>>> However I'm getting compilation errors which complain that there are
>>> inconsistencies between variable declarations between the header files
>>> in the kde/mingw/include and those in gcc's standard include
>>> directories. I think that this is due to the wrong gcc I'm using.
>>>
>>> Which is the gcc version I should be using ????
>>>
>> the gcc version is fine, is the same that we use
>> can you paste  these errors? also are you trying to compile koffice
>> trunk or some other version?
>> _______________________________________________
>> Kde-windows mailing list
>> Kde-windows at kde.org
>> https://mail.kde.org/mailman/listinfo/kde-windows
>>
>


More information about the Kde-windows mailing list