tags:

views:

1695

answers:

4

I'm trying to get MGTwitterEngine to work for the iPhone SDK. I've followed the read me below and now I keep getting the following errors:

TCDownload.h: No such file or directory yajl_parse.h: No such file or directory

Now, I've done a search on my system and don't have either one of them. So am I missing something? Also, I've downloaded the MGTwitterEngine code within the last couple days from gitub.

READ ME

  1. Add libxml2.dylib in Other Frameworks. You'll find the library in:

    /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/usr/lib/libxml2.dylib

  2. Add "$SDKROOT/usr/include/libxml2" as a Header Search Path in your Project Settings.

+4  A: 

Although I've never used MGTwitterEngine, that error basically says that you are missing yajl library.

You can install it manually by doing (I assume you install to default /usr/local location):

git clone git://github.com/lloyd/yajl
cd yajl
./configure
sudo make install

Then in your xcode project:

Add libyajl.dylib or libyajl_s.a (dynamic/static - whichever you prefer, either should be located in /usr/local/lib/) to 'external frameworks and libraries' in your project tree. In project settings add "/usr/local/include/yajl/" and (possibly) "/usr/local/include/" to Header Search Paths (in Search Paths section).

After that it should build.

ttvd
I'm in the same bind. But trying git clone git://github.com/lloyd/yajl in terminal gave me this error "git: command not found". How do I make this work?
RexOnRoids
If you want to use yajl for iPhone development, you will have to take a further step to create the library for iPhone as well as MacOS X, which these instructions won't do.
Paul Lynch
+3  A: 

On mac, you can use port (See how to install here)

After install simply type in terminal :

sudo port install yajl

And like ttvd say before:

In your xcode project:

Add libyajl.dylib or libyajl_s.a (dynamic/static - whichever you prefer, either should be located in /usr/local/lib/) to 'external frameworks and libraries' in your project tree. In project settings add "/usr/local/include/yajl/" and (possibly) "/usr/local/include/" to Header Search Paths (in Search Paths section).

Gonzo Oin
Just a note that mac ports seemed to install into /opt/local/include rather than /usr/local/include for me
buggles
A: 

anyone can try this link also:

link text

SWATI