-
Website
http://damienh.org/ -
Original page
http://damienh.org/2009/06/20/setting-up-mgtwitterengine-with-yajl-106-for-iphone-development/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
Yong Rong Hou
1 comment · 1 points
-
apple99
1 comment · 1 points
-
OJ
1 comment · 1 points
-
bigfatsea
1 comment · 1 points
-
robaggio
1 comment · 1 points
-
-
Popular Threads
Scanning dependencies of target yajl
CMake Error: Cannot open file for write: /Users/morgz/yajl/build/src/CMakeFiles/yajl.dir/depend.make.tmp
CMake Error: : System Error: Permission denied
:-( Looks like my YAJL celebrations were premature
I copied this directly into the console:
sudo ./configure && make install
Is sudo'ing when the command begins with the word sudo? I've had nothing but nightmares with YAJL!
Is there any chance you could uplaod the files so I could then copy them into /usr/local/lib/ and /usr/local/include/yajl manually?
Thanks
D
sudo ./configure && make install
break it up into two commands:
sudo ./configure
sudo make install
I added the search paths and it should work correctly, but it always ends saying it can't find the <yajl/yajl_parse.h> header...
Don't know what I'm doing wrong here.
Help appreciated. ;)
/usr/local/lib and /usr/local/include "read and write" from "read only" in the finder. (use "go to folder" in finder and type the address)
Hope that helps!
btw: if you are developing for iphone OS 3.0 as I did, you might get error with [NSApp terminate:self] in the delegate file. I used "exist (0)" instead. I wander if anyone has the same problem
Also can anyone inform me how to get the status data? I tried:
NSMutableArray *user1= [message objectAtIndex:0];
in the statusesReceived method but get the NSCFArray beyond bounds error.
Library not found for -lyajl
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
Can't find anything on the Internet to help me out. I'd really like to use this but it has been an absolute nightmare getting started with it...
Any ideas?
In my case, I had to put in "/usr/local/include/" (without the 'yajl' sub-directory) as a Header Search Path to get it to work. Wouldn't see the file otherwise. (This took a while for me to figure out :P)
A tip with adding the libxml2.dylib framework to the project:
Instead of using Finder and dragging it in, you can also command-click Resources › Add › Existing Frameworks, and chose libxml2.dylib
I could previously only find "libxml2.2.dylib", and this doesn't seem to work very well.
谢谢给这篇真好的文章!