-
Notifications
You must be signed in to change notification settings - Fork 5
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
Cannot build on NixOS #1
Comments
I didn’t even know there was an OS called NixOS until today :) Looking at the error it seems that the wasm32-unknown-emacripten triple isn’t recognized by the version of LLVM in use on your system. Do you actually have that triple installed through rustup? |
Yes
The Nix package manager has it's own way of handling package installation and dependencies. I'm still trying to figure out the exact dependencies of your example. I know there's at least:
But I'm still unsure if (I've also tried to add Can you successfully compile the project without |
AFAIK cargo-web downloads a version of emscripten on its own, but you should be able to override that. I can’t remember if this project does work with just cargo. I’m on holiday at the moment and I do not have access to a computer. I’ll have a look at it when I get back home in the first week of January. You can try to find a way of making cargo-web use your own emscripten and llcm and that would probably solve this issue |
After further investigation, I've opened an issue on cargo-web : koute/cargo-web#230 It looks like this issue is not tied to your work and this example project: I can't compile anything with cargo-web and the emscripten target. |
Now that’s interestIng. Please keep me posted. |
Okay so as mentioned on the linked issue, with the correct version of rust, I can compile against my system emscripten. Here's what works for me:
Although now I'm having issues with the result ( edit: Tried it on an other machine, it's working fine. On a side note, would you like me to contribute my |
So after figuring out some dependencies, I managed to get the compilation up to this step.
I figured I was missing fastcomp (whatever that is), so I added the
emscriptenfastcomp
package to my environment. Except nowstb_image
fails to build withSo I'm not sure if that's progress or not, and I don't know where to go from there.
The text was updated successfully, but these errors were encountered: