Skip to content
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

Emscripten build #341

Open
mdahlgrengadd opened this issue May 11, 2018 · 2 comments
Open

Emscripten build #341

mdahlgrengadd opened this issue May 11, 2018 · 2 comments

Comments

@mdahlgrengadd
Copy link

Hi @olofson!

Thanks for this awesome library!

The build-emscripten.sh didn't work on my setup (macbook). I had to make some tiny adjustments to build-emscripten.sh in order to compile.

Namely:

  • Adding this line: LIBSOURCES="$LIBSOURCES src/interface.c src/pitch.c src/api.c src/log.c src/units/dc.c src/units/env.c"

  • add "-s USE_SDL=2" to emcc compiler flags

  • run "cmake ." in the root folder before running build-emscripten.sh

/ Martin.

@olofson
Copy link
Owner

olofson commented May 11, 2018

Thank you! I haven't been maintaining that script, so I'm almost surprised it wasn't more broken than that. :-)

I'll see if I can add Emscripten as a proper CMake target instead. (And floating point DSP, because JS doesn't like integer/fixed point much at all... See #28.)

@mdahlgrengadd
Copy link
Author

Yes, that would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants