Configure cmake with -DRUN_SWIG=TRUE -DPERL_BINDINGS=TRUE Just running make afterwords should bind the bindings.
On 14 December 2012 18:16, Jeff Janes <jeff.ja...@gmail.com> wrote: > I'm having quite an adventure getting the Perl to talk to openbabel. > > If I get openbabel 2.3.2 from svn, these two files are missing: > > scripts/perl/OpenBabel.pm > scripts/perl/openbabel-perl.cpp > > So I switched to a tarball of 2.3.2, which includes them, but if I > want to build from SVN how do I get these files? > > The scripts/perl/README gives a dependency as "openbabel-2.3 or a more > recent version" but doesn't say how that install needs to have been > configured. I used: > > cmake -DRUN_SWIG=1 .. > > Is that the correct configuration? > > After running "perl Makefile.PL", I then run make and get: > > g++ -c -I../../include -I/include -D_REENTRANT -D_GNU_SOURCE > -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"1.5.0\" > -DXS_VERSION=\"1.5.0\" -fPIC "-I/usr/lib64/perl5/CORE" > openbabel-perl.cpp > > In file included from openbabel-perl.cpp:1740: > ../../include/openbabel/obutil.h:23:35: error: > openbabel/babelconfig.h: No such file or directory > > I can find babelconfig.h under > "/usr/local/include/openbabel-2.0/openbabel/babelconfig.h" (the > default location it was installed), but how do I tell Makefile.PL to > find it there? The Wiki page http://openbabel.org/wiki/Perl explains > how to make it find the .so files, but not the .h files. > > Thanks, > > Jeff > > ------------------------------------------------------------------------------ > 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 ------------------------------------------------------------------------------ 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