Luajit2.1(支持arm64)接入到quick-x 2.2.6 ios版本

嗯,我也就是换进去测试下性能会不会有明显提升。用于项目的话,还是等正式的jit 2.1版本吧。

嗯,那还得再等等了~

我编译出来之后,启动demo,创建luaVM失败。。不知为何。。
请问LZ知道吗?

能贴下错误信息吗?

现在已经没在研究了。等2.1正式版本了。
记得是luastate 为 null

楼主为啥我用你的编译成功之后,连接到自己的项目还是 下面的错误啊:10:
ld: warning: ignoring file /Users/xuejianpeng/Desktop/code/cocos2d-x-2.2.6/scripting/lua/luajit/ios/libluajit.a, missing required architecture armv7 in file /Users/xuejianpeng/Desktop/code/cocos2d-x-2.2.6/scripting/lua/luajit/ios/libluajit.a (2 slices)
Undefined symbols for architecture armv7:
“_luaL_checktype”, referenced from:

查了下编译arm64的时候报错了
==== Building LuaJIT 2.1.0-alpha ====
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src
make: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc: Command not found
make: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc: Command not found
make: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc: Command not found
make: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc: Command not found
make: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc: Command not found
make: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc: Command not found
Makefile:237: *** Unsupported target architecture. Stop.
make: *** Error 2

我的版本的ios8.3不知道什么情况,

还真是ios8.3的问题,已经搞定,多谢楼主

请问 你的bytecode是怎么生成的 还有ios8.3 的是怎么解决的。

我上去那个网站找不v2.1下载,可以发我一个么?

和上面的兄台一个问题。请楼主帮忙解答下

bool CCLuaStack::init(void)
{
CCTime::gettimeofdayCocos2d(&m_lasttime, NULL);
m_state = lua_open();
CCAssert(m_state, “create Lua VM failed”);

s_map = this;

luaL_openlibs(m_state);

红色部分报的错,m_state是NULL

设置一下 Linker Flags 即可

#16:2: :2: :2:

#16楼 :2: :2: :2: :2: :2:

多谢兄弟帮助。

这个论坛有木有打赏功能啊。

木有吧。 :7: :7:

口头给你打赏下~~

~~ HOW ~~

~~ HOW ~~

~~ HOW ~~

到quick-x工程目录下的bin/lib下,修改compile_scripts.php文件中的第18行为:
array(‘jit’, ‘jit’, 1, true, ‘using luajit compile framework’),
你能把药替换的代码贴出来吗?我的第18行啥都没有:6: