[Kalzium] crash because kalzium still links to libavogadro.so !!

Benoît Jacob jacob at math.jussieu.fr
Mon May 21 07:00:54 CEST 2007


Actually, the cause of the problem was much simpler than I had imagined, and 
that also might explain why I triggered it while Marcus didn't:

These lines were still present in toolgroup.cpp:

    if(getenv("AVOGADRO_TOOLS") != NULL)
    {
      pluginPaths = QString(getenv("AVOGADRO_TOOLS")).split(':');
    }

Removing them obviously fixes the problem :) in other words: don't honor the 
AVOGADRO_TOOLS variable.

But since I've already renamed the engines and tools with -kalzium suffix, 
I'll take this occasion to add an extra security mechanism: check before 
loading a plugin that it filename contains "kalzium".

Cheers,
Benoit

On Sunday 20 May 2007 23:00:06 Benoît Jacob wrote:
> OK, that's fixed.
>
> Everybody: erase the $INSTALLPREFIX/lib/avogadro
> and $INSTALLPREFIX/lib/avogadro-kalzium directories.
>
> The NavigateTool isn't getting loaded anymore, sorry about that regression.
> I'll fix it tomorrow, no time tonight.
>
> Cheers,
> Benoit
>
> On Sunday 20 May 2007 20:39:32 Benoît Jacob wrote:
> > AAhhh I know !!
> >
> > We changed the name of libavogadro to libavogadro-kalzium in order to
> > prevent clashes. But we should also have renamed the Tools and Engines !!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kalzium/attachments/20070521/1efe7f27/attachment.pgp 


More information about the Kalzium mailing list