I'm trying to add sound to a game using SDL Mixer, but when I use the emcc
-s flag to include SDL mixer I get a series of cryptic messages. I've
removed all the code inside my test file that references SDL Mixer, and I
can compile it without the USER_SDL_MIXER=2 flag, but as soon as I put that
flag in I get the following errors:
*emcc basic_audio.c -s USE_SDL=2 -s USE_SDL_MIXER=2 -o basic_audio.html*
emscripten:INFO: generating port: sdl2-mixer.bc... (this will be cached in
"C:\Users\rick\.emscripten_cache\asmjs\sdl2-mixer.bc" for subsequent builds)
Traceback (most recent call last):
File "D:\Assets\VisualStudios\WASM\emsdk\emscripten\1.38.24\emcc.py",
line 3067, in <module>
sys.exit(run())
File "D:\Assets\VisualStudios\WASM\emsdk\emscripten\1.38.24\emcc.py",
line 1550, in run
compile_source_file(i, input_file)
File "D:\Assets\VisualStudios\WASM\emsdk\emscripten\1.38.24\emcc.py",
line 1535, in compile_source_file
args = get_clang_args([input_file]) + ['-c', '-o', output_file]
File "D:\Assets\VisualStudios\WASM\emsdk\emscripten\1.38.24\emcc.py",
line 1516, in get_clang_args
args = system_libs.process_args(args, shared.Settings)
File
"D:\Assets\VisualStudios\WASM\emsdk\emscripten\1.38.24\tools\system_libs.py",
line 980, in process_args
args = port.process_args(Ports, args, settings, shared)
File
"D:\Assets\VisualStudios\WASM\emsdk\emscripten\1.38.24\tools\ports\sdl_mixer.py",
line 42, in process_args
get(ports, settings, shared)
File
"D:\Assets\VisualStudios\WASM\emsdk\emscripten\1.38.24\tools\ports\sdl_mixer.py",
line 31, in get
return [shared.Cache.get('sdl2-mixer', create, what='port')]
File
"D:\Assets\VisualStudios\WASM\emsdk\emscripten\1.38.24\tools\cache.py",
line 111, in get
temp = creator()
File
"D:\Assets\VisualStudios\WASM\emsdk\emscripten\1.38.24\tools\ports\sdl_mixer.py",
line 25, in create
ports.run_commands([[shared.EMCONFIGURE, configure, '--prefix=' +
dist_dir] + formatflags + commonflags + ['CFLAGS=-s USE_VORBIS=1']])
File
"D:\Assets\VisualStudios\WASM\emsdk\emscripten\1.38.24\tools\system_libs.py",
line 769, in run_commands
run_commands(commands)
File
"D:\Assets\VisualStudios\WASM\emsdk\emscripten\1.38.24\tools\system_libs.py",
line 31, in run_commands
call_process(command)
File
"D:\Assets\VisualStudios\WASM\emsdk\emscripten\1.38.24\tools\system_libs.py",
line 24, in call_process
shared.run_process(cmd, stdout=stdout, stderr=stderr)
File
"D:\Assets\VisualStudios\WASM\emsdk\emscripten\1.38.24\tools\shared.py",
line 162, in run_process
proc = Popen(cmd, *args, **kw)
File
"D:\Assets\VisualStudios\WASM\emsdk\python\2.7.13.1_64bit\python-2.7.13.amd64\lib\subprocess.py",
line 390, in __init__
errread, errwrite)
File
"D:\Assets\VisualStudios\WASM\emsdk\python\2.7.13.1_64bit\python-2.7.13.amd64\lib\subprocess.py",
line 640, in _execute_child
startupinfo)
WindowsError: [Error 193] %1 is not a valid Win32 application
Does anyone have any idea what is going on here?
Thanks
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.