EnoxSoftware / HoloLensWithOpenCVForUnityExample

HoloLens With OpenCVforUnity Example (Support for Hololens1 and Hololens2)
MIT License
262 stars 50 forks source link

Error when building for Holo Lens 1 (x86) #35

Closed simonjanik closed 3 years ago

simonjanik commented 3 years ago

The example runs fine in the editor (Unity 2019.4.17f1, also 2018.4.28f1), but when I build, I get the following error:

ArgumentException: The Assembly UnityEditor is referenced by OpenCVForUnityCSharpDLL ('Assets/OpenCVForUnity/org/OpenCVForUnityCSharpDLL.dll'). But the dll is not allowed to be included or could not be found. UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at <2f1c602eae0d45c293fff3e3aef759fa>:0) UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at <2f1c602eae0d45c293fff3e3aef759fa>:0) UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at <2f1c602eae0d45c293fff3e3aef759fa>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

error

I tried to build the "HoloLensArUcoExample" scene of your example. Also an empty scene could not be build because of the same error.

What am I missing?

EnoxSoftware commented 3 years ago

The TrialVersion of OpenCVForUnity works only with UnityEditor on Windows and mac platforms. https://enoxsoftware.com/opencvforunity/get_asset/

vikashsingh009 commented 2 years ago

I am also facing same issues with
trial OpenCvUnity on window 10 and getting same error image