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

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Sun Oct 16 13:05:23 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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()

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDUjPznNKwkgf+zVMRAgOPAJ9R7Z8JsVNT7eXFGkmSPq+rC0Af/gCfZYIy
LL4DITtkn0o/CMzXULKfMrw=
=UM8c
-----END PGP SIGNATURE-----



More information about the Kde-windows mailing list