SDK错误的MGTwitterEngine

SDK错误的MGTwitterEngine

本文介绍了用于Iphone SDK错误的MGTwitterEngine的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力让MGTwitterEngine适用于iPhone SDK。我按照下面的阅读说明,现在我一直收到以下错误:

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:没有这样的文件或目录
yajl_parse.h:否这样的文件或目录

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

现在,我已经对我的系统进行了搜索,并且没有其中任何一个。我错过了什么吗?另外,我在过去几天从gitub下载了MGTwitterEngine代码。

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. 在其他框架中添加libxml2.dylib。您将在以下位置找到该库:

  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

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

在项目设置中添加$ SDKROOT / usr / include / libxml2作为标题搜索路径。

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


推荐答案

虽然我从未使用过MGTwitterEngine,但该错误基本上表明你缺少yajl库。

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

你可以手动安装它(我假设你安装到默认的/ usr /本地位置):

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

然后在你的xcode项目中:

Then in your xcode project:

添加libyajl.dylib或libyajl_s.a(动态/静态 - 无论您喜欢哪种,都应该位于/ usr / local / lib /中)到项目树中的外部框架和库。在项目设置中,将/ usr / local / include / yajl /和(可能)/ usr / local / include /添加到标题搜索路径(在搜索路径部分中)。

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

之后它应该构建。

这篇关于用于Iphone SDK错误的MGTwitterEngine的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 21:34