[Scons-users] Adding external environment
Hanusek Tomasz
Tomasz.Hanusek at ncbj.gov.pl
Mon Jul 29 07:37:13 EDT 2019
Hi,
I am new and I can not manage with external enviroment. I need to change some parameters inside the code and then compile this chenged code.
I have 'ready to use' scons.py, SConstruct and different files.
If I just run scons I will obtain:
'
scons: warning: No installed VCs
File "C:\Users\48693\Desktop\TRACE-V51262-Source\TRACE-V51262-Source\Source\SConstruct", line 20, in <module>
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\Users\48693\Desktop\TRACE-V51262-Source\TRACE-V51262-Source\Source\SConstruct", line 20, in <module>
scons: warning: No installed VCs
File "C:\Users\48693\Desktop\TRACE-V51262-Source\TRACE-V51262-Source\Source\SConstruct", line 548, in <module>
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\Users\48693\Desktop\TRACE-V51262-Source\TRACE-V51262-Source\Source\SConstruct", line 548, in <module>
scons: done reading SConscript files.
scons: Building targets ...
scons: `.' is up to date.
scons: done building targets.
'
So I put into SConstruct:
import os
env = Environment(ENV = {'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv' : os.environ['C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv']})
but still it do not see Microsoft Visual Studio and I otained:
scons: warning: No installed VCs
File "C:\Users\48693\Desktop\TRACE-V51262-Source\TRACE-V51262-Source\Source\SConstruct", line 20, in <module>
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\Users\48693\Desktop\TRACE-V51262-Source\TRACE-V51262-Source\Source\SConstruct", line 20, in <module>
KeyError: 'C:\\PROGRAM FILES (X86)\\MICROSOFT VISUAL STUDIO\x817\\COMMUNITY\\COMMON7\\IDE\\DEVENV':
File "C:\Users\48693\Desktop\TRACE-V51262-Source\TRACE-V51262-Source\Source\SConstruct", line 549:
env = Environment(ENV = {'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv' : os.environ['C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv']})
File "C:\Python27\lib\os.py", line 425:
return self.data[key.upper()]
I have python 2.7 and Visual Studio Community 2017.
All best,
Tomasz Hanusek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20190729/1d487bca/attachment.html>
More information about the Scons-users
mailing list