0

I have set-up everything according to instructions on https://github.com/TideSDK/TideSDK/wiki/Windows7-x86-2005

But, scons won't pick up "rc" from PATH:

> scons -s debug=1 sdkinstaller run=1
...
runs fine for a while, until:
...
cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be
removed in a future release
cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be
removed in a future release
boot_win32.cpp
'rc' is not recognized as an internal or external command,
operable program or batch file.
scons: *** [build\win32\objs\boot\support\winboot.res] Error 1

> rc
fatal error RC1107: invalid usage; use RC /? for Help

> echo %path%
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program Files\Microsof
t Visual Studio 8\VC\BIN;C:\Program Files\Microsoft Visual Studio 8\Common7\Tool
s;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin;C:\WINXP\Microsoft.NET
\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 8\VC\VCPackages;C
:\Program Files\ImageMagick-6.8.0-Q16;C:\WINXP\system32;C:\WINXP;C:\WINXP\System
32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Git\cmd;C:\Program
 Files\Git\bin;C:\Python25\Scripts;C:\Python25

Googling on this matter suggests the solution to add the VC bin directory to PATH, but as you can see, that is already in place.

Note: I installed and used scons 2.2.0 as well, but then it wouldn't even recognize "cl". At least with scons 1.2.0 it recognizes "cl", but unfortunately not "rc"

First time building on Windows, any advice appreciated!

Motin
  • 4,853
  • 4
  • 44
  • 51
  • The issue was related to having many different versions of Visual Studio installed, and maybe when Platform SDK registered with Visual Studio, it didn't register with all of them... After uninstalling all versions of Visual Studio Express (2005, 2008 and 2010), Platform SDK and .NET frameworks (to be sure...) and following the instructions once again (but from a clean slate), resulted in a build environment without these errors (albeit with others, but post-compilation and thus not related to this Q&A) – Motin Nov 23 '12 at 15:12
  • Did you try with the newest version? 2.3.4. You're always better starting there, rather than an old version. – bdbaddog Apr 11 '15 at 23:35

2 Answers2

5

Virtual machines are cheap and accessible. I'd recommend a clean build environment that is not polluted by several SDK versions.

fairwinds
  • 2,133
  • 12
  • 21
-2

Might help for someone else, but Visual Studio has it's own CMD which will have these path set. Just open corresponding Visual Studio CMD and compile from there.

XCoder
  • 295
  • 1
  • 2
  • 10
  • 1
    Since by design SCons will not import PATHS,etc from the shell it's launched in (without the user coding some logic in their SConstruct). This shouldn't help. – bdbaddog Apr 11 '15 at 23:36