[Kde-windows] Can't build libDCOP.dll

Ralf Habacker ralf.habacker at freenet.de
Sun Oct 16 14:28:45 CEST 2005


Am Sonntag, 16. Oktober 2005 13:05 schrieb Christian Ehrlicher:
> Ralf Habacker schrieb:
> > Am Samstag, 15. Oktober 2005 21:28 schrieb Christian Ehrlicher:
> >>Hello
> >>
> >>I can't build libDCOP.dll because kICE.lib is missing.
> >>
> >>----------------------8<----
> >>link /nologo /INCREMENTAL /DEBUG /dll /out:build\dcop\libDCOP.dll
> >>implib:build\dcop\DCOP.lib /LIBPATH:build\dcop\KDE-ICE
> >>/LIBPATH:dcop\KDE-ICE  LIBPATH:dcop\KDE-ICE /LIBPATH:.
> >>/LIBPATH:build\dcop\build /LIBPATH:dcop\build
> >>LIBPATH:D:\qt-3.3\qt-4-msvc.net\lib QtGuid4.lib zlib.lib QtCored4.lib
> >>Qt3Supportd4.lib kICE.lib build\dcop\dcopstub.obj build\dcop\dcopref.obj
> >>build\dcop\dcopobject.obj build\dcop\dcopclient.obj
> >>LINK : fatal error LNK1181: Eingabedatei 'kICE.lib' kann nicht geöffnet
> >>werden
> >>scons: *** [build\dcop\libDCOP.dll] Error 1181
> >>scons: building terminated because of errors.
> >>----------------------8<----
> >>
> >>Any hints?
> >
> > do you have seen that KDE-ICE llibrary was build ?
> > May be an  (mingw command syntax)
> > cd kdelibs; rm -r build
> > scons configure
> > scons
> > should build KDE-ICE related parts
> > Ralf
>
> Ok, I've found the problem. msvc doesn't create an import lib because no
> symbols are exported. There are two solutions for this
> a) use a modified ICE-DEF.cpp and give this to the linker
> b) export them with declspec __dllexport()
>
Jaruslav had introduced the KDE_<LIB>_EXPORT stuff to provide this. 
Another way is to use ICE as static lib. I've used  the shared lib for mingw 
because of a linker problem, I couldn't solved yet. 

> I prefer the second one because this is used everywhere else too and gcc
> also can handle this with __attribute("visible").
> For the first solution I also don't know how to tell SCons that there is
> an additional dependency file (atm I have to delete the whole cache to
> force a relink when the def-file is changed)
>
> Christian
> _______________________________________________
> 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