logue-sdk
logue-sdk copied to clipboard
math.h not found when trying to build using Web Assembly on Win 10
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 ? 🤔