kdewin32 build error

Ralf Habacker ralf.habacker at freenet.de
Wed Mar 22 19:32:45 CET 2006


Ralf Habacker schrieb:
> Paulo Jorge Guedes schrieb:
>   
>> And this other one on kdecore:
>>
>> In file included from d:/kde/kdelibs/kdeui/kaction.h:530,
>>                  from d:/kde/kdelibs/kdecore/../kdeui/kstdaction_p.h:25,
>>                  from d:/kde/kdelibs/kdecore/kacceleratormanager.cpp:48:
>> d:/kde/kdelibs/kdeui/kactionclasses.h:223: error: expected class-name before '{' token
>> d:/kde/kdelibs/kdeui/kactionclasses.h:559: error: `createToolBarWidget' declared as a `virtual' field
>> d:/kde/kdelibs/kdeui/kactionclasses.h:559: error: expected `;' before '(' token
>> d:/kde/kdelibs/kdeui/kactionclasses.h:878: error: `createToolBarWidget' declared as a `virtual' field
>> d:/kde/kdelibs/kdeui/kactionclasses.h:878: error: expected `;' before '(' token
>> d:/kde/kdelibs/kdeui/kactionclasses.h:945: error: expected class-name before '{' token
>> d:/kde/kdelibs/kdeui/kactionclasses.h:1014: error: `createToolBarWidget' declared as a `virtual' field
>> d:/kde/kdelibs/kdeui/kactionclasses.h:1014: error: expected `;' before '(' token
>> d:/kde/kdelibs/kdeui/kactionclasses.h:1030: error: expected class-name before '{' token
>> d:/kde/kdelibs/kdeui/kactionclasses.h:1127: error: `createToolBarWidget' declared as a `virtual' field
>> d:/kde/kdelibs/kdeui/kactionclasses.h:1127: error: expected `;' before '(' token
>> d:/kde/kdelibs/kdeui/kactionclasses.h:1243: error: expected class-name before '{' token
>> d:/kde/kdelibs/kdeui/kactionclasses.h:1262: error: `createToolBarWidget' declared as a `virtual' field
>> d:/kde/kdelibs/kdeui/kactionclasses.h:1262: error: expected `;' before '(' token
>>   
>>     
> I'm using qt 4.1.0 and had the same problem. This is because recent 
> kdeui sources (kactionclasses.h) requires a class QActionWidgetFactory 
> (patch is here 
> http://websvn.kde.org/trunk/qt-copy/patches/0119-qaction-widgetfactory.diff?rev=518837&view=log) 
> , which is only available kde svn qt source copy.
>
> Compiling kdelibs on windows requires currently that you take the latest 
> qt sources from trolltech 
> (http://www.trolltech.com/download/qt/windows.html), apply the patches 
> located in http://websvn.kde.org/trunk/qt-copy/patches/ and recompile qt. 
>
> Another way is to wait for the next public qt windows binary 
> release,which has hopefully the required patches.  :-(
>
>   
Update:
In 
http://websvn.kde.org/trunk/qt-copy/patches/README?rev=517298&view=auto 
I found the following statement:

"This directory contains patches for Qt that haven't been accepted by TrollTech
yet. All patches in this directory itself shouldn't make qt-copy incompatible
to official Qt, patches adding new API etc. belong to the notsafe/
subdirectory."

Seems that this wasn't followed :-( 

Ral 


>>> -----Original Message-----
>>> From: Paulo Jorge Guedes [mailto:Paulo.Guedes at artelecom.pt]
>>> Sent: quarta-feira, 22 de Março de 2006 17:15
>>> To: kde-buildsystem at kde.org
>>> Subject: kdewin32 build error
>>>
>>> I'm having this error with mingw:
>>>
>>> In file included from d:/kde/kdelibs/win/src/realpath.c:24:
>>> d:/kde/kdelibs/win/include/mingw/unistd.h:137: error: conflicting types
>>> for 'getopt'
>>> d:/MinGW/bin/../lib/gcc/mingw32/3.4.4/../../../../include/getopt.h:47:
>>> error: previous declaration of 'getopt' was here
>>> d:/kde/kdelibs/win/include/mingw/unistd.h:137: error: conflicting types
>>> for 'getopt'
>>> d:/MinGW/bin/../lib/gcc/mingw32/3.4.4/../../../../include/getopt.h:47:
>>> error: previous declaration of 'getopt' was here
>>> make[2]: *** [CMakeFiles/kdewin32.dir/src/realpath.obj] Error 1
>>>     
>>>       
> Mingw seems to have already a getopt function. I have fixed this issue 
> in svn.
>
> Ralf
>
> _______________________________________________
> Kde-buildsystem mailing list
> Kde-buildsystem at kde.org
> https://mail.kde.org/mailman/listinfo/kde-buildsystem
>   



More information about the Kde-buildsystem mailing list