Re: [Mingw-msys] forking issue on Windows XP?
- Date: Mon, 11 Feb 2008 11:08:52 +0100
- From: "Mathijs Romans" <mathijs@xxxxxxxxxxxxx>
- Subject: [Mingw-msys] Msys recognizes shebang (!#), python does not
Hi!
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
env.ParseConfig('sdl-config --cflags')
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 file.
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!
Mathijs
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
env.ParseConfig('sdl-config --cflags')
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 file.
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!
Mathijs
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Mingw-msys mailing list Mingw-msys@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/mingw-msys
- Prev by Date: Re: [Mingw-msys] forking issue on Windows XP?
- Next by Date: Re: [Mingw-msys] forking issue on Windows XP?
- Previous by thread: Re: [Mingw-msys] forking issue on Windows XP?
- Next by thread: Re: [Mingw-msys] forking issue on Windows XP?
- Index(es):