compile problem scons. help

trying to compile mingw64 with scons,

Configuring library blenkernel_blc
KeyError: 'RCFLAGS':
  File "C:\BlenderSVN\blender\SConstruct", line 781:
    SConscript(B.root_build_dir+'/source/SConscript')
  File "C:\BlenderSVN\blender\scons\scons-local\SCons\Script\SConscript.py", lin
e 609:
    return method(*args, **kw)
  File "C:\BlenderSVN\blender\scons\scons-local\SCons\Script\SConscript.py", lin
e 546:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\BlenderSVN\blender\scons\scons-local\SCons\Script\SConscript.py", lin
e 260:
    exec _file_ in call_stack[-1].globals
  File "C:\BlenderSVN\blender\source\SConscript", line 39:
    SConscript (['icons/SConscript'])
  File "C:\BlenderSVN\blender\scons\scons-local\SCons\Script\SConscript.py", lin
e 609:
    return method(*args, **kw)
  File "C:\BlenderSVN\blender\scons\scons-local\SCons\Script\SConscript.py", lin
e 546:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\BlenderSVN\blender\scons\scons-local\SCons\Script\SConscript.py", lin
e 260:
    exec _file_ in call_stack[-1].globals
  File "C:\BlenderSVN\blender\source\icons\SConscript", line 31:
    env['RCFLAGS'].append("-DWINDRES")
  File "C:\BlenderSVN\blender\scons\scons-local\SCons\Environment.py", line 413:

    return self._dict[key]

C:\BlenderSVN\blender>


any idea how to fix it? it was working yesterday(but i just reinstalled the os)
i installed python, scons, cmake, mingw64 and set the paths…
not sure what the error is.

got the exact same error, too. The only thing I recognize in that error message is the mention of “-DWINDRES”, which, if I’m not mistake, means it is a Windows+Mingw related problem. We’re not the only ones with the problem it seems (http://www.pasteall.org/48399), and that guy pasted it back in January, so that problem’s been here for a while. The guy to talk to about the problem would probably be Nathan Letwory, aka JesterKing. He’s an owner of both the SCons and WIndows modules (http://wiki.blender.org/index.php/Dev:Doc/Process/Module_Owners/List).
Went on irc today, and ideasman42 said that mingw support in Blender is not being worked on at the moment. He recommended using Visual Studio.

I have the same problem, too. Contacting Nathan Letwory, aka JesterKing, would probably be your best option.

I just started a compile with scons+mingw64 on my own box to verify. This is what I have and did:

  • Blender sources in: D:\blenderdev\currentgit (this contains the SConstruct)
  • libs in: D:\blenderdev\lib\mingw64
  • Python 2.7 64bit in C:\Python27
  • Mingw64 GCC 4.8.0 (build by raylinn) in D:\mingw64

I opened a vanilla cmd.exe, then added MinGW64 to PATH: set PATH=%PATH%;D:\mingw64\bin

CD into D:\blenderdev\currentgit, then start build with: C:\Python27\python scons\scons.py BF_TOOLSET=mingw BF_BITNESS=64

Hopefully that gets you started.