-
Notifications
You must be signed in to change notification settings - Fork 19
wasm-pack build error #11
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
Comments
Your C compiler is picking up headers for the native architecture, which can't possibly work. It appears that you either don't have a WASM-compatible C compiler, or the compiler doesn't have WASM-compatible system headers. Note that macOS clang doesn't support WASM. You need to have a special compiler, like emscripten. Are you able to compile libjpeg-turbo for WASM? |
@khernyo I switched to linux and successfully compiled libjpeg-turbo following this issue.
I guess the |
Thanks. I've hidden the |
Hi. There are two
And I removed these two lines locally, then I got following error.
|
It looks like you need to export |
Have you tried |
I removed
I removed
|
"building dynamic library is unsupported on Emscripten" is a Cargo issue: rust-lang/cargo#8496 You need to update to Rust 1.45 for this to work. |
Thank you! It works. |
Hi.
I got following error when running
wasm-pack build --scope xxx
. Could you please give me some tips?system infomation
clang infomation
rustc infomation
Cargo.toml
The text was updated successfully, but these errors were encountered: