'libxml/tree.h' file not found 库文件没有被找到
来源:互联网 发布:重庆行知职业技术学校 编辑:程序博客网 时间:2024/06/01 09:47
(打开第三方项目时,会遇到)项目中用到某个库文件 没有被找到
/Users/heyy/Desktop/ZhaoPin_V1.1-master/ZhaoPin_V1/Resource/GDataXMLNode.h:38:9: fatal error: 'libxml/tree.h' file not found
#import <libxml/tree.h>
原因:这是因为类库没有链接进来的原因。
1 . 导入类库:libxml2.2
【后缀看情况】
虽然导入但是需要再进行链接才行
2 . 在Build Settings 中搜索Header Search Paths :设置如下: $(SDKROOT)/usr/include/libxml2
编译即可成功
该库没有加入到项目中 到 framework 中找到该库添加进来 。有时会遇到 在当前系统下搜索不到该库 这是就要自己手动添加
步骤如下:
今天开始介入苹果越狱sdk,说明文档中需要加入类库libxml2.dylib。
我用的xcode版本为7.1且ios sdk版本为9.1,发现在添加链接库时找不到某些类库。例如:libxml3.dylib 已经变成了libxml2.tbd。
google后找到如下方法:
had the same problem. I found some kind of way around.
- Go to Build Phases >Link Binary with Librairies > + > Add other
- Once in the file selection window do "CMD"+Shift+G (Go to folder) and type /usr/lib/
- From /user/lib you can add : libz.dylib and more...
- Compile and have fun
意思是说libxml2.dylib还在,只是需要手动添加,地址在/usr/lib目录下。
顺便说一下, tbd文件可以减少app大小所以建议使用,但接sdk么,还得看人家用的是什么。
0 0
- 'libxml/tree.h' file not found 库文件没有被找到
- libxml/tree.h' file not found头文件找不到解决方法
- 'libxml/tree.h' file not found
- libxml/tree.h file not found
- 'libxml/tree.h' file not found
- libxml/tree.h file not found
- 关于 libxml/tree.h' file not found
- 'libxml/tree.h' file not found
- 'libxml/tree.h' file not found
- 'libxml/tree.h' file not found
- libxml/tree.h' file not found
- libxml/tree.h file not found解决办法
- libxml/tree.h' file not found
- libxml/tree.h file not found:
- libxml/tree.h file not found
- libxml/tree.h file not found解决办法
- libxml/tree.h file not found
- libxml/tree.h file not found解决办法
- 文字一个个出现的TextView
- linux下查看端口对应的进程
- 搜索引擎基础
- 卡尔曼滤波学习
- Java: HttpURLConnection 模拟登录方法 (带cookie 的Post/Get)_20160908_七侠镇莫尛貝
- 'libxml/tree.h' file not found 库文件没有被找到
- Linux下使用nexus搭建maven私服
- 数据处理之计算星期几
- Servlet与ServletContext
- 报错:Xcode 7.3 cannot create __weak reference in file using manual reference counting
- Linux设备驱动--LCD平台设备与驱动(smdk6410)
- J2EE三层架构与MVC设计模式
- jni 入门学习
- 读取手机短信