Page 1 of 1

Fixing SCons, need a second brain

Posted: 09 Jul 2008, 15:30
by sli
I'm working on making the SConstructs a little better (adding Python 2.5 + scons 0.98.5 and Perl 5.10 support while retaining the original SConstruct code) and I'm running into a strange error.

Code: Select all

buildXS(["src\auto\XSTools\PathFinding\PathFinding.xs.cpp"], ["src\auto\XSTools\PathFinding\PathFinding.xs"])
Creating src\auto\XSTools\PathFinding\PathFinding.xs.cpp ...
g++ -o src\auto\XSTools\PathFinding\PathFinding.xs.o -c -Wall -g -O2 -pipe -Wno-comments -include stdint.h -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -Wall -g -O2 -pipe -Wno-comments -include stdint.h -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -DWIN32 -D__MINGW32__ -DWIN32IO_IS_STDIO -D_UINTPTR_T_DEFINED -DCHECK_FORMAT -IC:\Perl\lib\CORE src\auto\XSTools\PathFinding\PathFinding.xs.cpp
g++: src\auto\XSTools\PathFinding\PathFinding.xs.cpp: No such file or directory
g++: no input files
scons: *** [src\auto\XSTools\PathFinding\PathFinding.xs.o] Error 1
scons: building terminated because of errors.
I'm not sure what's different about the code that builds PathFinding, but NetRedirect.dll builds just fine. Any bright ideas? I'll skim over the XSTools SConstruct and see if it differs in any way.

Just a note: the master SConstruct (in the root OpenKore directory) was checking that platform is "windows," however the platform code actually returns "win32" on Windows, so until I fixed it, building XSTools/NetRedirect on Windows would cause scons to think it's running on Linux. But in case that was a recent change, I left in the check for "windows."

Code: Select all

win32 = cygwin or platform == "win32" or platform == "windows"