On Tue, Nov 15, 2011 at 5:12 PM, David Lonie <lonieda...@gmail.com> wrote:
> Hi all,
>
> I'm attempting to build a relocatable avogadro installation, and I'm
> having trouble with OpenBabel's plugin handling. The trouble seems to
> be that OpenBabel hardcodes the absolute plugin directory into
> babelconfig.h, and when I move the installation, the plugins aren't
> found, and it crashes.
>
> I also tried building static OB, and the compilation fails the
> genbankformat.cpp.
>
> I know there have been relocatable builds of OB in the past, can
> anyone share their tricks? ;-)
>
In Avogadro we set the environment variables for Open Babel (can be
seen in the code for main I believe). This allows you to ask Qt for
the location, and then figure out the relative path for OpenBabel.

Marcus

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to