Page 1 of 1

SCons and building Radiant on Win7

Posted: Wed Jan 11, 2012 9:16 pm
by Kaz
I'm all for trying to figure stuff out on my own, but when it comes to this sort of thing I'm sorta lost and get frustrated really easily (I could never be a sysadmin).

I'm following this guide, and I have mingw/msys setup, python installed, and I've actually successfully completed the guide some time in the past and at one point had SCons working correctly. However, something must have happened during the last few months that has screwed up SCons configuration.

I cd to the GtkRadiant directory, run scons target=setup, and get the following error:

Code: Select all

scons: Reading SConscript files ...
SCons 2.0.1
OS="'{' is not recognized as an internal or external command,
operable program or batch file."
Compiler version check failed - need gcc 3.x or later:
CC: gcc None
CXX: g++ None
Any ideas?

Re: SCons and building Radiant on Win7

Posted: Wed Jan 11, 2012 9:27 pm
by ^misantropia^
I'd start with cleaning out everything (`git clean -dfx`, forgot what svn calls it) and do a rebuild

Re: SCons and building Radiant on Win7

Posted: Wed Jan 11, 2012 9:52 pm
by Kaz
I'll do that... also worth noting: I'm trying to build the 1.5 branch

Re: SCons and building Radiant on Win7

Posted: Wed Jan 11, 2012 10:00 pm
by Kaz
A clean checkout of the 1.5 branch gives me the same error.

Re: SCons and building Radiant on Win7

Posted: Wed Jan 11, 2012 10:16 pm
by Kaz
Also:

In the SConscript file, the first lines are:

Code: Select all

import os, sys, commands, string
from makeversion import get_version
# OS Detection:
OS = commands.getoutput('uname')
It seems to me that this is what is producing the error, but I'm not really familiar enough with this stuff to know why.

EDIT:

Okay, I got a little farther. Replacing commands.getoutput('uname') with platform.system() seems to have done the trick. Still receiving the error about CC/GCC but this seems to be a PATH problem.

Re: SCons and building Radiant on Win7

Posted: Wed Jan 11, 2012 11:50 pm
by Kaz
From what I've been reading around it seems like commands.<whatever> are unix-specific and therefore fudge up everything on Windows. I'll post a comprehensive solution if I come to one.

Re: SCons and building Radiant on Win7

Posted: Thu Jan 12, 2012 12:38 am
by ^misantropia^
Send the patch to the Radiant people once you're done, I'm sure they'll appreciate it.