Issue in Kalziums Avogadro code

Moin

Benoit and I are working on a crash in Kalziums “old” libavogadro.
When I am opening a cml file I am getting a trillion lines like this
on the shell:

*** Open Babel Error in LoadFormatFiles
/home/kde-devel/openbabel/src/formats/.libs/pdbformat.soT did not
load properly

I get one such line per supported file format. I set this in my .bashrc:

export $BABEL_LIBDIR=/home/kde-devel/openbabel/src/formats/.libs:/home/kde-devel/openbabel/src/formats/xml/.libs

Without that line Kalzium crashes because of “missing” cml support.

Of course, our OpenBabel supports CML. We are using OB 2.2 trunk.

Any ideas?

Carsten and Benoit

Benoit and I are working on a crash in Kalziums “old” libavogadro.
When I am opening a cml file I am getting a trillion lines like this
on the shell:

*** Open Babel Error in LoadFormatFiles
/home/kde-devel/openbabel/src/formats/.libs/pdbformat.soT did not
load properly

OK, but does this work correctly in the “new” Avogadro? I’m trying to
figure out where the problem lies.

Moreover, if you run “make install” with Open Babel, and unset
BABEL_LIBDIR, does the problem go away, or is it the same?

I think the problem is that on Linux, there seems to be problems when
a library loads libopenbabel.so which then tries to load the formats
– and the names never get loaded correctly. This shows up in some of
the scripting interfaces to OB.

So answers to the questions can tell me if this is the systematic
problem I describe above, or another problem.

Thanks,
-Geoff

P.S. Oh… in Avogadro, we load the Open Babel files in
mainwindow.cpp. Is that true in Kalzium (i.e., files are loaded in the
program itself, or inside a library)?

Geoffrey Hutchison wrote:

Benoit and I are working on a crash in Kalziums “old” libavogadro.
When I am opening a cml file I am getting a trillion lines like this
on the shell:

*** Open Babel Error in LoadFormatFiles
/home/kde-devel/openbabel/src/formats/.libs/pdbformat.soT did not
load properly

OK, but does this work correctly in the “new” Avogadro? I’m trying to
figure out where the problem lies.

Moreover, if you run “make install” with Open Babel, and unset
BABEL_LIBDIR, does the problem go away, or is it the same?

I thought the problem was similar to that of Avogadro when it is not
installed - can’t find plugins without an environment variable set to
point to them. This was working when I implemented it fine. The files
are loaded in a very similar way to Avogadro and I think that is where
the inspiration came from.

I spoke to Carsten on IM earlier about it but I suspect it is simply
because openbabel is not installed on the system. Kalzium just needs OB
2.1.1, not trunk and so the normal system binary could be installed to
check if this is the case. I can probably build KDE 4 in a VM and do
limited testing if that would help - I want to ensure Kalzium works well
for the release. If only my Linux desktop were out here already!

I will be around on IRC and will be checking the mailing list too.
Carsten never really answered me earlier but I got the feeling I had
said something that helped… If not feel free to poke me again.

Thanks,

Marcus