-
Notifications
You must be signed in to change notification settings - Fork 539
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
[FEATURE] Prebuilt Linux Libraries for SkiaSharp.HarfBuzz #1376
Comments
@mlptownsend Good news! This is already done! The library for harfbuzz is actually "libHarfBuzzSharp", which is in the "HarfBuzzSharp" series of packages: https://www.nuget.org/packages/HarfBuzzSharp.NativeAssets.Linux SkiaSharp.HarfBuzz is just a convenience package that adds some easy use cases. Thanks for taking the time to open the issue and post your workings! Hopefully this helps. |
Wow I totally overlooked it. Thanks! |
I'll add one more workings. I don't have the free time to make a CentOS 7 package, but if someone else does... This is what I just did to get 1.68.3 to build on a random server I had lying around.
To compile using gcc:
To compile using clang (recommended):
Then the bootstrapper step.
Something for #453? |
Yes please! Share this over there too. But, did the package on nuget not work for you for centos? |
It might take me a bit to try it out and see but I'll try and circle back and report back on this. Chances are it will actually work though. The .so's I built for CentOS did work on Ubuntu. I'm not really a Linux person and assumed that you had to have a .so built on the specific OS or it wouldn't work at all. I guess it's not THAT inflexible. |
We have SkiaSharp.NativeAssets.Linux for SkiaSharp. It'd be really nice if there was a prebuilt native library for the libHarfBuzzSharp.so dependency for the SkiaSharp.HarfBuzz package too. They do get generated at the same time in the bootstrapper, after all.
It'd also be nice if the wiki page for "Building SkiaSharp" would list the parameters for the -t targets that are available. It has "everything" on the page, but it doesn't mention that you can do "externals-linux" to just build the linux only. I had to find that by searching through all the issues.
With everything, the build fails with tizen, and I'm not sure if I was just having problems finding it, but I don't think they have a headless installer anymore? Not that it's your problem :)
To help anyone else who might want to build them, I kept track of what I did to do it. This is for Ubuntu 18.04. No warranties or guarantees though!
The generated files will be found in SkiaSharp/output/native/linux/x64.
The text was updated successfully, but these errors were encountered: