OSVR / OSVR-Unity

Package for authoring OSVR experiences with Unity.
Apache License 2.0
99 stars 38 forks source link

Library collision in v1.7 plugin. #146

Open chase-cobb opened 8 years ago

chase-cobb commented 8 years ago

The default metatdata for shared libraries in the plugin folder causes a collision when building for Android. This is because the metadata for all shared libraries in the x86 and x86_64 directories are marked for use on all platforms. They should probably only use the Editor and Standalone options.

Repro steps:

Plugins colliding with each other.

chase-cobb commented 8 years ago

Apologies for the huge image.

lib_metadata

rpavlik commented 8 years ago

Is this something that we'll have to ditch Unity 4 support (or even early 5.x) to fix?

(What was wrong with their tagged directories for the plugin platforms? Those worked perfectly fine... arg...)

DuFF14 commented 8 years ago

This is an easy fix, just checking those boxes for Windows and Android libs. And yes, upgrading to Unity 5 was a prereq, plugins did not have those checkboxes in Unity 4. This replaced the directory structure method of determining the intended platform of plugins, although I think it still uses directory names when upgrading to make a best guess about the bitness.

chase-cobb commented 8 years ago

Yeah library metadata is new. This shouldn't force a move away from 4, and can probably be addressed with an editor script that post processes package imports.

Don't know why they changed it, unless it's to improve scalability with new platforms.

DuFF14 commented 8 years ago

We've already upgraded to 5, so I'll fix this today. edit: forgot that the plugins are imported from Managed-OSVR and Android SDK in CI, not in the repo, so this would require a script as @chass-cobb suggested.

chase-cobb commented 8 years ago

Does this mean that Unity 4 is no longer supported? If so, the plugin description on the Asset store should also be changed (this may need a separate ticket).

Snippet from the plugin description:

OSVR Plugin for Unity is compatible with Unity 4 and 5 Free and Pro versions (image distortion is disabled in Unity 4 Free version).