ffmpegwasm / ffmpeg.wasm

FFmpeg for browser, powered by WebAssembly
https://ffmpegwasm.netlify.app
MIT License
13.64k stars 787 forks source link

Failed to compiling `ffmpeg.wasm-core` #157

Open VikalpP opened 3 years ago

VikalpP commented 3 years ago

Describe the bug

My requirement: compile ffmpeg.wasm-core with --enable-openssl for https protocol.

Output I got

ERRO[0661] error waiting for container: invalid character 'u' looking for beginning of value

To Reproduce Steps to reproduce the behavior:

  1. Go to https://github.com/ffmpegwasm/ffmpeg.wasm-core#setup
  2. Follow the given steps to compile it.
  3. Will get below error.

    ERRO[0661] error waiting for container: invalid character 'u' looking for beginning of value

Complete logs: here

Expected behavior Should compile with no error. (warnings are fine you mentioned in steps 😉)

Screenshots

Screenshot 2021-02-16 at 2 49 51 PM

Desktop (please complete the following information):

kkxlkkxllb commented 3 years ago

i got the similar error message

./libtool: error reading input file: Transport endpoint is not connected
make: *** [Makefile:1750: libAACdec/src/pulsedata.lo] Error 1
./libtool: error reading input file: Transport endpoint is not connected
make: *** [Makefile:1750: libSYS/src/syslib_channelMapDescr.lo] Error 2
em++: error: '/emsdk/upstream/bin/clang++ -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=8 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -Werror=implicit-function-declaration -Xclang -nostdsysteminc -Xclang -isystem/emsdk/upstream/emscripten/system/include/libcxx -Xclang -isystem/emsdk/upstream/emscripten/system/lib/libcxxabi/include -Xclang -isystem/emsdk/upstream/emscripten/system/include/compat -Xclang -isystem/emsdk/upstream/emscripten/system/include -Xclang -isystem/emsdk/upstream/emscripten/system/include/libc -Xclang -isystem/emsdk/upstream/emscripten/system/lib/libc/musl/arch/emscripten -Xclang -isystem/emsdk/upstream/emscripten/system/local/include -Xclang -isystem/emsdk/upstream/emscripten/system/include/SSE -Xclang -isystem/emsdk/upstream/emscripten/system/include/neon -Xclang -isystem/emsdk/upstream/emscripten/system/lib/compiler-rt/include -Xclang -isystem/emsdk/upstream/emscripten/system/lib/libunwind/include -Xclang -isystem/emsdk/upstream/emscripten/cache/wasm/include -DEMSCRIPTEN -fignore-exceptions -DPACKAGE_NAME="fdk-aac" -DPACKAGE_TARNAME="fdk-aac" -DPACKAGE_VERSION="2.0.1" "-DPACKAGE_STRING=\"fdk-aac 2.0.1\"" -DPACKAGE_BUGREPORT="http://sourceforge.net/projects/opencore-amr/" -DPACKAGE_URL="" -DPACKAGE="fdk-aac" -DVERSION="2.0.1" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -I. -I./libAACdec/include -I./libAACenc/include -I./libArithCoding/include -I./libDRCdec/include -I./libSACdec/include -I./libSACenc/include -I./libSBRdec/include -I./libSBRenc/include -I./libMpegTPDec/include -I./libMpegTPEnc/include -I./libSYS/include -I./libFDK/include -I./libPCMutils/include -fno-exceptions -fno-rtti -g -O2 -MT libAACenc/src/aacEnc_ram.lo -MD -MP -MF libAACenc/src/.deps/aacEnc_ram.Tpo -c -o libAACenc/src/aacEnc_ram.o libAACenc/src/aacEnc_ram.cpp -Xclang -isystem/emsdk/upstream/emscripten/system/include/SDL -c -o libAACenc/src/aacEnc_ram.o -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr' failed (-14)
rm: cannot remove 'libSBRenc/src/ps_encode.o'make: *** [Makefile:1750: libMpegTPEnc/src/tpenc_asc.lo] Error 1
make: *** [Makefile:1750: libFDK/src/FDK_bitbuffer.lo] Error 2
: Transport endpoint is not connected
ERRO[1014] error waiting for container: invalid character 'u' looking for beginning of value
VikalpP commented 3 years ago

cc @jeromewu
Can you please look at this error? I can help if you show me any right direction where to look in the code base.

petkaantonov commented 3 years ago

This is a docker bug. You can simply install emscripten and compile using build.sh.

dimagoltsman commented 2 years ago

anyone managed to build with openssl? i needs to be built also with emscripten but need to figure out how