[PyKDE] C++ code generation problem: longlong is undefined

Vincent Jong vjong at jandjgraphics.com
Sun Dec 18 17:24:08 GMT 2005

Nevermind, I got the link as I remember about MARC, lol. Okay kdecore  
generates with no problems now and it's getting farther down. Code  
generation for kfile is erroring out with:

sip: sip/kfile/kdirsize.sip:73: A function with the same Python signature  
has already been defined
Error: Unable to create the C++ code.

Is it complaining about there being 2 '%If (  - KDE_3_0_1 )' code blocks?


Vincent J.

On Sun, 18 Dec 2005 09:10:00 -0800, Vincent Jong <vjong at jandjgraphics.com>  

> I'll give it a go. Do you have the link again to the version that you  
> sent me a couple of mails ago?
> I've been cleaning out my mail and I deleted the contents of my  
> temp-build directory forgetting to make a copy of the tarball.
> Thanks,
> Vincent J.
> On Sun, 18 Dec 2005 08:45:34 -0800, Jim Bublitz  
> <jbublitz at nwinternet.com> wrote:
>> On Saturday 17 December 2005 22:22, Vincent Jong wrote:
>>> Yeah, it looks like there's still enough of a difference between 3.1.4  
>>> and
>>> 3.1.1 as the KShortcutList error is still occuring. Unfortunately, this
>>> error occurs at the beginning of the configure process, so it looks  
>>> like
>>> it will be a slow process with finding errors one by one. I wish it  
>>> was at
>>> the end of the configure process as it would be easier for you since  
>>> you'd
>>> know most everything else worked. I'm hoping that you will still be  
>>> open
>>> in supporting my old version of KDE, lol.
>> In sip/kdecore/kshortcutlist.sip, find the point where enum Other { };  
>> is
>> declared and remove completely the %If ... %End that wraps it - that's  
>> an
>> artifact remaining from when the code that generates the sip files  
>> didn't
>> handle enums correctly - just never got fixed.
>> Also, you should change the two methods below so that the first  
>> argument in
>> each is a fully-qualified name:
>> class KAccelShortcutList : KShortcutList
>> {
>>    ...
>>     virtual QVariant     getOther (KShortcutList::Other, uint) const;
>>     virtual bool         setOther (KShortcutList::Other, uint,  
>> QVariant);
>>     ...
>> };
>> I don't think there should be that many more problems, but as long as  
>> you're
>> interested in tracking them down, I'm willing to fix them. I don't have  
>> a
>> version of KDE 3.1.x other than 3.1.4 available any longer.
>> Jim

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

More information about the PyQt mailing list