lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2010/9/13 Peyman <peiman_3009@yahoo.com>
>
> thanks i downlaod GNU make and source but after run make mingw i get these error :
>
> cd src && make mingw
> make[1]: Entering directory `C:/Tools/Lua/Libs/lua-5.1.4/src'
> make "LUA_A=lua51.dll" "LUA_T=lua.exe" \
>         "AR=gcc -shared -o" "RANLIB=strip --strip-unneeded" \
>         "MYCFLAGS=-DLUA_BUILD_AS_DLL" "MYLIBS=" "MYLDFLAGS=-s" lua.exe
> make[2]: Entering directory `C:/Tools/Lua/Libs/lua-5.1.4/src'
> gcc -O2 -Wall -DLUA_BUILD_AS_DLL   -c -o lua.o lua.c
> process_begin: CreateProcess(NULL, gcc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lua.o
> lua.c, ...) failed.
> make (e=2): The system cannot find the file specified.
> make[2]: *** [lua.o] Error 2
> make[2]: Leaving directory `C:/Tools/Lua/Libs/lua-5.1.4/src'
> make[1]: *** [mingw] Error 2
> make[1]: Leaving directory `C:/Tools/Lua/Libs/lua-5.1.4/src'
> make: *** [mingw] Error 2

Hi,

I'm not sure but I guess that the problem is that you did not install
msys. I strongly recommend you to install msys and to use the msys
terminal with the bash shell. In this way you will have a working
terminal + bash + makefile + gcc and the compilation should works ok.

Francesco