I am trying to get emcc to compile a cpp file which works fine under blazor... #864
Unanswered
BradChase2011
asked this question in
Q&A
Replies: 1 comment 11 replies
-
Thanks for the report! Could you share your uno example as well? |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am seeking some help here to try to get over a hurdle using Uno.Wasm.Bootstrap instead of blazor to test out debugging and threading. That said, I have this repository which works fine and compiles the cpp and js into the correct library:
https://github.com/BradChase2011/CSharpBlazorWebGPUExample
So what Ive done is switch the flags and such from these which work under blazor:
and one of the calls is used like so:
int test = navigator_gpu_get_preferred_canvas_format();
into:
I have it compiling under Uno.Wasm.Bootstrap with these flags:
Problem is when I go to call the imported function at run time it fails. Under WSL its looking for an .so file by the same name (which doesnt exist anywhere) and running it outside of WSL just gives a generic error of failure. So I guess my question is, how can I get that functionality that works under the blazor example app to run under uno wasm bootstrap, am I missing a setting or is this not possible? If not possible, what would be the correct way?
Thanks much!
Beta Was this translation helpful? Give feedback.
All reactions