GoogleChromeLabs / wasm-av1

Port of the AV1 Video codec to WebAssembly
Apache License 2.0
154 stars 23 forks source link

Not able to build the project #6

Open mimcz opened 4 years ago

mimcz commented 4 years ago

I was not able to build it using make. This was the log output. Any idea what am I doing wrong?

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_YUV16_to_RGB', \
                                    '_AVX_YUV8_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
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/aom_config.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/aom_codec.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/aom_decoder.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/aom_encoder.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/aom_image.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/aom_integer.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/aom_dsp_rtcd.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/aom_scale_rtcd.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/av1_rtcd.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/aom_convolve.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/bitreader_buffer.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/bitwriter_buffer.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/blend_a64_hmask.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/blend_a64_mask.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/blend_a64_vmask.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/entcode.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/fft.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/intrapred.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/loopfilter.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/subtract.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/avg.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/binary_codes_reader.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/daalaboolreader.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/entdec.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/grain_synthesis.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/binary_codes_writer.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/daalaboolwriter.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/entenc.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/fwd_txfm.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/grain_table.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/noise_model.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/noise_util.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/psnr.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/quantize.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/sad.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/sse.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/sad_av1.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/sum_squares.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/variance.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/aom_mem.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/aom_thread.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/debug_util.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/aom_scale.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/gen_scalers.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/yv12config.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/yv12extend.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/alloccommon.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/av1_inv_txfm1d.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/av1_inv_txfm2d.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/av1_loopfilter.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/av1_txfm.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/blockd.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/cdef.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/cdef_block.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/cfl.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/convolve.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/debugmodes.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/entropy.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/entropymode.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/entropymv.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/frame_buffers.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/idct.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/mvref_common.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/obu_util.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/odintrin.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/pred_common.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/quant_common.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/reconinter.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/reconintra.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/resize.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/restoration.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/scale.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/scan.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/seg_common.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/thread_common.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/tile_common.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/timing.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/txb_common.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/warped_motion.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/av1_dx_iface.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/decodeframe.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/decodemv.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/decoder.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/decodetxb.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/detokenize.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/obu.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/accounting.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/inspection.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/av1_cx_iface.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/aq_complexity.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/aq_cyclicrefresh.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/aq_variance.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/av1_fwd_txfm1d.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/av1_fwd_txfm2d.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/av1_multi_thread.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/av1_quantize.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/bitstream.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/context_tree.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/corner_detect.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/corner_match.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/cost.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/encodeframe.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/encodemb.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/encodemv.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/encoder.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/encodetxb.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/ethread.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/extend.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/firstpass.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/global_motion.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/hash.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/hash_motion.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/hybrid_fwd_txfm.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/lookahead.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/mbgraph.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/mcomp.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/ml.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/palette.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/pickcdef.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/picklpf.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/pickrst.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/ransac.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/ratectrl.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/rd.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/rdopt.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/reconinter_enc.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/segmentation.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/speed_features.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/temporal_filter.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/tokenize.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/wedge_utils.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/fast.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/fast_9.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/nonmax.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/vector.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/dwt.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/aom_av1_dummy.c.o is not LLVM bitcode, cannot link
shared:WARNING: object /tmp/emscripten_temp_VSRUmr_archive_contents/aom_dsp_dummy.c.o is not LLVM bitcode, cannot link
error: undefined symbol: aom_codec_av1_dx
warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`
error: undefined symbol: aom_codec_dec_init_ver
error: undefined symbol: aom_codec_decode
error: undefined symbol: aom_codec_destroy
error: undefined symbol: aom_codec_get_frame
error: undefined symbol: aom_img_plane_height
error: undefined symbol: aom_img_plane_width
Error: Aborting compilation due to previous errors
shared:ERROR: '/emsdk_portable/node/bin/node /emsdk_portable/sdk/src/compiler.js /tmp/tmpHdiahI.txt /emsdk_portable/sdk/src/library_pthread_stub.js' failed (1)
Makefile:43: recipe for target 'decode-av1.js' failed
make: *** [decode-av1.js] Error 1
innerop commented 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

XiaochuLiao commented 3 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

Have u solved the problem ? i met the same mistake.