Skip to main content
Inspiring
December 17, 2020
Answered

stand alone cairo lib for macos

  • December 17, 2020
  • 1 reply
  • 1725 views

Dear AE fellows,

I wrote a plugin for AE for windows which used cairo library.

I simply used the standalone cairo binary for windows which was easily downloaded from thr web. 

Now I'd like to rewrite my plugin for MacOs.

Do you know if there is standalone cairo library for macos?

 

Yaroslav.

 

Correct answer James Whiffin

Hi Yaro

I'm not sure if it will work, but here's the cairo libraries I use (statically compiled). 

lib archive 

1 reply

James Whiffin
James WhiffinCorrect answer
Legend
December 21, 2020

Hi Yaro

I'm not sure if it will work, but here's the cairo libraries I use (statically compiled). 

lib archive 

Inspiring
January 8, 2025

Hi James, I'm having issues compiling cairo for macos (working in windows, statically). I did try your statically compiled libraries (and other from web), but I'm not sure for settings in xcode. Tried pretty much everything I could think of. First of all, in xcode, mach-O type should be Bundle or  Static library? If I bundle it, it reads dylib from my drive (but then user cannot run this). If I compile it "Static Library" I get error in AE couldnt find entry point. (Also I signed/notarised/stepled my plugin). Do I need to type a certian directive in header file (like for windows CAIRO_WIN32_STATIC_BUILD). Any help is much appreciated!

James Whiffin
Legend
January 11, 2025

Hi

 

It's been a while but I compiled it using command line so I'm not sure on the Xcode settings. Also which version of cairo are you trying to build? The later releases have much more dependencies which made it so difficult to compile that I gave up and outsourced the job. 

For mac, there shouldn't be any special defines like the windows CAIRO_WIN32_STATIC_BUILD.

 

What happens if you use the libs I linked?