由于兼容性/传统原因,我需要在我的64位英特尔Mac上从版本5.0构建Lua编译器(luac)。(无法使用5.1或更高版本)
通过Xcode 4.6的首选项窗口安装了开发工具。
进入Lua目录后,我执行“make”命令。
cd include; make all
make[1]: Nothing to be done for `all'.
cd src; make all
make[1]: Nothing to be done for `all'.
cd src/lib; make all
make[1]: Nothing to be done for `all'.
cd src/luac; make all
gcc -o ../../bin/luac luac.o print.o lopcodes.o -L../../lib -llua -llualib -lm
Undefined symbols for architecture x86_64:
"_UNUSED", referenced from:
_writer in luac.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [../../bin/luac] Error 1
make: *** [all] Error 2
我不知道如何为x86_64配置make过程。能否有人帮助我逐步完成这个过程?
谢谢。