Sent: Monday, February 11, 2008 7:08 PM
Subject: [Mingw-msys] Msys recognizes shebang (!#), python does
I hope somebody can help me with this problem, I am
new to developing under Windows. I try to compile a third-party program using
mingw+msys. It uses, among other things, SDL-libraries, and for making it I
use "scons", which is a python-based replacement for "make". Building under
linux poses no problems.
In the configuration file for scons, the library flags
are set with the command
which is interpreted by python to run the program
"sdl-config". So far so good. I am sure this program is in the path, and I can
run it from the msys-prompt. However using either scons, or the native
command-line "cmd" on windows, I get the error:
'sdl-config' is not
recognized as an internal or external command, operable program or batch
I think this is because neither python nor cmd recognizes
that this should be run with sh (starts with #!/bin/sh).
Is there anything I can do (apart from replacing
"sdl-config --cflags" with "sh sdl-config --cflags" everywhere), to solve this
problem? Am I doing anything wrong? I feel that it's supposed to work this
way. Any help would be greatly appreciated!
you tried creating a sdl-config.bat which runs "sh c:\path\sdl-config %*"