mono / SkiaSharp

SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
MIT License
4.4k stars 535 forks source link

[BUG] CentOS 7 libSkiaSharp.so error 'CXXABI_1.3.8' not found and 'GLIBCXX_3.4.21' not found #888

Closed BruceHunter closed 4 years ago

BruceHunter commented 5 years ago

Description On CentOS 7 you get the following error. This code works on windows 10 just fine.

#ldd libSkiaSharp.so

libSkiaSharp.so

'CXXABI_1.3.8' not found
'GLIBCXX_3.4.21' not found 

The solution I found was the following. (install gcc,gcc-c++ 4.8.5) to be utilized to bootstrap compiling to the latest 9.* version via source.

CentOS 7 Steps

1) Upgrade GCC,GCC-C++ (Steps are online). 2) Reboot 3) Run these commands to fix actual issue for error list above.

#cd /usr/local/lib64
#cp libstdc++.so.6.0.29 /usr/lib64/
#cd /usr/lib64/
#mv libstdc++.so.6 libstdc++.so.6.OLD
#ln -sf libstdc++.so.6.0.29

After upgrading gcc, I was able to get a self-contained published .net core 2.2 app working on centos 7 server.

I have gotten it to work on dotnet (FDD and SCD) deployment models.

mattleibow commented 5 years ago

You could try using the preview feed and one of the later rc versions. We switched to a static compilation and clang. We also have a 'NoDependencies' package that should have no dependencies.

Preview feed: https://nugetized.blob.core.windows.net/skiasharp-eap/index.json

LukePulverenti commented 5 years ago

@BruceHunter are you planning on trying the RC build?

davorinv commented 5 years ago

You could try using the preview feed and one of the later rc versions. We switched to a static compilation and clang. We also have a 'NoDependencies' package that should have no dependencies.

Preview feed: https://nugetized.blob.core.windows.net/skiasharp-eap/index.json

I tried using build 1.68.1-rc.138 and that fixed the issue on CentOS 7.6.1810

BruceHunter commented 5 years ago

I was on vacation, sorry. I will switch to the preview feed instead. Also, seeing blurry images when using the resize, but that is another issue. Maybe the preview feed will fix that as well. I will report back once I switch over.

mattleibow commented 4 years ago

Closing this issue for now as it seems to be fixed.

Please open a new issue if this is still happening.