This is very helpful - thank you! I was able to make a static libopenbabel on OS X 10.5 with eigen3 and edited plugin.cpp.
Unfortunately there seem to be more problems with MinGW build - I'm getting the following error - perhaps someone knows what to do: [ 79%] Built target openbabel [ 79%] Built target babel Linking CXX executable ../bin/obabel.exe CMakeFiles/obabel.dir/obabel.obj: In function `main': c:/msys/1.0/home/igor/openbabel-svn/tools/obabel.cpp:304: undefined reference to `DLHandler::findFiles(std::vector<std::string, std::allocator<std::string> >&, std::string const&)' collect2: ld returned 1 exit status make[2]: *** [bin/obabel.exe] Error 1 make[1]: *** [tools/CMakeFiles/obabel.dir/all] Error 2 make: *** [all] Error 2 Igor On Tue, 2012-07-31 at 01:02 -0400, Björn Grüning wrote: > Am Montag, den 30.07.2012, 22:43 -0400 schrieb Geoff Hutchison: > > > I am having some problems to compile OpenBabel on Ubuntu with static > > > libs. The compiler is GNU (GCC/G++), Eigen3, Zlib, Cairo and XML2 > > > libraries were installed. > > > > > > The error message appears during the linking step: > > > > > > Linking CXX executable ../bin/babel > > > ../src/libopenbabel.a(plugin.o): In function > > > `OpenBabel::EnableStaticPlugins()': > > > /home/asn/Downloads/openbabel/src/plugin.cpp:245: undefined reference > > > to `OpenBabel::theChemDrawBinaryFormat' > > > > > > My first suggestion would be to try SVN trunk. > > http://openbabel.org/wiki/Subversion > > > > I know there have been multiple patches towards static compilation. Not all > > of them can be incorporated into the v2.3 release branch. > > > > Current trunk has the same error. The ChemDrawBinaryFormat got a major > overhaul, the diff between 2.3.1 and trunk is not small. > As a temporary solution and if you do not need that format you can > comment line 245 in plugin.cpp. After that openbabel compiles fine. > > Hope that helps, > Bjoern > > > > > > > > ------------------------------------------------------------------------------ > > 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 ------------------------------------------------------------------------------ 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