> LUA_LIB is a special case because if someone's using mingw then they would
> want to link against the DLL, surely?
> 

What I did so far was renaming the "liblua.a" generated and 
installed by the Lua makefile to "lua51.lib" and then LuaRocks 
links against that (without errors so far). Am I supposed to
link against the DLL?

I think I've got most MinGW stuff fixed in my branch;
https://github.com/Tieske/luarocks/tree/MinGW_fix 

Changes added are all related to the installer batch file. Adding 
lots of comments, both in the help text displayed, and in the 
batch file itself. Once you understand what it does, it isn't 
that bad. Hopefully my comments make it easier to undertand it 
the next time I have to :)

@Steve
   Can you give it a try?

@Hisham
   I think the windows instructions on the website could also be 
   updated. /MW switch is missing there. Hopefully my altered help 
   text in the installer provides some more guidance, so feel free 
   to use that on the site to.

Thijs

PS. My latest Lua/LuaRocks install script;
============== BATCH FILE START ===================
@echo off
setlocal
set SELF=%~dp0

REM Where is MinGW to be found
set MINGW=c:\mingw\
REM directories where source packages are located
set LUADIR=%SELF%lua-5.1.5
set LUAROCKS=%SELF%luarocks-2.0.12-win32
REM Target is main Lua directory, version 5.1 will be appended
set TARGET=c:\users\public\lua\
REM TARGETFW is the same target directory, but with FORWARD SLASHES!
set TARGETFW=c:/users/public/lua/

REM Cleanup first
echo Deleting existing directories
rd /S %TARGET%5.1
rd /S %TARGET%LuaRocks

REM make sure we find MinGW and Make
set path=%path%;%MINGW%bin;%MINGW%msys\1.0\bin

ECHO ********************
ECHO *   BUILDING LUA   *
ECHO ********************

REM Lets build and install Lua
cd %LUADIR%
make clean
make mingw
make install INSTALL_TOP=%TARGETFW%5.1 TO_BIN="lua.exe luac.exe lua51.dll"

REM rename the library file because LuaRocks likes it that way
rename %TARGET%5.1\lib\liblua.a lua5.1.lib
cd %self%

ECHO *************************
ECHO *   INSTALLING LUAROCKS *
ECHO *************************
REM Lets install LuaRocks
cd %LUAROCKS%
call install /P %TARGET%LuaRocks /TREE %TARGET%5.1 /LUA %TARGET%5.1 /MW /F
cd %self%
=============== BATCH FILE END ====================

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to