-
Notifications
You must be signed in to change notification settings - Fork 693
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
"ERROR:root:cwrap]': No such file or directory" #174
Comments
Probably an escaping issue or a typo in the command you wrote. What was the command, and in what shell? |
(By the error message, |
I did it in the correctly set-up terminal (with the environment set) and I ran the command with double-quotes around "cwrap". This was the command I ran, in both WSL and in regular Windows mode (with the correct modifications made to the command):
I can get Edit to add: The |
So no one is able to help me out? Again, I followed the aforementioned tutorial and called Also, there's that other issue I opened about porting my web server application to WebAssembly as a module to use on the backend through Node. The code for the app is here. I also wrote an asynchronous version of the code, but on that one I'm having trouble with making the client code asynchronous because of the code in And because this uses Beast which is based of ASIO (which doesn't support WebAssembly), I need to know how to port ASIO to WebAssembly as well. |
I don't know much about WSL, but this seems like an escaping issue. Might be worth trying all the other possibilities, like |
Just now, I again tried to run this same command:
exactly as documented in the tutorial, but I got this same error again:
I'm sure I didn't make any mistakes. I just copy-pasted the command as is from the tutorial here. There shouldn't be any mistakes. I ran this command:
Also, just now, I tried to build my
and it didn't generate a .wasm file. I tried entering the command
And I tried to open the .js file as well. There's nothing to show, though. No file coming in Visual Studio. Is there something I missed in the command I entered? The app source code is on GitHub here. |
On second thought, It could be because I have to give special treatment to Also, if I want to pass API keys as environment variables to use in my WebAssembly application, and I want to use it as a Node.js module, should I use ENV in my Node.js code like this? Module.preRun.push(function() {ENV.my_key = "value"}) Edit: If I want to use a std::make_shared<listener>(ioc, tcp::endpoint{ address, port }, doc_root)->run(); how do I do it using Edit: @kripken I need some help here if you're free. I can't generate .wasm code at all for my app. Code is here and compilation command I used is:
And as I said before, just a bit ago I ran this command (copy-pasted it as is from the Emscripten tutorial on
And it still gave me that same error as before. In my compilation command for my app, I'm also going to try it by putting the Edit: Okay, putting the |
I've met the same problem.After trying several times,I found it could be resolved by change ' to ": |
For someone who export functions in cmake, See this StackOverflow post. |
* Workload changes and arcade update (emscripten-core#171) (emscripten-core#172) * Update arcade to 7.0.0-beta.22416.1 * Workload changes Co-authored-by: Larry Ewing <lewing@microsoft.com> Co-authored-by: Juan Hoyos <juan.hoyos@microsoft.com> * [release/7.0-rc1] Make two manifests one for net7 and one for net6 in 7.0.100 sdk band (emscripten-core#163) * Here goes nothing * Update WorkloadManifest.json.in * Update WorkloadManifest.json.in * Try to fix up the multi-targeted build. This will likely need an arcade change to enable manifests withtout packs and an additional change once arcade is updated. * Update eng/emsdk.proj Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com> * Rename .pkgproj files * Update PackageVersionNet6 to 6.0.9 * Fix the location of the .net7 pkgproj Co-authored-by: Marc Paine <marcpop@microsoft.com> Co-authored-by: Ankit Jain <radical@gmail.com> Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com> * [release/7.0-rc1] Shorten the name more (emscripten-core#174) * Shorten the name more * [release/7.0-rc1] Check nuget sizes and fix them (emscripten-core#175) * yml: Fail if nuget size exceeds 250MiB, on linux, and macos * Fix the case for no errors * Remove unused binaries Co-authored-by: Ankit Jain <radical@gmail.com> * Add PowerShell-based NuGet size check script and use it on Windows (emscripten-core#176) * Add PowerShell-based NuGet size check script and use it on Windows * Update azure-pipelines.yml Co-authored-by: Juan Hoyos <juan.hoyos@microsoft.com> Co-authored-by: Marc Paine <marcpop@microsoft.com> Co-authored-by: Ankit Jain <radical@gmail.com> Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
* Workload changes and arcade update (emscripten-core#171) (emscripten-core#172) * Update arcade to 7.0.0-beta.22416.1 * Workload changes Co-authored-by: Larry Ewing <lewing@microsoft.com> Co-authored-by: Juan Hoyos <juan.hoyos@microsoft.com> * [release/7.0-rc1] Make two manifests one for net7 and one for net6 in 7.0.100 sdk band (emscripten-core#163) * Here goes nothing * Update WorkloadManifest.json.in * Update WorkloadManifest.json.in * Try to fix up the multi-targeted build. This will likely need an arcade change to enable manifests withtout packs and an additional change once arcade is updated. * Update eng/emsdk.proj Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com> * Rename .pkgproj files * Update PackageVersionNet6 to 6.0.9 * Fix the location of the .net7 pkgproj Co-authored-by: Marc Paine <marcpop@microsoft.com> Co-authored-by: Ankit Jain <radical@gmail.com> Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com> * [release/7.0-rc1] Shorten the name more (emscripten-core#174) * Shorten the name more * [release/7.0-rc1] Check nuget sizes and fix them (emscripten-core#175) * yml: Fail if nuget size exceeds 250MiB, on linux, and macos * Fix the case for no errors * Remove unused binaries Co-authored-by: Ankit Jain <radical@gmail.com> * Add PowerShell-based NuGet size check script and use it on Windows (emscripten-core#176) * Add PowerShell-based NuGet size check script and use it on Windows * Update azure-pipelines.yml * Roll back 6.0.x to 6.0.8 so that packages exist (emscripten-core#177) * Revert "Roll back 6.0.x to 6.0.8 so that packages exist (emscripten-core#177)" (emscripten-core#178) This reverts commit b7a5ae2. * make a 6.0.4 build (emscripten-core#180) * Revert "make a 6.0.4 build (emscripten-core#180)" (emscripten-core#181) This reverts commit eb3232e. * [release/7.0] Update arcade to 7.0.0-beta.22418.4 (emscripten-core#182) * WorkloadManifest.targets: fix condition (emscripten-core#183) Co-authored-by: Juan Hoyos <juan.hoyos@microsoft.com> Co-authored-by: Marc Paine <marcpop@microsoft.com> Co-authored-by: Ankit Jain <radical@gmail.com> Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
I tried to follow the
int_sqrt
example here: https://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html but I got an error sayingCould someone please help me out here?
The text was updated successfully, but these errors were encountered: