2012/5/11 Gaudreault, Francis <francis.gaudrea...@usherbrooke.ca>:
> Hi Geoff,
>
> Yes I have my OBConversion object.
> Here is the code that compiles correctly:
>
> OpenBabel::OBConversion conv(&ifs,&ofs);
> if(!conv.SetInAndOutFormats(informat,"mol2")){
>     strcpy(error,"ERROR: OpenBabel: Formats not available\n");
>     return 0;
> }
>
> I havent heard of any environment variables before that points to the
> formats.
> When the libopenbabel file is shipped to another system, I change the
> DYLD_LIBRARY_PATH / LD_LIBRARY_PATH (Mac or Linux) environment variables so
> that I can find the library.

Enfironment wariables for plugin path and other are described in the
documentation:
http://openbabel.org/docs/2.3.1/Installation/install.html#compiling-open-babel

Look in FAQ section "What environment variables affect how Open Babel
finds formats, plugins and libraries?".


Reinis

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to