I was trying compile a resnet-example to wasm for further use.
I prepared all assets with python
chao@DESKTOP-B79IRTG:~/tvm/rust/frontend/examples/resnet$ ls
Cargo.toml README.md build.rs cat.png deploy_graph.json deploy_lib.o deploy_lib.so deploy_param.params imagenet1000_clsid_to_human.txt src
I tried cargo build --target wasm32-wasi --release
chao@DESKTOP-B79IRTG:~/tvm/rust/frontend/examples/resnet$ cargo build --target wasm32-wasi --release
Compiling tvm-common v0.1.0 (/home/chao/tvm/rust/common)
error: failed to run custom build command for `tvm-common v0.1.0 (/home/chao/tvm/rust/common)`
Caused by:
process didn't exit successfully: `/home/chao/tvm/rust/target/release/build/tvm-common-b7c53b87d998cb69/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=TVM_HOME
cargo:rustc-link-lib=dylib=tvm_runtime
cargo:rustc-link-search=/home/chao/tvm/build
--- stderr
/home/chao/tvm/3rdparty/dlpack/include/dlpack/dlpack.h:29:10: fatal error: 'stdint.h' file not found
/home/chao/tvm/3rdparty/dlpack/include/dlpack/dlpack.h:29:10: fatal error: 'stdint.h' file not found, err: true
thread 'main' panicked at 'unable to generate bindings: ()', common/build.rs:45:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace