Search Unity

soname library native plugins are not copied in Player build

Discussion in 'Linux' started by pzyskowski-rai, Jul 14, 2021.

  1. pzyskowski-rai

    pzyskowski-rai

    Joined:
    Jul 2, 2021
    Posts:
    1
    Hello,

    We expect that libraries from <project_dir>/Assets/Plugins/Linux/<arch>/ would be copied to <app_name>_Data/Plugins during application build. However only libraries ending with *.so are correctly copied. Libraries having soname structure eg. libtinyxml2.so.6 are not copied, which lead to linking errors.

    It seems that Unity Editor does not mark soname libraries as plugins at all. For example their *.meta files do not have "PluginImporter:" tag inside them which is present in *.so.meta files

    There are some possible solutions such as copy those files by hand, script or using solution similar to this: https://docs.unity3d.com/Manual/BuildPlayerPipeline.html however those are workarounds.

    It seems that Unity should support soname libraries since they are common in Linux environment.

    We are currently using Unity 2021.1.7f1
     
    AdamDabrowski likes this.
  2. mark128

    mark128

    Joined:
    Aug 15, 2017
    Posts:
    7