[cairo] Compilation Error

Naveen M K naveen at syrusdark.website
Sun Feb 14 13:13:35 UTC 2021


Hello,

I think using meson is a lot simpler. That guide seems to be outdated.
Last releases tar archives don't contain meson sub-projects, that a problem already reported, so I 
getting archive from Gitlab seems to be the best way to go.
essentially running these command will work, after install meson and ninja
https://meson.build

meson setup --prefix=$prefix --buildtype=release cairo_builddir cairo
meson install -C cairo_builddir

This should install Cairo on `$prefix`.

14.02.2021, 16:04, "Shashwat S" <redbluegreen0601 at gmail.com>:
> Hi i'm having problem compiling cairo on mac in order to distribute it with my application (following this guide : https://www.cairographics.org/end_to_end_build_for_mac_os_x/)
>
> i'm getting this error
>
> Undefined symbols for architecture x86_64:
>   "_png_create_info_struct", referenced from:
>       _write_png in cairo-png.o
>       _read_png in cairo-png.o....
>
> libpng.dylib does exist on /cairotut/build/lib directory and does have the following symbols
> i think i need to pass -I/include and -L/lib to makefile but where should i put it in the makefile?
>
> sorry for poor english
>
> regards, shashwat.
> ,--
> cairo mailing list
> cairo at cairographics.org
> https://lists.cairographics.org/mailman/listinfo/cairo


Regards,
Naveen 



More information about the cairo mailing list