ungerik / go-cairo

Go binding for the cairo graphics library
Other
142 stars 32 forks source link

Unable to build project #9

Closed ARolek closed 9 years ago

ARolek commented 9 years ago

System specs:

when I run go-cairo-example I get the following output:

could not determine kind of name for C.cairo_pdf_version_t
could not determine kind of name for C.cairo_pdf_version_to_string
ungerik commented 9 years ago

Sounds like you have an incompatible cairo version. Check if you can find "cairo_pdf_version_t" in the C headers.

ARolek commented 9 years ago

I just ran:

grep -rnw /usr/include/cairo/ -e "cairo_pdf_version_t"

the dir /usr/include/cairo/ contains the following files:

/usr/include/cairo/cairo-deprecated.h
/usr/include/cairo/cairo-features.h
/usr/include/cairo/cairo-ft.h
/usr/include/cairo/cairo-pdf.h
/usr/include/cairo/cairo-ps.h
/usr/include/cairo/cairo-svg.h
/usr/include/cairo/cairo-version.h
/usr/include/cairo/cairo-xlib-xrender.h
/usr/include/cairo/cairo-xlib.h
/usr/include/cairo/cairo.h

The output was blank, so the string was not found.

What version of Cairo do these bindings work with?

ungerik commented 9 years ago

I am using libcairo2-dev version: 1.13.0~20140204-0ubuntu1.1 which is the standard on Ubuntu 14.10. Seems you have to upgrade from 1.8 to 1.13 or 1.14.

ungerik commented 9 years ago

Solution: Update to latest cairo version.

ARolek commented 9 years ago

Great. Thanks for the help. Centos6's yum repo is really out of date.