[Kde-windows] Loading a part on win32/mingw

Paulo Jorge Guedes Paulo.Guedes at artelecom.pt
Mon May 29 19:13:41 BST 2006


> -----Original Message-----
> From: Jarosław Staniek [mailto:js at iidea.pl]
> Sent: segunda-feira, 29 de Maio de 2006 17:37
> To: KDE on Windows
> Cc: kde-core-devel at kde.org
> Subject: Re: [Kde-windows] Loading a part on win32/mingw
> 
> > Anyway, I tried with msvc and noticed the installed part files are named
> > "foobarpart".[dll|la] instead of "libfoobarpart".[dll|la].
> > CMake gurus, is this really intended (specially the ".la" file)?
> >
> > If I add the prefix lib to the la file "foobarpart.la", that plugin is
> > found, although I get this error:
> >
> > win32_mapSo2Dll: 'd:\kde4-msvc\\lib\kde4\klinkstatuspart.dll' )
> > klinkstatus:
> > className=KParts::ReadOnlyPartmetaObject->className()=KLinkStatusPa
> > rt
> > klinkstatus:
> > className=KParts::ReadOnlyPartmetaObject->className()=KParts::ReadO
> > nlyPart
> > klinkstatus: create - 1
> >
> > With mingw the part can't be found and I think the problem lies in the
> > ltdl_win.c code.
> 
> This can be fixed with #ifdef for mingw. MSVC has a _tradition_ of using
> lib
> names without "lib" prefix, and I guess with is not bad. I used this on
> KDE3
> with no problem and the code (that I ported) reflects this idea.
> 
> I'd be about to drop .la files usage compeltely in KDE4, on win32, then on
> UNIX. Installing wil be easier, and faster.
> 
> Developers: Please tell me how do you like this? I can most likely provide
> a
> patch.
> 

It would be nice to start by fixing the paths and get rid of KDEDIR :)

Paulo




More information about the kde-core-devel mailing list