# Configuring the Build Environment ( Windows 7) Error

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I think I have configured the environment correctly followed the guide Configuring the Build Environment ( Windows 7).

But,I still can not compile the AllJoyn resource code.it saied "the 'cl' is not the internal or external command".

thanks

edit retag close merge delete

Please add details to the questions. I do not know what the error you encounter from the posting.

( 2014-08-04 11:14:58 -0800 )edit

I have added environment variables when I installed the Microsoft Visual Studio 2012,but when I compiled the AllJoyn core ,it told me “cl is not external or internal order, is not to run a program or batch file” I do not have any idea about it .I am really sorry to bother you ,thanks .

( 2014-08-04 18:03:27 -0800 )edit

Sort by » oldest newest most voted

This post is a wiki. Anyone with karma >75 is welcome to improve it.

The error relating to "cl is not recognized as an internal or external command" is due to having your path variable no setup correctly. This could be due to not restarting after installing Microsoft Visual Studio, not opening a new cmd window after modify the PATH variable. Or it could just be that the PATH variable was not updated and you will need to go edit the PATH environment variable to point to the correct location.

more

You are so kind! Thank you very much !

( 2014-08-07 19:46:05 -0800 )edit

SCons tries to set up the environment for Microsoft Visual Studio automatically. However, it is really bad at detecting what environment you have installed.

when you run scons you need to tell it what version of Microsoft Visual Studio you are using. To tell SCons the version of Visual Studio you are using you need to specify the build variable MSVC_VERSION Since you said you are suing Microsoft Visual Studio 2012 MSVC_VERSION=11.0 or MSVC_VERSION=11.0Exp for the express version.

You scons command should look something like this:

scons OS=win7 CPU=x86_64 MSVC_VERSION=11.0 BINDINGS="" WS=off


That will build the 64-bit version of just the C++ alljoyn code base. If that works you can start trying to add in other languages like Java, C, etc. I am not completely sure but if you are using the express version of Visual Studio I think you are limited to 32-bit builds and CPU=x86 should be used instead of the 64-bit option.

more