Although OB (trunk or version 2.2.3) builds without errors using cmake (version 2.8.0 or 2.6.4),
babel ends in error when invoked from the command line. "babel -H" does not display the list
of supported format. When invoked ,v.g. with "babel file.res file.xyz", The following error message
is displayed :
¨babel pa142.res pa142.xyz
babel: cannot write output format!
Open Babel 2.2.99 -- Dec 6 2009 -- 16:51:34
Usage: babel [-i<input-type>]</input-type> <name> [-o<output-type>]</output-type> <name>
Try -H option for more information."</name></name>
Version 2.2.3 builds correctly using the old configure script.
Louis
Using cmake-2.8.0, OB trunk does compile as follows.
Removed all previous openbabel libs and includes in /usr/local.
Then compiled OB trunk with:
"CXX=g++-4.0 CC=gcc-4.0 cmake -DCMAKE_OSX_ARCHITECTURES="i386" .."
And now have a working babel. I do not understand why not with g++2.4.1
Louis
This appears to be a CMake bug. I'm trying to reproduce it with Kitware.
This is now fixed in 2.3 trunk.