asus4 / ARKitStreamer

AR Foundation Remote Debugging Tool for Unity
Other
189 stars 26 forks source link

Preprocessor Issue when compiling the streamer APP for iOS (Unity 2019.3.4) #7

Closed klauskobald closed 3 years ago

klauskobald commented 4 years ago

'Processing.NDI.Lib.h' file not found PluginEntry.cpp on line 2 #include

asus4 commented 4 years ago

Did you install the NDI SDK? https://ndi.tv/sdk/

asus4 commented 4 years ago

Occurred the following error while building the iOS Xcode project. It needs to be fixed on the depending library KlakNDI or manually adding the NDI-SDK to the search path on Xcode.

Exception: Calling TargetGuidByName with name='Unity-iPhone' is deprecated. There are two targets now, call GetUnityMainTargetGuid() - for app or GetUnityFrameworkTargetGuid() - for source/plugins to get Guid instead.
UnityEditor.iOS.Xcode.PBXProject.TargetGuidByName (System.String name) (at /Users/builduser/buildslave/unity/build/External/XcodeAPI/Xcode/PBXProject.cs:168)
Klak.NdiLite.PbxModifier.OnPostprocessBuild (UnityEditor.BuildTarget buildTarget, System.String path) (at Library/PackageCache/jp.keijiro.klak.ndi@0.2.4/Editor/PbxModifier.cs:26)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <437ba245d8404784b9fbab9b439ac908>:0)
UnityEditor.Build.BuildPipelineInterfaces+AttributeCallbackWrapper.OnPostprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:177)
UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass17_0.<OnBuildPostProcess>b__1 (UnityEditor.Build.IPostprocessBuildWithReport bpp) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:433)
UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List`1[T] oneInterfaces, System.Action`1[T] invocationOne, System.Collections.Generic.List`1[T] twoInterfaces, System.Action`1[T] invocationTwo, System.Boolean exitOnFailure) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:391)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)
asus4 commented 4 years ago

Please apply the following changes until PR is merged. https://github.com/keijiro/KlakNDI/pull/58/files

QuestionsBrown commented 4 years ago

I've added the correct changes like you stated but I am still receiving the same compile error. Please could you help me out on adding the NDI SDK manually step by step please! Thanks alot for helping my AR workflow out with this!

asus4 commented 3 years ago

The error has been fixed in KlakNDI