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

math.h not found when trying to build using Web Assembly on Win 10 #94

Open
maceq687 opened this issue Jan 27, 2024 · 0 comments
Open

Comments

@maceq687
Copy link

I've tried building the js version of the demo sine oscillator using MSYS on Win 10 by running make wasm but unfortunately I run into the missing math.h error during sine.cpp compilation, see bellow:

In file included from sine.cpp:41:
In file included from C:/<home>/LogueSDK/logue-sdk/platform/nutekt-digital/in
c\userosc.h:50:
In file included from C:/<home>/LogueSDK/logue-sdk/platform/nutekt-digital/in
c/osc_api.h:47:
C:/<home>/LogueSDK/logue-sdk/platform/nutekt-digital/inc/utils\float_math.h:5
0:10: fatal error:
      'math.h' file not found

I've followed the steps for emscripten installation and setup, I've activated it and run the emsdk_env.sh before running make wasm
I'm using MSYS on Windows 10

I have copied the Makefile and WASM.mak from the apha/WASM-build branch into the recent master branch into nutek-digital directory and I have applied the changes listed bellow:
I had updated the LDDIR in the Makefile to: ld,
PLATFORMDIR to $(abspath ..)
and PROJECTDIR to $(abspath .)
I have also updated the PLATFORMDIR and PROJECTDIR to the same as above in the WASM.mak file
I have also copied the required files:
ld/wasm_osc_api.a
ld/wasm_osc_api.cpp
tpl/_wasm_unit.cpp

I did run the git submodule update --init beforehand and I believe this problem is different from the #7 issue

I believe the problem lies either in the Makefile on WASM.mak file, missing -lm somewhere?
Perhaps someone knows how to fix it? maybe @gazzar or @boochow ? 🤔

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

1 participant