Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x265 wasm编译不过 #22

Open
lizhikangsz opened this issue Aug 10, 2023 · 1 comment
Open

x265 wasm编译不过 #22

lizhikangsz opened this issue Aug 10, 2023 · 1 comment

Comments

@lizhikangsz
Copy link

[ 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)

@UxieVerity
Copy link

我遇到了一样的问题,请问这个问题解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants