-
Notifications
You must be signed in to change notification settings - Fork 541
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
[BUG] [WASM] HarfBuzzSharp Linker Errors #1725
Comments
Do you have a working Ubuntu WSL environment? |
yes, i have WSL1 and WSL2 ready |
i have tried it with the latest preview versions |
Most likely an error in the tooling. We need to explicitly define how these enums are handled by p/invoke |
I'm running into the same issue with .preview-152 whether or not I turn on linking. I'm using SkiaSharp.Views.Blazor |
@mattleibow sorry to ping again but are there any updates or plans on this? disabling the linker would really help us reducing our build times for web assembly. i would be happy to contribute myself but i'm not that deep into |
Oh golly. Let me see. That is generated and maybe something is funny. |
Seems to be a bug in .NET 6: dotnet/runtime#61350 I'll try get a workaround for now. |
Merged a workaround for now |
thank you very much for the fast help! i will test it with my application, is it in the preview-feed already? |
@nor0x, did you end up building it for yourself? It still hasn't been updated on the nuget feeds. |
It should be on the |
i have the |
Thank you, @mattleibow! I didn't see the EAP feed on the README.md page 🤦 I'm good to go and Harfbuzz is compiling in my Blazor project. |
latest .171 is available for me now. Thank you 👏👏 |
While I added this to my project file:
I am not seeing
And am accordingly seeing the following error:
How is SkiaSharp.Views.Blazor getting the files into the wasm build? Thanks in advance. |
Even adding the NativeAssets package didn't solve this for me. I had to add the library manually:
Just extract the library from the package. The Emscripten version should match. |
@Gillibald, thank you, this worked! @mattleibow, would you like me to file a bug for this one? |
You do not have to extract the file from your .nuget-Folder. |
Description
I'm using SkiaSharp + HarfBuzzSharp in a WebAssembly application. I have disabled the linker to reduce the build time for the project which leads to various issues listed below. With the linker enabled the build works fine but takes significantly longer.
This is the setup i'm using:
HarfBuzzSharp
Version 2.88.0-preview.7SkiaSharp
Version 2.88.0-preview.7HarfBuzzSharp.NativeAssets.WebAssembly
Version 2.6.1.8-preview.93i'm inspecting the build logs with detailed verbosity and get the following output with
System.Exception: Failed to generate AOT layout
Behavior
Basic Information
Reproduction Link
https://github.com/nor0x/skiasharp-1720
The text was updated successfully, but these errors were encountered: