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

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/6ddbdefb-6b51-41e5-b023-c031e0cad10d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to