Closed csukuangfj closed 5 months ago
你好. 我试了这个命令行. 结果好像不对. 输出的结果还是
-- Target arch: x86 32bit
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/joshzxzhong/StudioProjects/sherpa-ncnn/build-wasm-basic
+ make -j2
Consolidate compiler generated dependencies of target kaldi-native-fbank-core
[ 0%] Built target ncnn-generate-spirv
[ 7%] Built target kaldi-native-fbank-core
Consolidate compiler generated dependencies of target ncnn
[ 79%] Built target ncnn
Consolidate compiler generated dependencies of target sherpa-ncnn-core
[ 98%] Built target sherpa-ncnn-core
Consolidate compiler generated dependencies of target sherpa-ncnn-c-api
[100%] Built target sherpa-ncnn-c-api
+ make install
[ 0%] Built target ncnn-generate-spirv
[ 72%] Built target ncnn
[ 79%] Built target kaldi-native-fbank-core
[ 98%] Built target sherpa-ncnn-core
[100%] Built target sherpa-ncnn-c-api
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /Users/joshzxzhong/StudioProjects/sherpa-ncnn/build-wasm-basic/install/lib/libkaldi-native-fbank-core.a
-- Up-to-date: /Users/joshzxzhong/StudioProjects/sherpa-ncnn/build-wasm-basic/install/lib/libncnn.a
-- Up-to-date: /Users/joshzxzhong/StudioProjects/sherpa-ncnn/build-wasm-basic/install/./sherpa-ncnn.pc
-- Up-to-date: /Users/joshzxzhong/StudioProjects/sherpa-ncnn/build-wasm-basic/install/lib/libsherpa-ncnn-core.a
-- Up-to-date: /Users/joshzxzhong/StudioProjects/sherpa-ncnn/build-wasm-basic/install/lib/libsherpa-ncnn-c-api.a
-- Up-to-date: /Users/joshzxzhong/StudioProjects/sherpa-ncnn/build-wasm-basic/install/include/sherpa-ncnn/c-api/c-api.h
没有输出对应的js文件
没有输出对应的js文件
还需要再改一下 sherpa-ncnn/c-api/c-api.h
你可以参考 https://github.com/nihui/ncnn-webassembly-nanodet
如果你以前没有做过 wasm 相关的东西,这个对你还是有一定难度的。
Should be fixed in #300
Closed by #300 and #302
Currently, sherpa-ncnn is able to build for wasm with the following commands:
It would be nice if someone can provide the frontend part.