Compiling blender Error

I had compiling svn blender working fine on another computer but now it seems that it doesn’t work on this one. The only differences i can think of are a more recent version of scons and python 2.6. I’m getting this error:

c:\build\build_dir\makesdna C:\build\build_dir\source\blender\makesdna\intern\dna.c
scons: *** [C:\build\build_dir\source\blender\makesdna\intern\dna.c] Exception
CTompiling ==> ‘BPY_menus.c’
raceback (most recent call last):
File “C:\Program Files\Python26\Lib\site-packages\scons-1.0.1\SCons\Taskmaster.py”, line 222, in execute
self.targets[0].build()
File “C:\Program Files\Python26\Lib\site-packages\scons-1.0.1\SCons\Node_init_.py”, line 372, in build
apply(self.get_executor(), (self,), kw)
File “C:\Program Files\Python26\Lib\site-packages\scons-1.0.1\SCons\Executor.py”, line 145, in call
return self.do_execute(target, kw)
File “C:\Program Files\Python26\Lib\site-packages\scons-1.0.1\SCons\Executor.py”, line 131, in do_execute
status = apply(act, (self.targets, self.get_sources(), env), kw)
File “C:\Program Files\Python26\Lib\site-packages\scons-1.0.1\SCons\Action.py”
, line 468, in call
stat = self.execute(target, source, env)
File “C:\Program Files\Python26\Lib\site-packages\scons-1.0.1\SCons\Action.py”
, line 622, in execute
result = spawn(shell, escape, cmd_line[0], cmd_line, ENV)
File “C:\build\blender ools\btools.py”, line 116, in ourspawn
stderr=subprocess.PIPE, startupinfo=startupinfo, shell = False)
File “C:\Program Files\Python26\lib\subprocess.py”, line 595, in init
errread, errwrite)
File “C:\Program Files\Python26\lib\subprocess.py”, line 821, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
scons: building terminated because of errors.
The system cannot find the path specified.
strip: ‘blender.exe’: No such file
strip: ‘blenderplayer.exe’: No such file
Press any key to continue . . .

Edit* I had to set the build_dir in the user-config file and it worked.

More specifically, I think it was because on command-line you had

BF_BUILDDIR=C:\build\build_dir

where in user-config.py it was of the form

BF_BUILDDIR='..\\build_dir'

Where the relative form and potentially the escaped slashes are important. This is something I need to address in the blender 2.5 branch.

/Nathan