MGTwitterEngine for Iphone SDK errors

后端 未结 5 1814
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-01 03:49

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 f

相关标签:
5条回答
  • 2021-01-01 04:23

    I am just going to add something because I think it is important and I usually hacked around it in the past.

    ---->> The header search paths are defined in project settings but are over-ridden in the target settings so if you are having problems including certain files check the header search paths that are set in your target settings. If they are bold then they are being used and overriding the default settings for the project.

    0 讨论(0)
  • 2021-01-01 04:32

    dl and install this: http://cmake.org before

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

    then add the dylibs and you should be ok!

    0 讨论(0)
  • 2021-01-01 04:36

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

    0 讨论(0)
  • 2021-01-01 04:37

    This works if you don't care about YAJL:

    "Guys – the yajl/yajl_parse.h error is confusing and the reason the demo works is that the files that need yajl are excluded from building, even though they’re in the project. To fix in your own project go into the MGTwitter folder via xcode and select each .m file with the term yajl in it (there should be 6), right-click -> Get Info -> Targets tab and uncheck the box next to your app name. HTH, Jon"

    One of the comments on http://aralbalkan.com/3133

    0 讨论(0)
  • 2021-01-01 04:41

    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.

    0 讨论(0)
提交回复
热议问题