Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hpple : 'libxml/tree.h' file not found

Tags:

ios

hpple

When I use hpple and build, aways show " 'libxml/tree.h' file not found " error.

I have , set [Header Search Path] "${SDKROOT}/usr/include/libxml2" set [Other Linker Flag] value as "-lxml2"

like image 905
Sam Niu Avatar asked Dec 12 '11 02:12

Sam Niu


2 Answers

Oh, sorry, I just set the TARGETS's Build Settings forgot set the PROJECT -->Build Settings.

like image 200
Sam Niu Avatar answered Nov 17 '22 01:11

Sam Niu


Step 1: Target--> In Build settings-->Header search path-->press return(enter) key--->replace /usr/include/libxml2

Step 2: Target--> In Build phase--> confirm it whether "libxml2.dylib" framework is present, if not added

Step 3: Target--> In Build phase--> search libxml2.dylib then click add button

Refer Screenshot:

enter image description here

like image 2
Divya Bharathi Avatar answered Nov 17 '22 01:11

Divya Bharathi