Geoff, I am trying to compile and run in different environments. You were right, it wasn't finding the data files on the run environment. It works if I use 2.3.2 and put the data files in the same directory or add the BABEL_DATADIR environmental variable. I should have read the troubleshooting build problems page again.
For some reason though, I can only get it to work with 2.3.2, and not 2.3.90. I've followed the exact same build process for each, and the 2.3.2 linked executable works and the 2.3.90 executable doesn't. On the run environment, I'm getting the same warnings as before. The first is "Cannot initialize database 'types.txt' which may cause further errors." I've been looking at data.cpp and tokenst.cpp and it seems like setting the environmental variable should work fine, so I'm not sure where the problem is. I've also tried setting the BABEL_DATADIR to a directory with the data files in CMakeLists.txt. (a directory on the run environment) At this point it's working fine, but I figured I'd let you know about the rest, just in case there's a simple mistake I'm making. Also, on the cmake page that I linked before: http://openbabel.org/wiki/CMake#Creating_custom_static_binaries Should "cmake -DOpenBabel2_DIR=/home/me/some/path/lib/openbabel .." be "cmake -DOpenBabel2_DIR=/home/me/some/path/lib/cmake/openbabel2 .." ? That's where OpenBabel2Config.cmake was for me. Thanks again for your help. Naveen -- View this message in context: http://forums.openbabel.org/Forcefields-in-Static-Executable-tp4657598p4657607.html Sent from the General discussion mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss