Re API, SVG is an output file format and so is used via obconversion like
smiles, etc.
On 2 Feb 2017 5:54 p.m., "Geoffrey Hutchison" <geoff.hutchi...@gmail.com>
wrote:
You may have libcairo installed. The question is whether it was found when
you compiled Open Babel or not.
"Manually" adding files isn't going to work - either libcairo was found
when you ran "cmake" or not.
You can check with "ccmake ." and look for the CAIRO bits.
I'm not sure what you mean by "API" for SVG. Open Babel will output an SVG.
There's no API.
-Geoff
On Feb 1, 2017, at 12:27 PM, xh s <sxh....@gmail.com> wrote:
But I have cairo installed:
sxh% brew info cairo
cairo: stable 1.14.8 (bottled), devel 1.15.2, HEAD
Vector graphics library with cross-device output support
https://cairographics.org/
/usr/local/Cellar/cairo/1.14.8 (119 files, 5.9M)
Poured from bottle on 2017-01-27 at 11:59:37
/usr/local/Cellar/cairo/1.15.2 (119 files, 5M) *
Built from source on 2017-01-31 at 17:23:30
Also, I think the functions that caused error are from cairopainter.cpp,
which should be installed in the openbabel library but are missing now. The
already installed libraries are dynamic and I don't know how to manually
add these missing ones. I don't know what was wrong with my openbabel
installation but I just don't seem to be able to get those depict.h related
files and libraries installed.
On another note, I don't mind using SVG. But I can't find the documentation
about its API.
Thanks,
Xianghai
On Wed, Feb 1, 2017 at 5:44 AM, Geoffrey Hutchison <
geoff.hutchi...@gmail.com> wrote:
> > from homebrew/macports and compiling manually), include/depict/ is not
> installed. If I copy this folder from the source code, I get some errors
> like this which I think means I'm missing the libraries.
>
>
> Mac OS X does not use cairo (a Linux drawing library). If you don't have
> it installed, it won't copy.
>
> Personally, I suggest using SVG, which does not require external libraries.
>
> But if you want to use libcairo (e.g for PNG support) you can make sure
> it's installed using homebrew:
> http://brewformulas.org/Cairo
>
> Hope that helps,
> -Geoff
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss