x265 wasm编译不过
Opened this issue · 1 comments
[ 98%] Building CXX object CMakeFiles/cli.dir/abrEncApp.cpp.o
[100%] Linking CXX executable x265.js
wasm-ld: warning: unknown -z value: noexecstack
wasm-ld: warning: -Bsymbolic is only meaningful when combined with -shared
wasm-ld: warning: function signature mismatch: x265_cpu_xgetbv
defined as (i32) -> i64 in libx265.a(cpu.cpp.o)
defined as (i32, i32, i32) -> void in libx265.a(primitives.cpp.o)
wasm-ld: error: libx265.a(ringmem.cpp.o): undefined symbol: sem_close
wasm-ld: error: libx265.a(ringmem.cpp.o): undefined symbol: sem_unlink
wasm-ld: error: libx265.a(ringmem.cpp.o): undefined symbol: sem_close
wasm-ld: error: libx265.a(ringmem.cpp.o): undefined symbol: sem_unlink
em++: error: 'xxx/emsdk/upstream/bin/wasm-ld -o x265.wasm -Bsymbolic -znoexecstack CMakeFiles/cli.dir/input/input.cpp.o CMakeFiles/cli.dir/input/yuv.cpp.o CMakeFiles/cli.dir/input/y4m.cpp.o CMakeFiles/cli.dir/output/output.cpp.o CMakeFiles/cli.dir/output/reconplay.cpp.o CMakeFiles/cli.dir/output/yuv.cpp.o CMakeFiles/cli.dir/output/y4m.cpp.o CMakeFiles/cli.dir/output/raw.cpp.o CMakeFiles/cli.dir/x265.cpp.o CMakeFiles/cli.dir/x265cli.cpp.o CMakeFiles/cli.dir/abrEncApp.cpp.o libx265.a -L/xxx/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten -lGL -lal -lhtml5 -lstubs -lnoexit -lc -ldlmalloc -lcompiler_rt -lc++-noexcept -lc++abi-noexcept -lsockets -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr /tmp/tmpb9m_3v81libemscripten_js_symbols.so --strip-debug --export-if-defined=main --export-if-defined=__start_em_asm --export-if-defined=__stop_em_asm --export-if-defined=__start_em_lib_deps --export-if-defined=__stop_em_lib_deps --export-if-defined=__start_em_js --export-if-defined=__stop_em_js --export-if-defined=__main_argc_argv --export=stackSave --export=stackRestore --export=stackAlloc --export=__errno_location --export=__get_temp_ret --export=__set_temp_ret --export=__wasm_call_ctors --export-table -z stack-size=65536 --initial-memory=16777216 --no-entry --max-memory=16777216 --global-base=1024' failed (returned 1)
我遇到了一样的问题,请问这个问题解决了吗