xcode4 下 wax开发环境的搭建,Error opening wax scripts: loading wax stdlib: bad header in precompiled chunk
来源:互联网 发布:cnzz 阿里云备案 编辑:程序博客网 时间:2024/04/24 15:55
在参考:https://github.com/probablycorey/wax 搭建的过程中,运行官方的例子,console中总是出现:
Error opening wax scripts: loading wax stdlib: bad header in precompiled chunk
经过漫长的查找,最终发现是我的开发机的Lua版本不对,应该这样:
首先,官方文档没提需要在开发机上安装Lua,这个是必须安装的,因为编译脚本需要Lua支持。
Lua在这里下载:http://www.lua.org/download.html
编辑 lua-5.1.4/src/Makefile,将:
macosx: $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline"
改为:
macosx: $(MAKE) all MYCFLAGS="-DLUA_USE_LINUX -arch i386" MYLIBS="-lreadline -arch i386"
最后:
$ make macosx$ sudo make install
让我发现这个问题,是因为在wax/lib/build-scripts/copy-scripts.sh中,有这样的注释:
# This requires that you run a special build of lua. Since snow leopard is 64-bit
# and iOS is 32-bit, luac files compiled on snow leopard won't work on iOS
另外注意,由于需要重写wax/lib/stdlib/wax_stdlib.h文件,所以要注意此文件是否有写权限,另外在编译时,加上compile-stdlib.sh脚本,以重新编译wax_stdlib.h。
在xcode4下安装wax的教程,以及对应的中文版:
http://mobile.tutsplus.com/tutorials/iphone/iphone-wax/
http://mobile.51cto.com/hot-269986_1.htm
另外,需要注意的是,如果执行安装模板的脚本(虽然在xcode4下装不上,我也提一下),需要在zsh下运行。
- xcode4 下 wax开发环境的搭建,Error opening wax scripts: loading wax stdlib: bad header in precompiled chunk
- wax
- wax
- Ali-Wax使用和源码解析系列-Wax的集成和调试环境搭建
- XCode 4.2下Wax的安装步骤
- XCode 4.2下Wax的安装步骤
- XCode 4.2下Wax的安装步骤
- XCode 4.2下Wax的安装步骤
- 基于wax的lua IOS插件开发
- wax框架
- WAX 介绍
- wax - 1
- wax - 2
- wax - 3
- wax - 4
- 开发"愤怒的小鸟"的Lua语言:Wax框架详解
- 开发愤怒的小鸟的Lua语言:Wax框架详解
- 开发愤怒的小鸟的Lua语言:Wax框架详解
- 获取文件CRC和MD5
- drivers/media/video/ov511.c: Camera type (108) not recognized 问题解决
- hdu 5.2.5 产生冠军
- VSS客户端配置
- LoadRunner中IP欺骗功能详解
- xcode4 下 wax开发环境的搭建,Error opening wax scripts: loading wax stdlib: bad header in precompiled chunk
- C语言实现字符串拷贝并逆序的问题
- JavaScript表单验证大全
- ExtJS EditorGridPanel中时间日期编辑问题的总结
- C、C++中的日期和时间 time_t与struct tm转换
- myeclipse修改发布到tomcat目录下的项目名称
- Qt 进程间通讯学习(windows消息WM_COPYDATA)
- 排序二叉树转换为双向链表
- Spring注解@Component、@Repository、@Service、@Controller