Using a dylib in xcode

176 Views Asked by At

So, I'm trying to add this library in an xcode project. http://nuclear.mutantstargoat.com/sw/libdrawtext/

I used homebrew to install the library. It's now in /usr/local/Cellar/libdrawtext/

But, even after adding the dylib that is created in /usr/local/Cellar/libdrawtext/0.1/

I checked, and there's even an alias in the usr/local/bin folder.

But for the life of me, I can't seem to be able to include "drawtext.h" in my project.

The sample code here has no indication of how to do this.

Ideas, anyone?

1

There are 1 best solutions below

0
On

Fixed it. Not sure exactly how, but I followed this tutorial http://mac-dev-env.patrickbougie.com/freetype/

After adding libdrawtext(from the homebrew installation), I also added the source of the library to my project. Works like a charm, though this is a VERY dirty solution.

I'll wait 24 hours, and if there're any better answers, I'll mark them correct.