Fixing SCons, need a second brain

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderator: Moderators

Locked
Message
Author
sli
Perl Monk
Perl Monk
Posts: 811
Joined: 04 Apr 2008, 17:26
Noob?: No

Fixing SCons, need a second brain

#1 Post 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"
cs : ee : realist

Locked