On Sat, Dec 15, 2012 at 4:06 AM, Noel O'Boyle <baoille...@gmail.com> wrote:
> Configure cmake with -DRUN_SWIG=TRUE -DPERL_BINDINGS=TRUE
> Just running make afterwords should bind the bindings.

Is that what I should run from an SVN checkout, from a tarball, or from both?

What I've found is that no matter which way I do things (tar ball vs
SVN, with or without the -D options, on CentOS6 or Ubuntu 12.04) I
always get an error when I run make from scripts/perl due to a missing
babelconfig.h

../../include/openbabel/obutil.h:23:35: error:
openbabel/babelconfig.h: No such file or directory

If I copy the whole g++ command that gmake (in scripts/perl) chokes
on, and I manually insert "-I /usr/local/include/openbabel-2.0/" into
it, then it runs.  If I then run gmake again, everything seems to go
fine from there.  I can run a gmake test (once I set LD_LIBRARY_PATH)
and install it.

Once I learned this trick, it works even if the original top-level
cmake was not run with either of the -D options.

So I'm not sure what this means.  Why doesn't make from scripts/perl
know where to find the .h file, considering that is in the default
location?

Cheers,

Jef

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to