Unity-Technologies / URDF-Importer

URDF importer
Apache License 2.0
232 stars 71 forks source link

Current version of assimp does not work on Ubuntu 22.04 LTS #209

Open robin-moss opened 2 years ago

robin-moss commented 2 years ago

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):

Additional context

None