Skip to content

Unable to load lib dependencies on linux container #26

@POFerro

Description

@POFerro

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions