[Scons-users] scon for windows 64 bit

Ronex Dicapriyo ronex_89 at yahoo.in
Wed Jul 9 00:34:33 EDT 2014


Hello,

Please check the log generated after running scons as suggested:

scons: Reading SConscript files ...
trying to find VC 11.0
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\11.0\\Setup\\VC\\ProductDir'
find_vc_pdir return None for ver 11.0
trying to find VC 11.0Exp
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VCExpress\\11.0\\Setup\\VC\\ProductDir'
find_vc_pdir return None for ver 11.0Exp
trying to find VC 10.0
find_vc_dir(): found VC in registry: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
found VC 10.0
trying to find VC 10.0Exp
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VCExpress\\10.0\\Setup\\VC\\ProductDir'
find_vc_pdir return None for ver 10.0Exp
trying to find VC 9.0
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\9.0\\Setup\\VC\\ProductDir'
find_vc_pdir return None for ver 9.0
trying to find VC 9.0Exp
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VCExpress\\9.0\\Setup\\VC\\ProductDir'
find_vc_pdir return None for ver 9.0Exp
trying to find VC 8.0
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\8.0\\Setup\\VC\\ProductDir'
find_vc_pdir return None for ver 8.0
trying to find VC 8.0Exp
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VCExpress\\8.0\\Setup\\VC\\ProductDir'
find_vc_pdir return None for ver 8.0Exp
trying to find VC 7.1
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\7.1\\Setup\\VC\\ProductDir'
find_vc_pdir return None for ver 7.1
trying to find VC 7.0
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\7.0\\Setup\\VC\\ProductDir'
find_vc_pdir return None for ver 7.0
trying to find VC 6.0
find_vc_dir(): no VC registry key 'Software\\Wow6432Node\\Microsoft\\VisualStudio\\6.0\\Setup\\Microsoft Visual C++\\ProductDir'
find_vc_pdir return None for ver 6.0
msvc_setup_env()
get_default_version()
get_default_version(): msvc_version:None msvs_version:None
installed_vcs:['10.0']
msvc_setup_env: using default installed MSVC version '10.0'

msvc_setup_env: using specified MSVC version '10.0'

vc.py:msvc_find_valid_batch_script()
vc.py:get_host_target()
vc.py:get_host_target() req_target_platform:amd64
msvs_find_valid_batch_script(): req_target_platform amd64 target_platform:amd64
msvs_find_valid_batch_script(): host_platform: amd64 try_target_archs:['amd64', 'x86_amd64']
vc.py:msvc_find_valid_batch_script() trying target_platform:amd64
find_vc_dir(): found VC in registry: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
vc.py: find_batch_file() pdir:C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
Not found: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat
sdk.py:get_installed_sdks()
MSCommon/sdk.py: trying to find SDK 7.0
find_sdk_dir(): checking registry:Software\Microsoft\Microsoft SDKs\Windows\v7.0\InstallationFolder
find_sdk_dir(): no SDK registry key 'Software\\Microsoft\\Microsoft SDKs\\Windows\\v7.0\\InstallationFolder'
MSCommon/sdk.py: trying to find SDK 6.1
find_sdk_dir(): checking registry:Software\Microsoft\Microsoft SDKs\Windows\v6.1\InstallationFolder
find_sdk_dir(): no SDK registry key 'Software\\Microsoft\\Microsoft SDKs\\Windows\\v6.1\\InstallationFolder'
MSCommon/sdk.py: trying to find SDK 6.0A
find_sdk_dir(): checking registry:Software\Microsoft\Microsoft SDKs\Windows\v6.0A\InstallationFolder
find_sdk_dir(): no SDK registry key 'Software\\Microsoft\\Microsoft SDKs\\Windows\\v6.0A\\InstallationFolder'
MSCommon/sdk.py: trying to find SDK 6.0
find_sdk_dir(): checking registry:Software\Microsoft\Microsoft SDKs\Windows\v6.0\InstallationFolder
find_sdk_dir(): no SDK registry key 'Software\\Microsoft\\Microsoft SDKs\\Windows\\v6.0\\InstallationFolder'
MSCommon/sdk.py: trying to find SDK 2003R2
find_sdk_dir(): checking registry:Software\Microsoft\MicrosoftSDK\InstalledSDKS\D2FF9F89-8AA2-4373-8A31-C838BF4DBBE1\Install Dir
find_sdk_dir(): no SDK registry key 'Software\\Microsoft\\MicrosoftSDK\\InstalledSDKS\\D2FF9F89-8AA2-4373-8A31-C838BF4DBBE1\\Install Dir'
MSCommon/sdk.py: trying to find SDK 2003R1
find_sdk_dir(): checking registry:Software\Microsoft\MicrosoftSDK\InstalledSDKS\8F9E5EF3-A9A5-491B-A889-C58EFFECE8B3\Install Dir
find_sdk_dir(): no SDK registry key 'Software\\Microsoft\\MicrosoftSDK\\InstalledSDKS\\8F9E5EF3-A9A5-491B-A889-C58EFFECE8B3\\Install Dir'
vc.py:msvc_find_valid_batch_script() vc_script:None sdk_script:None
vc.py:msvc_find_valid_batch_script() use_script 2 None, args:amd64

vc.py:msvc_find_valid_batch_script() use_script 6: Neither VC script nor SDK script found
vc.py:msvc_find_valid_batch_script() trying target_platform:x86_amd64
find_vc_dir(): found VC in registry: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
vc.py: find_batch_file() pdir:C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
Not found: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat
sdk.py:get_installed_sdks()
vc.py:msvc_find_valid_batch_script() vc_script:None sdk_script:None
vc.py:msvc_find_valid_batch_script() use_script 2 None, args:x86_amd64

vc.py:msvc_find_valid_batch_script() use_script 6: Neither VC script nor SDK script found
vc.py:msvc_setup_env() use_script 2 None

msvc_setup_env()
get_default_version()
get_default_version(): msvc_version:None msvs_version:None
installed_vcs:['10.0']
msvc_setup_env: using default installed MSVC version '10.0'

msvc_setup_env: using specified MSVC version '10.0'

vc.py:msvc_find_valid_batch_script()
vc.py:get_host_target()
vc.py:get_host_target() req_target_platform:None
msvs_find_valid_batch_script(): req_target_platform None target_platform:amd64
msvs_find_valid_batch_script(): host_platform: amd64 try_target_archs:['amd64', 'x86_amd64', 'x86']
vc.py:msvc_find_valid_batch_script() trying target_platform:amd64
find_vc_dir(): found VC in registry: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
vc.py: find_batch_file() pdir:C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
Not found: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat
sdk.py:get_installed_sdks()
vc.py:msvc_find_valid_batch_script() vc_script:None sdk_script:None
vc.py:msvc_find_valid_batch_script() use_script 2 None, args:amd64

vc.py:msvc_find_valid_batch_script() use_script 6: Neither VC script nor SDK script found
vc.py:msvc_find_valid_batch_script() trying target_platform:x86_amd64
find_vc_dir(): found VC in registry: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
vc.py: find_batch_file() pdir:C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
Not found: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat
sdk.py:get_installed_sdks()
vc.py:msvc_find_valid_batch_script() vc_script:None sdk_script:None
vc.py:msvc_find_valid_batch_script() use_script 2 None, args:x86_amd64

vc.py:msvc_find_valid_batch_script() use_script 6: Neither VC script nor SDK script found
vc.py:msvc_find_valid_batch_script() trying target_platform:x86
find_vc_dir(): found VC in registry: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
vc.py: find_batch_file() pdir:C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
Not found: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat
sdk.py:get_installed_sdks()
vc.py:msvc_find_valid_batch_script() vc_script:None sdk_script:None
vc.py:msvc_find_valid_batch_script() use_script 2 None, args:x86

vc.py:msvc_find_valid_batch_script() use_script 6: Neither VC script nor SDK script found
vc.py:msvc_setup_env() use_script 2 None

scons: done reading SConscript files.
scons: Building targets ...
cl /FoHelloWorld.obj /c HelloWorld.cpp /TP /nologo /clr /EHsc /GR /vmg
scons: building terminated because of errors.


NB: Following software/tools are installed:
        Visual c++ 2010 Express
        Visual c++ 2013 Express
        Windows SDK 7.1



On Tuesday, 8 July 2014 11:25 PM, Gary Oberbrunner <garyo at oberbrunner.com> wrote:
 


I assume you got SCons working with your 64-bit python?  Good.

If SCons isn't finding your compiler, try invoking SCons like this:
  SCONS_MSCOMMON_DEBUG=- scons

(Note that you're setting the value of that env var to "-", i.e. a dash.)

With that env variable set, SCons should print out a lot of stuff about how it tries to find your Visual Studio versions.  Paste that output into an email for us to look at.



On Tue, Jul 8, 2014 at 1:34 PM, Ronex Dicapriyo <ronex_89 at yahoo.in> wrote:

Hello,
>
>
>After some futile attempts to use scons with visual c++ 2010, I yielded and tried to run the same with visual c++ 2013, In my system currently both the version of visual c++ express edition are installed. So say curretly two versions of cl.exe and other tools are present, over default location.
>
>
>Visual C++ Express 2010 -> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\
>Visual C++ Express 2013 -> C:\Program Files (x86)\VC\bin\
>
>
>Using 2013 command prompt for 64bit, it now throes the error "cl is not recognized as internal or external command". Notably if I tries to compile a program directly it works and PATH variable is also set appropriately.
>
>
>After this When I tries to use MSVC_VERSION='13.0' along with TARGET_ARCH='amd64', it shows possile value for MSVC_VERSION as ['10.0'] only, and throws warning that compiler and other tools would not set properly, with the same above error.
>
>
>Am I following any wrog approach ? How multiple compiler or compiler version will get handles under windows without using any addition tool/program other than scons, python and compiler specific tools.
>
>
>
>
>
>On Monday, 7 July 2014 8:43 PM, Gary Oberbrunner <garyo at oberbrunner.com> wrote:
> 
>
>
>
>
>On Mon, Jul 7, 2014 at 10:59 AM, Ronex Dicapriyo <ronex_89 at yahoo.in> wrote:
>
>On Monday, 7 July 2014 12:21 AM, Bill Deegan <bill at baddogconsulting.com> wrote:
>>
>>
>>
>>
>>>
>>>On Sunday, 6 July 2014 2:42 PM, Dirk Bächle <tshortik at gmx.de> wrote:
>>>
>>>
>>>You do realize that you can install and run 32 bit python on a 64 bit windows machine? 
>>>>
>>[Ronex] Yes, But due to some requirement constraints I could not use 32 bit 
python, I think as suggested by Dirk in this mail-chain I should try with 
scon-local
>You don't need to use scons-local.  Just download the zip or tgz (), unpack it, and run 'python setup.py install' with whatever python you have.  That's what I normally use, even on Windows.  (On other platforms it's the normal way to install -- Windows is the only one with a simplified installer, but as you've noted it's specific to 32-bit python.)
>
>
>-- 
>Gary 
>
>


-- 
Gary 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140709/09e3b96e/attachment-0001.html>


More information about the Scons-users mailing list