[Kommander-devel] Versioning of libs

Andras Mantia amantia at kdewebdev.org
Sun Mar 6 22:39:47 EST 2005


Hi,

 If Kommander relies on shared libraries installed in $KDEDIR/lib, it 
should set a version number to the libraries and increment that version 
whenever some incompatible change is introduced, so it avoids crashes 
like
KommanderFactory::loadPlugins - Can't load Kommander plugin library 
libkommanderwidgets
 KCrash: Application 'kmdr-executor' crashing...

And of course, it's better if it does not crash if it cannot load the 
plugin library...

I don't have much experience with such libraries requiring version 
numbers, but here is an example from KIO, how to set a version number:

libkio_la_LDFLAGS = -version-info 6:0:2 -no-undefined $(all_libraries) 
$(KDE_MT_LDFLAGS)

How the 6:0:2 becomes 4.2.0 is beyond me.
Ok, read info:/libtool, mainly the Release numbers and Updating version 
info sections.


Andras
-- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://momo.creolmail.org/pipermail/kommander-devel/attachments/20050306/34bfa9b6/attachment.pgp


More information about the Kommander-devel mailing list