Hello,
I am compiling fdkaac (
https://github.com/nu774/fdkaac) with emscripten. This project uses libFDK-aac as shared library.
Steps :
Make project and libFDK-aac(shared) - emmake make EMCC_FORCE_STDLIBS=1 EMCC_DEBUG=1 EM_BUILD_VERBOSE=3
Building project (LLVM bitcode)- emcc project.o libfdk-aac.o -s WASM=1 -s FORCE_FILESYSTEM=1 --preload-file ra.wav -o project.html --emrun --log_html -s FULL_ES3=1
But I got error :
error: undefined symbol: _Z23FDK_MpegsEnc_GetLibInfoP8LIB_INFO
error: undefined symbol: _Z23transportEnc_GetLibInfoP8LIB_INFO
error: undefined symbol: _Z24FDK_MetadataEnc_GetDelayP20FDK_METADATA_ENCODER
error: undefined symbol: _Z24FDK_MpegsEnc_GetDecDelayP11MPS_ENCODER
error: undefined symbol: _Z24FDKaacEnc_CalcFormFactorPP14QC_OUT_CHANNELPP15PSY_OUT_CHANNELi
error: undefined symbol: _Z24transportEnc_CrcStartRegP12TRANSPORTENCi
error: undefined symbol: _Z25FDKaacEnc_InitElementBitsP8QC_STATEP15CHANNEL_MAPPINGiii
error: undefined symbol: _Z25transportEnc_GetBitstreamP12TRANSPORTENC
error: undefined symbol: _Z26FDKaacEnc_QuantizeSpectrumiiiPKiPKliS0_Psi
error: undefined symbol: _Z26transportEnc_EndAccessUnitP12TRANSPORTENCPi
Error in Javascript console :
external function '_Z23transportEnc_GetLibInfoP8LIB_INFO' is missing. perhaps a side module was not linked in? if this function was expected to arrive from a system library, try to build the MAIN_MODULE with EMCC_FORCE_STDLIBS=1 in the environment
error is saying side module was not linked. But I building it with bitcode of shared library. I think I am missing something which can link system library too, I am not getting how to do that.
Thank you,
Mritunjay