SCons and building Radiant on Win7

Locked
Kaz
Posts: 1077
Joined: Wed Mar 08, 2006 3:43 am

SCons and building Radiant on Win7

Post 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?
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: SCons and building Radiant on Win7

Post by ^misantropia^ »

I'd start with cleaning out everything (`git clean -dfx`, forgot what svn calls it) and do a rebuild
Kaz
Posts: 1077
Joined: Wed Mar 08, 2006 3:43 am

Re: SCons and building Radiant on Win7

Post by Kaz »

I'll do that... also worth noting: I'm trying to build the 1.5 branch
Kaz
Posts: 1077
Joined: Wed Mar 08, 2006 3:43 am

Re: SCons and building Radiant on Win7

Post by Kaz »

A clean checkout of the 1.5 branch gives me the same error.
Kaz
Posts: 1077
Joined: Wed Mar 08, 2006 3:43 am

Re: SCons and building Radiant on Win7

Post 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.
Kaz
Posts: 1077
Joined: Wed Mar 08, 2006 3:43 am

Re: SCons and building Radiant on Win7

Post 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.
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: SCons and building Radiant on Win7

Post by ^misantropia^ »

Send the patch to the Radiant people once you're done, I'm sure they'll appreciate it.
Locked