JAHelia
JAHelia

Reputation: 7922

Unable to compile my project with libxml2 and XCode 4.4

My project was working without errors on XCode 4.2 on Lion. Now I'm running Mountain Lion with XCode 4.4 and when I try to build the project it gives me an error that tree.h file cannot be found. I checked the header search path and it was correct. I searched the web for such an error and found the same solution on many different pages but couldn't understand that particular solution, see for example this page.

How can I solve this problem? Alternately, can you clarify the weird solution that is spread all over the internet?

Upvotes: 2

Views: 1428

Answers (2)

JAHelia
JAHelia

Reputation: 7922

I had to add another header search path which is: $(SDKROOT)/usr/include/libxml2. This fixed the problem.

Upvotes: 3

Kamchatka
Kamchatka

Reputation: 3675

Go in the XCode preferences and install the command line tools.

Upvotes: 2

Related Questions