lua-users home
lua-l archive

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


Hi Chong,

Thanks for the workaround...but it doesn't work for my mingw..  :(

Austin
--------------------------------------------------------------------------------------------------------
axw@axw-01 /d/tmp/lua-5.1.1
$ ls
COPYRIGHT  HISTORY  INSTALL  Makefile  README  doc  etc  src  test

axw@axw-01 /d/tmp/lua-5.1.1
$ cd src

axw@axw-01 /d/tmp/lua-5.1.1/src
$ make mingw
C:/msys/1.0/mingw/bin/make.exe "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
C:\msys\1.0\mingw\bin\make.exe: invalid option -- a
C:\msys\1.0\mingw\bin\make.exe: unrecognized option `--strip-unneeded '


On 12/12/06, chong tsong <tsongchong@gmail.com> wrote:
hi,

here is my solution:

* build
$ cd $LUA_DIR/src
$ make mingw
$ make luac


* install (replace /mingw with your installation directory)
$ cp lua.h luaconf.h lualib.h lauxlib.h /mingw/include/
$ cp liblua.a /mingw/lib/
$ cp lua.exe luac.exe lua51.dll $WINDIR/system32


hope it's helpful to you :-)

Tsong Chong


2006/12/12, Austin Xu Wang <xu4wang@gmail.com>:
> Hello,
>
> I was trying to build lua on mingw/mysys but failed, make complained
> for  "invalid option --a" .
>
> Do I need to change something in lua package?
>
> Thanks,
> Austin
>
> ---------Following is some information about the errors and mingw I
> installed------------------------
>
> $ make mingw
> cd src && C:/msys/1.0/mingw/bin/make.exe mingw
> C:\msys\1.0\mingw\bin\make.exe[1]: Entering directory `d:/tmp/lua-5.1.1/src'
> C:/msys/1.0/mingw/bin/make.exe "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
> C:\msys\1.0\mingw\bin\make.exe: invalid option -- a
> C:\msys\1.0\mingw\bin\make.exe: unrecognized option `--strip-unneeded '
> Usage: C:\msys\1.0\mingw\bin\make.exe [options] [target] ...
> Options:
>   -b, -m                      Ignored for compatibility.
>   -B, --always-make           Unconditionally make all targets.
>
>
> The make version is:
>
> $ make --version
> GNU Make 3.80
> Copyright (C) 2002  Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
>
> The Mingw packages I installed are:
>
> AXW@AXW-01 /d/software/mingw
> $ ls -l
> total 8120
> -rwxr-xr-x    1 AXW   Administ  2808061 Dec 12 13:01 MSYS-1.0.10.exe
> -rw-r--r--    1 AXW   Administ  6160640 Dec 12 13:00
> binutils-2.15.91-20040904-1.tar.gz
> -rw-r--r--    1 AXW   Administ  3515620 Dec 12 12:57
> gcc-core-3.4.2-20040916-1.tar.gz
> -rw-r--r--    1 AXW   Administ   348713 Dec 12 12:27 mingw-runtime-3.9.tar.gz
> -rwxr-xr-x    1 AXW   Administ  1303940 Dec 12 14:04 mingw32-make-3.80.0-3.exe
> -rw-r--r--    1 AXW   Administ   950504 Dec 12 12:34
> mingw32-make-3.80.0-3.tar.gz
> -rw-r--r--    1 AXW   Administ  1536427 Dec 12 12:27 w32api-3.6.tar.gz
>