Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MGTwitterEngine for Iphone SDK errors

Tags:

iphone

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.

like image 579
TheGambler Avatar asked Dec 03 '22 07:12

TheGambler


2 Answers

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.

like image 144
ttvd Avatar answered Dec 22 '22 21:12

ttvd


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).

like image 24
Gonzo Oin Avatar answered Dec 22 '22 21:12

Gonzo Oin