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

Current version of assimp does not work on Ubuntu 22.04 LTS

Open robin-moss opened this issue 3 years ago • 0 comments

Describe the bug When attempting to use AssimpNet on ubuntu 22.04 LTS it fails to find libdl.so as the name has changed to libdl.so.2

AssimpNet has been updated to resolve this issue, so it would be appreciated if you could update the embedded assimpNet version.

https://bitbucket.org/Starnick/assimpnet/pull-requests/5/improve-platform-compatibility-recent

To Reproduce Steps to reproduce the behavior:

  1. Run Unity Editor on Ubuntu 22.04 LTS
  2. Try and use URDF importer that uses the mesh importer
  3. Get DllNotFound error for libdl

Console logs / stack traces

2022-09-23 10:06:32,276 FATAL Ocado.RoboSim.Setup.RoboSim - Exception caught during initialisation of RoboSim
System.DllNotFoundException: libdl.so assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Assimp.Unmanaged.UnmanagedLibrary+UnmanagedLinuxLibraryImplementation.dlopen(string,int)
  at Assimp.Unmanaged.UnmanagedLibrary+UnmanagedLinuxLibraryImplementation.NativeLoadLibrary (System.String path) [0x00000] in <d40f2b0ad6814d4c8094142d8473733f>:0 
  at Assimp.Unmanaged.UnmanagedLibrary+UnmanagedLibraryImplementation.LoadLibrary (System.String path) [0x00008] in <d40f2b0ad6814d4c8094142d8473733f>:0 
  at Assimp.Unmanaged.UnmanagedLibrary.LoadLibrary (System.String libPath) [0x0002d] in <d40f2b0ad6814d4c8094142d8473733f>:0 
  at Assimp.Unmanaged.UnmanagedLibrary.LoadLibrary () [0x00012] in <d40f2b0ad6814d4c8094142d8473733f>:0 
  at Assimp.Unmanaged.UnmanagedLibrary.LoadIfNotLoaded () [0x00023] in <d40f2b0ad6814d4c8094142d8473733f>:0 
  at Assimp.Unmanaged.AssimpLibrary.CreatePropertyStore () [0x00000] in <d40f2b0ad6814d4c8094142d8473733f>:0 
  at Assimp.AssimpContext.CreateConfigs () [0x00006] in <d40f2b0ad6814d4c8094142d8473733f>:0 
  at Assimp.AssimpContext.PrepareImport () [0x00000] in <d40f2b0ad6814d4c8094142d8473733f>:0 
  at Assimp.AssimpContext.ImportFile (System.String file, Assimp.PostProcessSteps postProcessFlags) [0x00044] in <d40f2b0ad6814d4c8094142d8473733f>:0 
  at Assimp.AssimpContext.ImportFile (System.String file) [0x00000] in <d40f2b0ad6814d4c8094142d8473733f>:0 

Expected behaviour

It finds the libdl :)

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

  • Unity Version: Unity 2021.3.10f1
  • Unity machine OS + version: Ubuntu 22.04 LTS
  • ROS machine OS + version: N/A
  • ROS–Unity communication: N/A
  • Branch or version: 0.5.2-preview

Additional context

None

robin-moss avatar Sep 23 '22 09:09 robin-moss