Reputation: 6247
I have added libxml2 to my Xcode 4 project following this guide.
But it's not working. Xcode gives me error saying it no such libxml2 directory. What am I doing wrong? Here's the screenshots of the target settings of my project:
Thanks.
Upvotes: 20
Views: 22231
Reputation: 9558
Do the following steps,
Thats all.
Upvotes: 27
Reputation: 723
You need to change Always Search User Paths
to YES also.
That with "${SDK_DIR}/usr/include/libxml2" on your User header search paths
should work.
Upvotes: 3
Reputation: 544
#include <libxml/HTMLparser.h>
and you're offfor better explanation see to this answer https://stackoverflow.com/a/3429301/149663
Upvotes: 29
Reputation: 5308
In "Other flags" add -lxml2 And also change the Header to ${SDKROOT}/usr/include/libxml2
Upvotes: 2