Yeah, I switched to the bleeding edge and found the AMD64/amd64 problem fixed.
Well, I tried the VC++ x86 setup batch a couple times already, with no luck, and I initially tried that shorter env parameter which didn't work at all (scons couldn't find the compiler then). Ah, compiling as a static library worked just fine, I don't know why I didn't try that, thank you! On Sep 1, 2:02 am, Søren Gjesse <[email protected]> wrote: > Hi, > > The AMD64/amd64 think on Windows 7 should be fixed in > r5378<http://code.google.com/p/v8/source/detail?r=5378> > . > > Regarding the linking problem I suggest that you use the "Visual Studio 2010 > Command Prompt" shortcut (assuming that Visual Studio 2010 has one) or run > > > :C:\Program Files > > (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat x86 > > at a standard command prompt (assuming that Visual Studio 2010 still > supplies "vcvarsall.bat". Having done that you can shorten your compile > command > > > scons mode=debug library=shared > > env="PATH:%PATH%,LIB=%LIB%,INCLUDE=%INCLUDE%" > > Have you tried a a static library or the x64 build (passing amd64 > to vcvarsall.bat should set up the environment variables for a 64-bit). > > Regards, > Søren > > > > On Wed, Sep 1, 2010 at 07:52, Corey <[email protected]> wrote: > > Update: > > I've managed to get it to compile, but not link, using this command > > (thanks to help from the Wiki): > > > scons mode=debug library=shared env="PATH:C:\Program Files > > (x86)\Microsoft Visual Studio 10.0\VC\bin;C:\Program Files > > (x86)\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program Files > > (x86)\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program Files > > (x86)\Microsoft Visual Studio 10.0\Common7\Tools,INCLUDE:C:\Program > > Files (x86)\Microsoft Visual Studio 10.0\VC\include;C:\Program Files > > (x86)\Microsoft SDKs\Windows\v7.0A\Include;C:\Program Files > > (x86)\Microsoft SDKs\Windows\v7.0A\Include,LIB;C:\Program Files > > (x86)\Microsoft Visual Studio 10.0\VC\lib;C:\Program Files > > (x86)\Microsoft SDKs\Windows\v7.0A\Lib;" > > > The error I get when linking is this: > > > LIBCMTD.lib(crt0dat.obj) : fatal error LNK1112: module machine type > > 'x64' conflicts with target machine type 'X86' > > > I've check the environment paths many times to make sure they're set > > to the x86 versions, and I've made sure that the build script is > > attempting to build as 'ia32' but nothing seems to work. > > > -- > > v8-users mailing list > > [email protected] > >http://groups.google.com/group/v8-users -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
