[cairo] Cairomm examples / autotools

Jonathon Jongsma jonathon.jongsma at gmail.com
Tue Jan 24 19:23:19 PST 2006

On 1/24/06, Behdad Esfahbod <behdad at cs.toronto.edu> wrote:
> You need to do example_pdf_file_LDADD = path-to-cairomm.la such
> that libtool detects what you are doing and create a wrapper for
> example_pdf_file to set correct LD_LIBRARY_PATH...  I have no
> idea how the png_file example is working without it.
> See pango/examples for example...

I believe I am actually doing this already but using LIBS instead of
LDADD.  Is that possible?  (There's a Makefile.am_fragment in the
examples/ directory which sets LIBS and is included into all of the
example Makefile.am files)
This is supported by the fact that if I comment out the line that
creates a pdf surface and change it to an image surface, it compiles
and runs fine.
This is the same setup we use in gtkmm, which seems to work just fine.
 And it seems to be able to find and execute all of the other cairo
functions, but it balks at just the cairo_pdf_surface_create()
function.  I'll readily admit that I'm not the worlds foremost expert
on autotools, though, so I could easily be missing something.


More information about the cairo mailing list