Hey everyone, just as a preface, I'm pretty new to wdl-ol and C++ (I have a bit of experience writing Android apps in Java). I really appreciate the community here - it's been tremendously helpful so far.
I'm working on some plugins, and looking forward I'd really like to include some spiffier drawing, ideally through Cairo. So far I've been unable to install/include Cairo in my Xcode project - but I don't really have experience using libraries, especially not for C++ and in Xcode, so I'm not really sure where to go next.
I'm using Xcode 8 on OS X 10.11.6.
I've tried following this guide:
https://simplapi.wordpress.com/2015/...ics-in-wdl-ol/
However it's geared toward developing on Windows with Visual Studio, and I haven't been able to get it working. When trying to build the App (linking as either an executable or a dynamic library) I'm getting Mach-O linker errors:
Undefined symbols for architecture x86_64:
"_cairo_arc", referenced from:
MyCairoControl:
raw(IGraphics*) in MachoBogusCairoTest.o
"_cairo_create", referenced from:
MyCairoControl::MyCairoControl(IPlugBase*, IRECT) in MachoBogusCairoTest.o
MyCairoControl:
raw(IGraphics*) in MachoBogusCairoTest.o
"_cairo_curve_to", referenced from:
MyCairoControl:
raw(IGraphics*) in MachoBogusCairoTest.o
"_cairo_destroy", referenced from:
MyCairoControl::~MyCairoControl() in MachoBogusCairoTest.o
"_cairo_fill", referenced from:
MyCairoControl:
raw(IGraphics*) in MachoBogusCairoTest.o
"_cairo_image_surface_create", referenced from:
MyCairoControl::MyCairoControl(IPlugBase*, IRECT) in MachoBogusCairoTest.o
MyCairoControl:
raw(IGraphics*) in MachoBogusCairoTest.o
"_cairo_image_surface_get_data", referenced from:
MyCairoControl:
raw(IGraphics*) in MachoBogusCairoTest.o
"_cairo_move_to", referenced from:
MyCairoControl:
raw(IGraphics*) in MachoBogusCairoTest.o
"_cairo_paint", referenced from:
MyCairoControl:
raw(IGraphics*) in MachoBogusCairoTest.o
"_cairo_restore", referenced from:
MyCairoControl:
raw(IGraphics*) in MachoBogusCairoTest.o
"_cairo_save", referenced from:
MyCairoControl:
raw(IGraphics*) in MachoBogusCairoTest.o
"_cairo_set_line_width", referenced from:
MyCairoControl:
raw(IGraphics*) in MachoBogusCairoTest.o
"_cairo_set_operator", referenced from:
MyCairoControl:
raw(IGraphics*) in MachoBogusCairoTest.o
"_cairo_set_source_rgba", referenced from:
MyCairoControl:
raw(IGraphics*) in MachoBogusCairoTest.o
"_cairo_stroke", referenced from:
MyCairoControl:
raw(IGraphics*) in MachoBogusCairoTest.o
"_cairo_stroke_preserve", referenced from:
MyCairoControl:
raw(IGraphics*) in MachoBogusCairoTest.o
"_cairo_surface_destroy", referenced from:
MyCairoControl::~MyCairoControl() in MachoBogusCairoTest.o
"_cairo_surface_flush", referenced from:
MyCairoControl:
raw(IGraphics*) in MachoBogusCairoTest.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It looks to me like I haven't even included the Cairo library, or at least I've included the wrong one.
Do I need to make a build of Cairo specifically for OS X (I've tried this, but I'll admit I have pretty much no idea what I'm doing)?
I think I've checked all the Cairo related threads here, but nothing has been particularly illuminating for me.
If anyone has time, could you let me know (in as much detail as you can bear) how to get Cairo up and running on OS X? Thanks for your time!