Here's what I found out

FINDING MSBuild (with Visual Studio)
====================================
Recent VS version come with a file "vsvarsxx.bat", where xx = 32 or 64, to
set all paths and option for the VS version
It located in the common/tools directory; in my case: C:\Program
Files\Microsoft Visual Studio 10.0\Common7\Tools\

There is an environment variable VS100COMNTOOLS that points to it. So
>    "%VS100COMNTOOLS%vsvars32.bat"
(including the quotes) will setup the environment and let MSBuild.exe be
found

FINDING MSBuild (without Visual Studio installed)
=================================================
MSbuild is included in the .NET runtimes
>From the registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0\
With different version of .Net in the key (eg. 3.5, 2.0)
Haven't tried further, used VS.

Upgrading solution
==================
Using Visual Studio the solution can be upgraded to the version of VS
installed
>    devenv luasocket.sln /upgrade
Failed with lots of errors. Turns out the solution file references 3 project
files, whilst there are only 2 available. So that is a bad rock.
Fixed it by using a different .sln file from one of luasockets archives.
Then it upgrades nicely

Building
========
>    MSbuild luasocket.sln
That fails because it can't find the Lua headers.
So I updated the environment variable;
>    set INCLUDE=%INCLUDE%;C:\Users\Public\Lua\5.1\include
Same build command, still fails. Appears the INCLUDE variable is not being
used as I see MSBuild invoking the CL.exe with '/Ih:\include\lua5.1' which
is probably the location set in the solution file.

Weird is that if I copy the generated commandline from MSbuild output and
execute it (without changing include location) it does build properly.

So now I've got .obj files, and probably need to link stuff, but I'm giving
up on this unless anyone has some insights to share on how to do this
reliably

Thijs



> -----Original Message-----
> From: Ignacio Burgueño [mailto:[email protected]]
> Sent: dinsdag 25 september 2012 23:12
> To: [email protected]
> Subject: Re: [Luarocks-developers] clean install LuaRocks
> 
> If I'm not mistaken, the VS project files included with LuaSocket are
> from Visual C++ .NET 2003.
> 
> In fact, I can't install LuaSocket on Windows compiling from source
> (tested with VS2008 and VS2010).
> 
> So, you might want to
> luarocks unpack luasocket
> 
> and then edit the .sln files (try opening with a recent version of VS)
> 
> then
> luarocks make (just follow LR instructions).
> 
> Regards,
> Ignacio
> 
> -----------------------------------------------------------------------
> -------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond.
> Discussions will include endpoint security, mobile security and the
> latest in malware threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Luarocks-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/luarocks-developers



------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to