From kde-windows Wed Oct 14 11:22:48 2009 From: Ganesh Paramasivam Date: Wed, 14 Oct 2009 11:22:48 +0000 To: kde-windows Subject: Re: GCC Version for KDE Compilation in MinGW Message-Id: <9ecf537e0910140410q6d606a1fkdac534f4b05b65f2 () mail ! gmail ! com> X-MARC-Message: https://marc.info/?l=kde-windows&m=125551869912242 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 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 wrote: >> On Wed, Oct 14, 2009 at 12:31 PM, Ganesh Paramasivam >> 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@kde.org >> https://mail.kde.org/mailman/listinfo/kde-windows >> > _______________________________________________ Kde-windows mailing list Kde-windows@kde.org https://mail.kde.org/mailman/listinfo/kde-windows