我正在使用theos编写一个调整并需要使用 libxml2。我添加了 LDFLAGS,如下所示:
widget_INSTALL_PATH = /Library/WeeLoader/Plugins/
widget_FRAMEWORKS = UIKit CoreGraphics
widget_LDFLAGS = -lxml2
我的xxx.m中的代码
#import "BBWeeAppController-Protocol.h"
#import <libxml/HTMLparser.h>
比make,错误:
error: libxml/HTMLparser.h: No such file or directory
在xcode中需要设置'头搜索路径' -> $SDKROOT/usr/include/libxml2,但是在“theos”中怎么办?
最佳答案
我相信您需要使用 CFLAGS。 如果您还没有查看 Theos Makefile 页面 http://uv.howett.net/ipf.html
关于iphone - 西奥斯 libxml2 : No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14699409/