[Scons-users] scon for windows 64 bit

Kenny, Jason L jason.l.kenny at intel.com
Mon Jul 7 10:40:19 EDT 2014


Hi,

SCons should support 64-bit build on windows just fine. To do this you need to set the TARGET_ARCH value to x86_64 or amd64 when you create the environment.

Env=Environment(TARGET_ARCH=”amd64”)

As far as installing a 64-bit version of SCons, this is easy to do, I use this all the time. You should note that 64-bit SCons is not going to change the behavior of SCons. The exe install is 32-bit based, the best way I tend to find to install scons is to:

1)      Download the zip file

2)      Unzip it

3)      Run “python setup.py install” in the unzip folder ( you should see this file in the directory you run the command in)

If you want to try an add on, you can download and install Parts (parts.tigris.org)  with SCons, This setup allow you to just add a --target= x86_64 option to the command line, and it will setup the toolchain to be 64-bit. You can also add a –tc options to control which tool chain and version to use, ie --tc=cl_9  or --tc=cl_12 will setup that version of the MS compiler for the given version provided.

Hope this helps.
Jason



From: Scons-users [mailto:scons-users-bounces at scons.org] On Behalf Of Ronex Dicapriyo
Sent: Sunday, July 6, 2014 3:25 AM
To: scons-users at scons.org
Subject: [Scons-users] scon for windows 64 bit

Hello,

I have installed scon in windows using the "setup.py install" command.
Trying with the scon's installer file it throws an error "no python found in the registry", However in my system I have installed python-2.7.6 using 64-bit installer file downloaded from python.org.

After this when I tried to build c++ application (HelloWorld), I noticed that scons tries to pick 32 bit compiler of msvc.

So, I tried with forcefully providing the location of 64 bit compiler:
CXX = r'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\cl.exe'

But however it doesn't work ?

Does SCons is supported for windows 63 bit, and How do I suppose to build a simple application ?

What is proper way to set compiler, linker ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140707/88b46ba9/attachment-0001.html>


More information about the Scons-users mailing list