Build issue on Windows 8.1 64 bit Visual Studio 2012 express Desktop with resolution

  • From: "Joseph Ellsworth" <joexdobs@xxxxxxxxx>
  • To: <luajit@xxxxxxxxxxxxx>
  • Date: Sat, 13 Dec 2014 15:53:48 -0800

I had tried to build 64 bit with Cygwin but it must have failed because when I 
checked it was running as 32bit just as you suspected.   Once I got the 64 bit 
version working I used up to 8 gig which is all I had available on the machine. 

The command line SDK was failing to install on my machine and I had visual 
studio 2012 express web previously installed but it didn't  include the C 
compiler so I also installed the visual studio 2012 express desktop.

Microsoft took away the setenv command for 64 bit on windows 8.1.    But they 
replaced it with a built in  in command called "VS2012 X64 Cross Tools Command 
Prompt"   

Unfortunately Microsoft broke their own tool so it came up with the error 
"\Microsoft was unexpected at this time"    See: 
http://www.blinnov.com/en/2010/06/04/microsoft-was-unexpected-at-this-time/

They also got the path wrong for the location of a couple dependencies so I 
added these to the front of the default system path. 

After some splunking I did the following: 
   Removed  " surrounding any visual studio component on the Path statement.
   Added the following to the front of the system PATH  using Control Panel - > 
System Properties -> Advanced -> Environment variables
            
C:\VisualStudio11\VC\bin\x86_amd64;C:\VisualStudio11\VC;C:\VisualStudio11\Common7\IDE;

Once I did this the I restarted the VS2012 X64 Cross Tools Command Prompt and 
ran  msvcbuild.bat  and it worked great and the new version passed the 4 Gig 
boundary just fine. 


-----Original Message-----
From: luajit-bounce@xxxxxxxxxxxxx [mailto:luajit-bounce@xxxxxxxxxxxxx] On 
Behalf Of Szabó Antal
Sent: Saturday, December 13, 2014 8:42 AM
To: luajit@xxxxxxxxxxxxx
Subject: Re: Where do I send the Paypal to support the Group

2014-12-13 5:51 GMT+01:00 Joe Ellsworth <joexdobs@xxxxxxxxx>:
> The big issue right is that I still have not successfully allocated 
> memory beyond 4 Gig even using the ffi.C.malloc().

Did you compile luajit as 64 bit? If not, that is your problem, as 32 bit 
processes can't address more than 4 GB of memory. I tested with a
64 bit one, and it can allocate about as much as physical memory I have.

Also, what's the error when you try to compile with msvcbuild.bat? It works 
perfectly for me, and I think it's the "best" way to compile luajit on windows.



Other related posts:

  • » Build issue on Windows 8.1 64 bit Visual Studio 2012 express Desktop with resolution - Joseph Ellsworth