-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Native binaries collision with libgdiplus #21
Comments
These packages compiled under and targeting only linux-x64. Unix packages have their own libz (configured as internal driver) and libc. |
My system is indeed x64 |
This is a sample app. I got error after creating bitmap. |
Also, I want to notice that using bitmap in asp.net core is not a good idea, as it has a windows dependency (Microsoft.Win32.SystemEvents). And it also requires libc6-dev and libgdiplus libraries. |
Yes i know using bitmap is risky but i am porting a huge library to .net core so i should make it work. I could not make it work. Could you please send me a working sample project? Thanks. |
Sorry but i am still getting the error when i try to create Bitmap |
@tyaleze GDAL is not dependent on Bitmap and vise versa |
I know but when i remove the packages it works. If only i add the packages it fails. I tried to use GDAL.Net.Core library and its runtimes it also works. |
Then this issue is similar to #9.
|
Thanks for your help. I am using gdal for dynmic tiling. i crop images from big images on runtime. so i understand that if i use ImageSharp or any other cross platform library for creating images, this problem will be solved. right? |
@tyaleze sorry for late reply. That should be fixed by ImageSharp, because it does not have any binary dependency - it's fully managed. |
Thanks. i took your advise and change all System.Drawing object into ImageSharp. Everything works fine. |
@tyaleze One more remark. |
I got the following error when i try to use the library. I have zlib 1.2.11 (latest version) and its dev version installed but i am still getting the same error.
I get success if i use Gdal.Core package and its runtimes. but their version are old.
The detail i got from LD_DEBUG below :
23172: checking for version
GLIBC_2.4' in file /lib/x86_64-linux-gnu/libc.so.6 [0] required by file /usr/lib/x86_64-linux-gnu/libgif.so.7 [0] 23172: checking for version
GLIBC_2.2.5' in file /lib/x86_64-linux-gnu/libc.so.6 [0] required by file /usr/lib/x86_64-linux-gnu/libgif.so.7 [0]23172: checking for version
GLIBC_2.2.5' in file /lib/x86_64-linux-gnu/libm.so.6 [0] required by file /usr/lib/x86_64-linux-gnu/libpng16.so.16 [0] 23172: checking for version
ZLIB_1.2.9' in file /home/tyaleze/Desktop/code/server/teoframework/TeoGIS.Framework/TeoFramework/bin/Debug/netcoreapp3.1/runtimes/linux-x64/native/libz.so.1 [0] required by file /usr/lib/x86_64-linux-gnu/libpng16.so.16 [0]23172: /home/tyaleze/Desktop/code/server/teoframework/TeoGIS.Framework/TeoFramework/bin/Debug/netcoreapp3.1/runtimes/linux-x64/native/libz.so.1: error: version lookup error: version `ZLIB_1.2.9' not found (required by /usr/lib/x86_64-linux-gnu/libpng16.so.16) (fatal)
23172:
23172: file=/usr/lib/x86_64-linux-gnu/liblibgdiplus.so [0]; destroying link map
23172:
23172: file=/usr/lib/x86_64-linux-gnu/libcairo.so.2 [0]; destroying link map
23172:
23172: file=/usr/lib/x86_64-linux-gnu/libtiff.so.5 [0]; destroying link map
Environment information:
Dotnet Core 3.1
The text was updated successfully, but these errors were encountered: