-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile SDL2 mixer example project #18077
Comments
The problem seems to be related to fact the sdl2 library has a pthread-variant but that sdl2_mixer does not. As a workaround, until with come up with better fix, you should be able to build needed dependency by first building without |
Thanks! That works for the sdl2 mixer example, but for the open source game it'll eventually hit the linker stage, then print the following error: I am not sure how to progress as the game requires atomics and pthreads, and I've been able to compile it thus far. |
What I mean is if you build For example, you could add |
Note my analysis here re: the cache being locked. |
Hello.
I am attempting to compile a open source game that uses SDL2, but whenever it attempts to compile the required SDL2_mixer library it always fails at timidity. I've isolated the problem by using an barebones SDL2 mixer example project, which is attached to this issue (originally from here).
sdl2-mixer-sample-src.zip
The example project is compiled with the following command in the base directory.
emcc ./src/main.c -s USE_OGG=1 -s USE_VORBIS=1 -s USE_PTHREADS -s USE_SDL=2 -s USE_SDL_MIXER=2 -s SDL2_MIXER_FORMATS='["wav", "ogg"]' -s INITIAL_MEMORY=64MB -s ASYNCIFY=1 --preload-file ./assets -o ./test.html
I am using lubuntu within VirtualBox, and have ran --clear-cache before attempting to compile to html.
Version of emscripten/emsdk:
Failing command line in full:
Full link command and output with `-v` appended.log
The text was updated successfully, but these errors were encountered: