Search Unity

Bug ARM64 library not included in UWP project

Discussion in 'AR' started by EusebiuMarcu, Oct 8, 2020.

  1. EusebiuMarcu

    EusebiuMarcu

    Joined:
    Sep 20, 2018
    Posts:
    26
    I have an ARM64 native dll which is not found at runtime (DllImport) and it is not included in the Unity Data project (it is present in the nativePlugins.txt). When I build the UWP project I choose ARM64 Architecture and I see the dll in the Plugins folder... The dll is setup only for WSA Player as it's ARM64.
    The strange thing is that the other x86 dlls are included.

    Any ideas?
     
  2. Shaunyowns

    Shaunyowns

    Joined:
    Nov 4, 2019
    Posts:
    328
    Try selecting the DLL in project explorer. That should bring up the meta file editor in the inspector. Review that and make sure the target architectures and platforms are correct, as well as other native libraries. More information can be found in our documentation.
     
    a8986 likes this.
  3. EusebiuMarcu

    EusebiuMarcu

    Joined:
    Sep 20, 2018
    Posts:
    26
    Yes, I made sure that the platform and target architecture are correctly set.
    Apparently, the DLL is copied to Hololens2 but it is not found at runtime. Tried it with both ARM and ARM64...
     
  4. EusebiuMarcu

    EusebiuMarcu

    Joined:
    Sep 20, 2018
    Posts:
    26
    I think it is a dependency issue. I tried viewing the dependencies but they seem fine:
    upload_2020-10-24_9-55-33.png
     
  5. EusebiuMarcu

    EusebiuMarcu

    Joined:
    Sep 20, 2018
    Posts:
    26
    I solved it by compiling the dll on ARM64 (or ARM) with /MT flags.