-
Notifications
You must be signed in to change notification settings - Fork 80
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
It says emscripten is not installed but it is! #60
Comments
The Also on a side note - I'd love to have precompiled Emscripten binaries for Windows too in |
|
|
|
Hmm... can you try making a new crate with |
That one works! So why doesn't it work with the yew examples? |
Can you now try to add a |
I added the Web.toml file next to my Cargo.toml file: prepend-js = "prepend.js" and the js file: console.log("prepend"); when I build it, it returns immediately (as if the source didn't change) and when I execute it with |
Hmmm... that might be an issue with Rust not rebuilding the project when Emscripten flags change. Anyhow, can you just delete the |
Ah yes, now it works!
Now how does it bring us closer to a solution to the issue above? |
I wanted to see whenever Hmm... I guess you could maybe try take the |
Strip it down in what way? Where does the error even originate? Which part is passing those flags? |
Start removing things as long as it still exhibits the problem. For example, delete the example code and leave an empty crate, remove |
But who is the one calling emcc with |
I remember I had a similar problem before where something (cargo or something else) wasn't putting quotation marks around the value of args.. Maybe it should be |
Rust is. But there must be some reason why it fails. |
Is this related? emscripten-core/emscripten#4342 |
Which line of code in cargo web calls emcc with |
|
Thanks, after talking on IRC I found out the correct quotation syntax and opened an issue: rust-lang/rust#47909 |
But why does it work when I try to compile |
Yes. That's why I suggested to try to cut down that example crate from |
Ok, and how can I print out how emcc is called when building |
This issue occurs because when there are too many arguments, rustc and emcc use a response file to get around the windows command max length, and the parsing messes this up. Explained further: yewstack/yew#124 (comment). But I'm not sure about the original error. I got that and had to restart to fix it. |
Adds some custom parsing functions into emcc.py to replace evals. Also ensures that --js-opts and --llvm-lto are integers Additionally replaces eval in em-config Closes #6069 Fixes #4342 Should Fix: yewstack/yew#124 Part of koute/cargo-web#60 rust-lang/rust#47909
I followed the steps here and it worked with the hello.rs to hello.js with
rustc --target asmjs-unknown-emscripten hello.rs
but now I'm trying to build a yew example and it says emscripten is not installed, why?(I have to use asmjs instead of wasm to support old browsers.)
EDIT: The hello.rs example worked in the emscripten sdk folder, but when I copy the hello.rs file to another folder and start a cmd.exe there and then run
rustc --target asmjs-unknown-emscripten hello.rs
I getnote: 'emcc.bat' is not recognized as an internal or external command, operable program or batch file.
even though I ranemsdk_env.bat
in that shell, why?The text was updated successfully, but these errors were encountered: