Open mimcz opened 4 years ago
emcc -o decode-av1.js -O3 -s WASM=1 \
-s ALLOW_MEMORY_GROWTH=1 \
-s EXPORTED_FUNCTIONS="['_AVX_Decoder_new', \
'_AVX_Decoder_destroy', \
'_AVX_Decoder_set_source', \
'_AVX_Decoder_run', \
'_AVX_Decoder_get_width', \
'_AVX_Decoder_get_height', \
'_AVX_Decoder_video_finished', \
'_AVX_Decoder_get_frame', \
'_AVX_Video_Frame_get_buffer', \
'_AVX_YUV_to_RGB', \
'_DS_open', \
'_DS_close', \
'_DS_set_blob', \
'_malloc', '_free' \
]" \
blob-api.c yuv-to-rgb.c decode-av1.c -I third_party/aom -I third_party/embuild -L third_party/embuild -laom
error: undefined symbol: aom_codec_av1_dx (referenced by top-level compiled C/C++ code)
warning: Link with -s LLD_REPORT_UNDEFINED
to get more information on undefined symbols
warning: To disable errors for undefined symbols use -s ERROR_ON_UNDEFINED_SYMBOLS=0
warning: _aom_codec_av1_dx may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: aom_codec_dec_init_ver (referenced by top-level compiled C/C++ code)
warning: _aom_codec_dec_init_ver may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: aom_codec_decode (referenced by top-level compiled C/C++ code)
warning: _aom_codec_decode may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: aom_codec_destroy (referenced by top-level compiled C/C++ code)
warning: _aom_codec_destroy may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: aom_codec_get_frame (referenced by top-level compiled C/C++ code)
warning: _aom_codec_get_frame may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: aom_img_plane_height (referenced by top-level compiled C/C++ code)
warning: _aom_img_plane_height may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: aom_img_plane_width (referenced by top-level compiled C/C++ code)
warning: _aom_img_plane_width may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
Error: Aborting compilation due to previous errors
emcc: error: '/Users/marc/emsdk/node/12.9.1_64bit/bin/node /Users/marc/emsdk/upstream/emscripten/src/compiler.js /var/folders/1q/jpdtk_3x6b53cjtmt4rxccsh0000gn/T/tmpgWmzHE.txt' failed (1)
make: *** [decode-av1.js] Error 1
emcc -o decode-av1.js -O3 -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 -s EXPORTED_FUNCTIONS="['_AVX_Decoder_new', '_AVX_Decoder_destroy', '_AVX_Decoder_set_source', '_AVX_Decoder_run', '_AVX_Decoder_get_width', '_AVX_Decoder_get_height', '_AVX_Decoder_video_finished', '_AVX_Decoder_get_frame', '_AVX_Video_Frame_get_buffer', '_AVX_YUV_to_RGB', '_DS_open', '_DS_close', '_DS_set_blob', '_malloc', '_free' ]" blob-api.c yuv-to-rgb.c decode-av1.c -I third_party/aom -I third_party/embuild -L third_party/embuild -laom error: undefined symbol: aom_codec_av1_dx (referenced by top-level compiled C/C++ code) warning: Link with
-s LLD_REPORT_UNDEFINED
to get more information on undefined symbols warning: To disable errors for undefined symbols use-s ERROR_ON_UNDEFINED_SYMBOLS=0
warning: _aom_codec_av1_dx may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library error: undefined symbol: aom_codec_dec_init_ver (referenced by top-level compiled C/C++ code) warning: _aom_codec_dec_init_ver may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library error: undefined symbol: aom_codec_decode (referenced by top-level compiled C/C++ code) warning: _aom_codec_decode may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library error: undefined symbol: aom_codec_destroy (referenced by top-level compiled C/C++ code) warning: _aom_codec_destroy may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library error: undefined symbol: aom_codec_get_frame (referenced by top-level compiled C/C++ code) warning: _aom_codec_get_frame may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library error: undefined symbol: aom_img_plane_height (referenced by top-level compiled C/C++ code) warning: _aom_img_plane_height may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library error: undefined symbol: aom_img_plane_width (referenced by top-level compiled C/C++ code) warning: _aom_img_plane_width may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library Error: Aborting compilation due to previous errors emcc: error: '/Users/marc/emsdk/node/12.9.1_64bit/bin/node /Users/marc/emsdk/upstream/emscripten/src/compiler.js /var/folders/1q/jpdtk_3x6b53cjtmt4rxccsh0000gn/T/tmpgWmzHE.txt' failed (1) make: *** [decode-av1.js] Error 1
Have u solved the problem ? i met the same mistake.
I was not able to build it using
make
. This was the log output. Any idea what am I doing wrong?