[Kde-windows] Can't build libDCOP.dll
Jarosław Staniek
js at iidea.pl
Sun Oct 16 13:30:40 CEST 2005
Christian Ehrlicher said the following, On 2005-10-16 13:05:
> -----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)
In kdelibs3 I used 1st solution, but it's ok to use the second.
--
regards / pozdrawiam,
Jaroslaw Staniek / OpenOffice Polska
Kexi Developer:
http://www.kexi-project.org | http://koffice.org/kexi
KDE3, KDE4 libraries for developing MS Windows applications:
http://wiki.kde.org/tiki-index.php?page=KDElibs+for+win32
More information about the Kde-buildsystem
mailing list