Well, I admit compilation of `libtvm_runtime.a` seems a little bit odd. But 
without the static runtime library, rustc says the compilation is failed due to 
lack of `tvm_runtime`. In addition, I find the building procedure in the 
[tvm-wasm](https://github.com/kazum/tvm-wasm) asks user to run `cargo build 
--target wasm32-unknown-unknown --release` under runtime directory and I do 
find the Cargo.toml in `tvm-wasm`'s `/tvm/rust/runtime` submodule is different 
from current version in official repo. 

[quote="posutsai, post:8, topic:7048"]
Cargo couldn’t find tvm_runtime library. Thus I manually add these two lines in 
`tvm/rust/runtime/Cargo.toml` and `tvm/rust/frontend/Cargo.toml` as follows.

```
[lib]
crate-type = ["rlib", "staticlib"]
```
[/quote]

I am not sure if I am on the correct path. But it seems relatively right since 
there's no undefined symbol during compilation. I do believe tvm official has 
there own reason to not generate static lib and it should be that complicated 
to simply deploy a web app. From this perspective, the solution with js runtime 
looks more promising. Yet, none of these two make me deploy successfully.

By the way, if the description here seems too vague for you, please let me 
know. I would post more detail about my code here.





---
[Visit 
Topic](https://discuss.tvm.ai/t/how-to-build-runnable-wasm-on-browser/7048/11) 
to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.ai/email/unsubscribe/026515a8ba5e250cd0e2fbab11b9460b77b4f9bd3baee8d7d9a9b0fd1c3ae265).

Reply via email to