URDF-Importer icon indicating copy to clipboard operation
URDF-Importer copied to clipboard

DllNotFoundException: libdl.so, Assimp.Unmanaged

Open Miftahur92 opened this issue 2 years ago • 3 comments

I am facing problem to use the URDF-importer. The following error only when I only use URDF importer.

DllNotFoundException: libdl.so assembly: type: member:(null) Assimp.Unmanaged.UnmanagedLibrary+UnmanagedLinuxLibraryImplementation.NativeLoadLibrary (System.String path) (at :0) Assimp.Unmanaged.UnmanagedLibrary+UnmanagedLibraryImplementation.LoadLibrary (System.String path) (at :0) Assimp.Unmanaged.UnmanagedLibrary.LoadLibrary (System.String libPath) (at :0) Assimp.Unmanaged.UnmanagedLibrary.LoadLibrary () (at :0) Assimp.AssimpUnity.InitializePlugin () (at Library/PackageCache/com.unity.robotics.urdf-importer@90f353e435/Runtime/UnityMeshImporter/Plugins/AssimpNet/AssimpUnity.cs:147)

Environment (please complete the following information, where applicable):

  • Unity 2021.3.25f1
  • Unity machine OS - Ubuntu 22.04
  • ROS2 Humble
  • URDF-importer version - 0.5.2
  • ROS-TCP-connector - 0.7.0
  • Unity Robotics Visualizations - 0.7.0

apt-cache search gave me following results: assimp-testmodels - assimp 3D model import library (testdata) assimp-utils - 3D model import library (utilities) gem-plugin-assimp - Graphics Environment for Multimedia - Assimp support libapache2-authcassimple-perl - Apache2 module to authenticate trough a CAS server libassimp-dev - 3D model import library (development) libassimp-doc - 3D model import library (documentation) libassimp5 - 3D model import library python3-pyassimp - 3D model import library (Python3 bindings) qt3d-assimpsceneimport-plugin - Qt 3D GL Assimp scene import plugin qt6-3d-assimpsceneimport-plugin - Qt 6 3D GL Assimp Scene Import plugin qt6-quick3d-assetimporters-plugin - Qt 6 Quick 3D Assimp Import plugin ros-humble-rviz-assimp-vendor - Wrapper around assimp, providing nothing but a dependency on assimp, on some systems. ros-iron-rviz-assimp-vendor - Wrapper around assimp, providing nothing but a dependency on assimp, on some systems. ros-rolling-rviz-assimp-vendor - Wrapper around assimp, providing nothing but a dependency on assimp, on some systems.

Miftahur92 avatar Jan 29 '24 21:01 Miftahur92

Bro, have u ever found the solution?

WadeNotCode avatar Mar 17 '24 09:03 WadeNotCode

Bro, have u ever found the solution?

Nope. I think the problem is with Ubuntu. I am using the same setup with WSL2, and it is working fine.

Miftahur92 avatar Mar 19 '24 16:03 Miftahur92

Problem is with Assimp library not using libdl.so.2 that is now in newest Debian, Ubuntu, etc. I got tired of the problem and fixed with symbolic linking libdl.so.2 as sudo ln -s /usr/lib/libdl.so.2 /usr/lib/libdl.so. Although is no recommended messing with /usr/lib but really can't be bothered to wait for a fix.

Cryoscopic-E avatar Mar 23 '24 10:03 Cryoscopic-E