> From: steve donovan [mailto:[email protected]] > Sent: donderdag 4 april 2013 9:21 > To: [email protected] > Subject: Re: [Luarocks-developers] MinGW and LuaSocket > > On Wed, Apr 3, 2013 at 11:48 PM, Hisham <[email protected]> wrote: > > launcher, config defaults). If you have any requests/improvements for > > the Windows and/or mingw side of things, please send pull requests and > > I'll merge them in. > > If the time is early next week, then I can have some fun over the weekend > testing LR against 32bit and 64bit Windows. Apart from that little bug I > noticed, this will also involve configuration improvements. I hope Thijs > has some time to do some testing on the side.
I made some fixes see this branch: https://github.com/Tieske/luarocks/tree/MinGW_fix But also working through the installation I found that when I build Lua from source with MinGW, and then install LuaRocks, LuaRocks overwrites some of the binaries. That is not correct is it? See below =================== OUTPUT_START ================== Contents before LuaRocks C:\Temp>dir c:\users\public\lua\5.1\bin Volume in drive C is TI30569200A Volume Serial Number is 784E-358F Directory of c:\users\public\lua\5.1\bin 04-apr-2013 13:52 <DIR> . 04-apr-2013 13:52 <DIR> .. 31-mrt-2013 09:15 14,848 lua.exe 31-mrt-2013 09:15 161,466 lua51.dll 31-mrt-2013 09:15 147,740 luac.exe 3 File(s) 324,054 bytes 2 Dir(s) 157,347,811,328 bytes free Will configure LuaRocks with the following paths: Lua interpreter: lua5.1 Lua binaries: c:\users\public\lua\LuaRocks\2.0 Lua libraries: c:\users\public\lua\LuaRocks\2.0 Lua includes: c:\users\public\lua\LuaRocks\2.0\include Removing c:\users\public\lua\LuaRocks\2.0... The system cannot find the path specified. Installing LuaRocks in c:\users\public\lua\LuaRocks\2.0... LuaRocks is installed! Contents after LuaRocks C:\Temp>dir c:\users\public\lua\5.1\bin Volume in drive C is TI30569200A Volume Serial Number is 784E-358F Directory of c:\users\public\lua\5.1\bin 04-apr-2013 13:52 <DIR> . 04-apr-2013 13:52 <DIR> .. 31-mrt-2013 09:15 14,848 lua.exe 28-mrt-2013 13:38 167,936 lua5.1.dll 28-mrt-2013 13:38 11,264 lua51.dll 31-mrt-2013 09:15 147,740 luac.exe 28-mrt-2013 13:38 479,232 msvcm80.dll 28-mrt-2013 13:38 548,864 msvcp80.dll 28-mrt-2013 13:38 626,688 msvcr80.dll 7 File(s) 1,996,572 bytes 2 Dir(s) 157,337,296,896 bytes free =================== OUTPUT_END ================== Here's the batch file I used so far ============== BATCHFILE_START =================== @echo off setlocal set SELF=%~dp0 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 REM Lets build and install Lua cd %LUADIR% make mingw make install INSTALL_TOP=%TARGETFW%5.1 TO_BIN="lua.exe luac.exe lua51.dll" REM rename the lib file because LuaRocks likes it that way rename %TARGET%5.1\lib\liblua.a lua5.1.lib cd %self% echo Contents before LuaRocks @echo on dir %TARGET%5.1\bin @echo off REM Lets install LuaRocks cd %LUAROCKS% call install /L /P %TARGET%LuaRocks /TREE %TARGET%5.1 /LUA %TARGET%5.1 /INC %TARGET%5.1/include /LIB %TARGET%5.1/lib /BIN %TARGET%5.1/bin /MW /F cd %self% echo Contents after LuaRocks @echo on dir %TARGET%5.1\bin @echo off ============== BATCHFILE_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 [email protected] https://lists.sourceforge.net/lists/listinfo/luarocks-developers
