libxml/tree.h no such file or directory

最后一个 国外的帖子帮我解决了问题:

http://stackoverflow.com/questions/1428847/libxml-tree-h-no-such-file-or-directory  (我是翻墙的)

我执行的步骤:

1. Target settings

Click on your target (not your project) and select Build Phases.

Click on the reveal triangle titled Link Binary With Libraries. Click on the + to add a library.

Scroll to the bottom of the list and select libxml2.dylib. That adds the libxml2 library to your project.

2. Header Search Paths

add "$(SDKROOT)/usr/include/libxml2" to the Header Search Paths on the TARGET (Build Settings -> Header Search Paths)

3.clean  and bulid

时间: 2024-08-29 15:55:36

libxml/tree.h no such file or directory的相关文章

Cannot open include file: 'libxml/xpath.h': No such file or directory

在搭建scrapy爬虫框架时,通过pip安装lxml遇到了这个问题,我是用32位的windows搭建爬虫框架,python版本是2.7.12, 解决方案如下: 原因: 在网上各种找原因,有大神是说没安装libxml2-devel and libxslt-devel,和没有安装 libxml2和 libxslt文件.其实报错原因中也说明了没有安装好 libxml2 各种解决方案,但是找了很久,试了很多种方法,最终我就参考了 http://coding.derkeiler.com/Archive/P

XML解析适配 'libxml/tree.h'file not found 错误解决办法

Xcode 'libxml/tree.h'file not found 错误解决办法 在工程的"Build Settings"页中找到"Header Search Path"项,添加"/usr/include/libxml2".在"Other Linker Flags"项,添加"-lxml2" XML解析适配 'libxml/tree.h'file not found 错误解决办法

UI进阶 XML解析适配 'libxml/tree.h'file not found 错误解决办法

Xcode 'libxml/tree.h'file not found 错误解决办法 在工程的"Build Settings"页中找到"Header Search Path"项,添加"/usr/include/libxml2".在"Other Linker Flags"项,添加"-lxml2" UI进阶 XML解析适配 'libxml/tree.h'file not found 错误解决办法

UI进阶 XML解析适配 引入GDataXML文件时候 'libxml/tree.h'file not found 错误解决办法

在工程的"Build Settings"页中找到"Header Search Path"项,添加"/usr/include/libxml2". 在"Other Linker Flags"项,添加"-lxml2" 同理引入别的类型文件不匹配的时候也可以用这种方法 UI进阶 XML解析适配 引入GDataXML文件时候 'libxml/tree.h'file not found 错误解决办法

libxml/tree.h file not found

stackoverflow用户对添加libxml2库表现出了极大的抱怨 ,原因在要把它好好地添加进去实在是太复杂了. 我就是因为出现了'libxml/tree.h file not found’错误,才发现的这篇贴子,照着做,错误就消除了,备注如下: 原始地址:http://stackoverflow.com/questions/1428847/libxml-tree-h-no-such-file-or-directory 见e.w. parris的答案 Adding libxml2 is a

(ros/catkin) ××/××.h: No such file or directory

操作系统:ros(indigo)/ubuntu14.04编译工具:cmake(catkin_make) 出现错误:robot_control/src/robot_control.cpp:9:62: fatal error: robot_control/robot_control.h: No such file or directory #include<robot_control/robot_control.h> 出现此错误时,有三种可能情况: 1. 此.h文件是由自定义消息生成的,如robo

Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法

错误描述 安装Redis 2.8.18时报错: zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directoryzmalloc.h:55:2: error: #error "Newer version of jemalloc required"make[1]: *** [adlist.o] Error 1make[1]: Leaving directory `/data0/src/redis-2.6.2/src

编译Busybox时,出现错误fatal error: curses.h: No such file or directory

1 scripts/kconfig/mconf.c: In function ‘exec_conf’: 2 scripts/kconfig/mconf.c:481:2: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result] 3 pipe(pipefd); 4 ^ 5 SHIPPED scripts/kconfig/zconf.tab.c 6 SH

出错mlogc.c:32:23: error: curl/curl.h: No such file or directory

出现下列错误: mlogc.c:32:23: error: curl/curl.h: No such file or directory mlogc.c:1091: error: expected ')' before '*' token mlogc.c: In function 'logc_init': 出错原因:缺少libcurl-dev or libcurl-devel centOS上安装依赖包: yum install libcurl-dev libcurl-devel 出错mlogc.