sonysuqin / WasmVideoPlayer

Play file/stream with wasm & webgl & web audio api, using ffmpeg for multi codec support, especially for h265,support http, websocket, http-flv stream.
GNU General Public License v3.0
1.3k stars 375 forks source link

wasm-ld: error: unknown file type: allformats.o #52

Open liush55 opened 4 years ago

liush55 commented 4 years ago

dear guys, run ./build_decoder.sh does not work normally. could you help to fix this error thanks

wasm-ld: error: unknown file type: allformats.o shared:ERROR: '/local/tools/emsdk/upstream/bin/wasm-ld -o /tmp/emscripten_temp_tSbB0M/libffmpeg.wasm --lto-O0 /tmp/emscripten_temp_tSbB0M/decoder_0.o dist/lib/libavformat.a dist/lib/libavcodec.a -L/local/tools/emsdk/upstream/emscripten/system/local/lib dist/lib/libavutil.a -L/local/tools/emsdk/upstream/emscripten/system/lib dist/lib/libswscale.a -L/home/user/.emscripten_cache/wasm /home/user/.emscripten_cache/wasm/libc.a /home/user/.emscripten_cache/wasm/libcompiler_rt.a /home/user/.emscripten_cache/wasm/libc-wasm.a /home/user/.emscripten_cache/wasm/libdlmalloc.a /home/user/.emscripten_cache/wasm/libpthread_stub.a /home/user/.emscripten_cache/wasm/libc_rt_wasm.a /home/user/.emscripten_cache/wasm/libsockets.a --allow-undefined --import-memory --import-table -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --strip-debug --export wasm_call_ctors --export data_end --export initDecoder --export uninitDecoder --export openDecoder --export closeDecoder --export sendData --export decodeOnePacket --export seekTo --export main --export malloc --export free --export __errno_location --export _get_tzname --export _get_daylight --export _get_timezone --export htonl --export htons --export ntohs --export emscripten_main_thread_process_queued_calls --export _get_environ -z stack-size=5242880 --initial-memory=67108864 --no-entry --max-memory=67108864 --global-base=1024' failed (1) Finished Build