LordBenjamin / LordBenjamin/FreeImage.Standard
Unable to load lib dependencies on linux container
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 14
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm trying to use the lib from a container app ( .NET 7 ) on Azure ( running on a linux container ) and I get this error.
---> System.DllNotFoundException: Unable to load shared library 'FreeImage' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
libjxrglue.so.0: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/FreeImage.so: cannot open shared object file: No such file or directory
/app/libFreeImage.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/libFreeImage.so: cannot open shared object file: No such file or directory
/app/FreeImage: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/FreeImage: cannot open shared object file: No such file or directory
/app/libFreeImage: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/libFreeImage: cannot open shared object file: No such file or directory
at FreeImageAPI.FreeImage.CloseMultiBitmap_(FIMULTIBITMAP bitmap, FREE_IMAGE_SAVE_FLAGS flags)
at FreeImageAPI.FreeImage.CloseMultiBitmap(FIMULTIBITMAP bitmap, FREE_IMAGE_SAVE_FLAGS flags)
Looks like libjxrglue.so.0 lib is not found, this seems to be a FreeImage native lib dependency.
Can you help me? Am I missing something?
I also realized that latest apt-get package for freeimage 3.18.0 has changed some dependency versions, might it be the problem?
Thanks and best regards
POFerro
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported .NET 7 Azure Linux-container failure and inspect how FreeImage native dependencies are packaged and loaded, especially libjxrglue.so.0 and the FreeImage 3.18.0 apt package. Done means the library loads successfully in that container without DllNotFoundException; the report names no source file or test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- infrastructure, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100