Prathamesh Ranade,
Scons is not finding the Visual Studio community version. I personally don?t
have the same setup so there are just things to try I don?t know if they will
work. They range in the order of what I think is the easy to hardest.
1) Check that you are using the latest version of scons. Each new version
of visual studio uses new paths and must be added into SCons. Typically SCons
is updated a few weeks after a new version of visual studio is released.
2) This is a hack that should not be check upstream:
a. Try adding the following to the sconstruct make sure you launch scons
from a window that can see the cl command.
env.Environment ()
env.Append ( ENV = { 'PATH' : os.environ['PATH'] } )
3) Try installing an older version of visual studio that scons can find.
(I think the oldest supported is VS-2015)
4) The last and hardest option. Try and figure out why scons is not
finding the cl tool open up the msvc.py file an
(<python>/Lib/site-packages/scons-<version>/SCons/Tool/msvc.py) This would be
difficult and I don?t really recommend unless you want to become a scons expert.
Good luck,
George Nash
From: iotivity-dev-bounces at lists.iotivity.org
[mailto:[email protected]] On Behalf Of Prathamesh Ranade
Sent: Thursday, March 23, 2017 10:09 AM
To: iotivity-dev at lists.iotivity.org
Subject: Re: [dev] IoTvity build error
Hey,
Just adding few details to my last mail.
These are the instructions I referred:- https://wiki.iotivity.org/windows .
I am building IOTvity on windows10, intel 64 bit. I have installed the
mentioned dependencies. I have tried 'run build' on windows cmd and Developer
Command Prompt for visual Studio and 'auto-build.sh' on git-bash. I have got
the above errors everytime. I have a Visual Studio community version.
And thank you Philippe and George.
On 23 Mar 2017 7:34 p.m., "Prathamesh Ranade" <ranade.prathmesh at
gmail.com<mailto:ranade.prathmesh at gmail.com>> wrote:
Hey all,
I was trying to build IoTvity source code. I am repetitively
facing the following errors:-
? operable program or batch file.
scons: *** [extlibs\libcoap\libcoap\src\libcoap_address.obj] Error 1
'cl' is not recognized as an internal or external command,
operable program or batch file.
scons: *** [extlibs\libcoap\libcoap\src\libcoap_block.obj] Error 1
'cl' is not recognized as an internal or external command,
operable program or batch file.
scons: *** [extlibs\libcoap\libcoap\src\libcoap_async.obj] Error 1
scons: building terminated because of errors. ?
Please help me with this.
Regards,
Prathamesh Ranade
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170324/2ad223ba/attachment.html>