Dear Francis, I've exactly the same problem with Mychem. I'm using the following solution: #include "fingerprints/finger2.cpp" #include "fingerprints/finger3.cpp"
Try to include the cpp file of the format you are using. Cheers, Jerome On sam., 2012-05-12 at 15:04 +0000, Gaudreault, Francis wrote: > OpenBabel is not installed on the hosts that download the Application > dynamically linked to libopenbabel. > > Format files are compiled within the libopenbabel, do I need to also set the > BABEL_LIBDIR to point to libopenbabel. > > > > ________________________________________ > De : My Th [rei4...@gmail.com] > Date d'envoi : 12 mai 2012 04:08 > À : Gaudreault, Francis > Cc : Geoff Hutchison; openbabel-disc...@lists.sf.net > Objet : Re: [Open Babel] RE : linking to libopenbabel > > 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 ------------------------------------------------------------------------------ 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