开发者

compiling lua, getting makefile CreateProcess error

I'm trying to compile Lua 1.1. Why? Because I can. Here's the makefile contents.

all:
    (cd src; make)
    (cd clients/lib; make)开发者_JS百科
    (cd clients/lua; make)

clean:
    (cd src; make clean)
    (cd clients/lib; make clean)
    (cd clients/lua; make clean)

Here's the error I get just from running make all.

(cd src; make)
process_begin: CreateProcess((null), (cd src; make), ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [all] Error 2

Why do I get this error? I'm on WinXP-32.


Get lua-all.tar.gz which contains the source of all Lua distributions with a few changes made to make them easy to compile.


Because I can.

Your post begs to differ. :)

That makefile is written for Linux (which uses ';' as a command separator). The Windows command interpreter will choke on that.

You're going to need to edit those makefiles, or try the following command line (I'm using Visual Studio's command line compiler, substitute your compiler if necessary):

cl clients\lua\*.c clients\lib\*.c src\*.c -I include
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜