Skip to content
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

Referenced nuget package AssimpNet on Linux looks for libdl.so instead of libdl.so.2 #105

Open
jskripsky opened this issue Aug 26, 2024 · 2 comments

Comments

@jskripsky
Copy link

On modern Linux distros, the dynamic loading of libraries is handled by /usr/lib64/libdl.so.2. AssimpNet, the .NET wrapper for AssImp, is rather old and still has the binary's name "libdl.so" hardcoded (see here).

This leads to the following exception at start-up:

System.DllNotFoundException: Unable to load shared library 'libdl.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibdl.so: cannot open shared object file: No such file or directory

To work around the problem, just create a new symlink libdb.so pointing to libdb.so.2 as suggested here:
https://unix.stackexchange.com/questions/700097/unable-to-load-shared-library-libdl-so-or-one-of-its-dependencies

@jskripsky jskripsky changed the title Used nuget package AssimpNet on Linux looks for libdl.so instead of libdl.so.2 Referenced nuget package AssimpNet on Linux looks for libdl.so instead of libdl.so.2 Aug 26, 2024
@hyazinthh
Copy link
Member

It seems like I broke this when I renamed Aardvark.SceneGraph.IO to Aardvark.SceneGraph.Assimp but forgot to move this file: https://github.com/aardvark-platform/aardvark.rendering/blob/master/lib/Native/Aardvark.SceneGraph.IO/remap.xml

hyazinthh added a commit that referenced this issue Aug 27, 2024
hyazinthh added a commit that referenced this issue Aug 27, 2024
@hyazinthh
Copy link
Member

I fixed this in the master branch but if you're using old Aardvark.Rendering packages (>= 5.2 and < 5.5) this was not the cause of your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@jskripsky @hyazinthh and others