[cairo] ld: Undefined symbol: _compress with cairo 1.2.0 on Mac
OS X; cairo 1.1.10 was fine
Evan Martin
martine at danga.com
Wed Jul 5 17:26:48 PDT 2006
On 7/6/06, Andreas Tobler <toa at pop.agri.ch> wrote:
> Ryan Schmidt wrote:
>
> >> If during the build process you get the Undefined Symbols _compress
> >> and _uncompress, add -lz to the end of your build command
> >
> > But I'm not sure where to apply that change in the cairo 1.2.0 source,
> > nor whether it's the right solution. Does anybody here know?
>
> On the quick you can add the -lz in the Makefile in src to CAIRO_LIBS at
> the end.
A slightly less hacky way is to run configure like
LDFLAGS=-lz ./configure <other options>
Ryan, you might want to verify that your binary works when all of the
cairo libraries are uninstalled from your system. Building
distributable binaries like this can be tricky.
More information about the cairo
mailing list