Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
15 Views

Building Windows Store app using RealSense R200 in Unity

Hi,

I'm planning to build a Windows Store/UWP app with RealSense R200 in Unity 5.4, is this supported or is there a timeframe for this?

The app runs in Unity but when trying to build for Windows Store I receive a large number of errors regarding that libpxcclr.unity.dll uses functions that do not exist in the target framework:

Reference Rewriter found some errors while running with command --target="Temp\StagingArea\libpxcclr.unity.dll" --additionalreferences="Temp\StagingArea","C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Facade","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Calls.CallsVoipContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.Printers.PrintersContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Foundation.FoundationContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Foundation.UniversalApiContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Graphics.Printing3D.Printing3DContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Networking.Connectivity.WwanContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Activation.ActivatedEventsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Activation.ActivationCameraSettingsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Activation.ContactActivatedEventsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Activation.WebUISearchActivatedEventsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Background.BackgroundAlarmApplicationContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Calls.Background.CallsBackgroundContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Calls.LockScreenCallContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Resources.Management.ResourceIndexerContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Search.Core.SearchCoreContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Search.SearchContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Wallet.WalletContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.Custom.CustomDeviceContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.Portable.PortableDeviceContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.Printers.Extensions.ExtensionsContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.Scanners.ScannerDeviceContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.Sms.LegacySmsApiContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Gaming.Preview.GamesEnumerationContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Globalization.GlobalizationJapanesePhoneticAnalyzerContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Management.Deployment.Preview.DeploymentPreviewContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Management.Orchestration.OrchestrationContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Management.Workplace.WorkplaceSettingsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Media.Capture.AppCaptureContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Media.Capture.CameraCaptureUIContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Media.Devices.CallControlContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Media.MediaControlContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Media.Playlists.PlaylistsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Media.Protection.ProtectionRenewalContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Networking.NetworkOperators.LegacyNetworkOperatorsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Networking.Sockets.ControlChannelTriggerContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Security.EnterpriseData.EnterpriseDataContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Security.ExchangeActiveSyncProvisioning.EasContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Services.Maps.GuidanceContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Services.Maps.LocalSearchContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.System.Profile.SystemManufacturers.SystemManufacturersContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.System.Profile.ProfileHardwareTokenContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.System.Profile.ProfileRetailInfoContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.System.UserProfile.UserProfileContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.System.UserProfile.UserProfileLockScreenContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.UI.ApplicationSettings.ApplicationsSettingsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.UI.Core.AnimationMetrics.AnimationMetricsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.UI.Core.CoreWindowDialogsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.UI.Xaml.Hosting.HostingContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Web.Http.Diagnostics.HttpDiagnosticsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.DevicesLowLevelContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.System.SystemManagementContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Calls.CallsPhoneContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.SocialInfo.SocialInfoContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.SmartCards.SmartCardBackgroundTriggerContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.SmartCards.SmartCardEmulatorContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Embedded.DeviceLockdown.DeviceLockdownContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Networking.NetworkOperators.NetworkOperatorsFdnContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Phone.PhoneContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Phone.StartScreen.DualSimTileContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.UI.WebUI.Core.WebUICommandBarContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.System.Profile.ProfileSharedModeContract\1.0.0.0" --platform="C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Facade\Windows.winmd" --support="Temp\StagingArea\WinRTLegacy.dll" --supportpartialns=Unity.Partial --system=System --dbg=pdb --lock=UWP\project.lock.json --alt=System.Xml.Serialization;System.Collections,System.Collections.NonGeneric;System.Reflection,System.Reflection.TypeExtensions;System.IO,System.IO.FileSystem;System.Net,System.Net.Primitives;System.Net.Sockets,System.Net.Primitives;System.Xml,System.Xml.XmlDocument --ignore=System.IConvertible,mscorlib.
Error: type `System.Configuration.ApplicationSettingsBase` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at libpxcclr.unity.Properties.unity.Settings.
Error: type `System.Configuration.ApplicationSettingsBase` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void libpxcclr.unity.Properties.unity.Settings::.ctor().
Error: method `System.Void System.Configuration.ApplicationSettingsBase::.ctor()` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void libpxcclr.unity.Properties.unity.Settings::.ctor().
Error: type `System.Configuration.SettingsBase` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void libpxcclr.unity.Properties.unity.Settings::.cctor().
Error: type `System.Configuration.SettingsBase` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void libpxcclr.unity.Properties.unity.Settings::.cctor().
Error: type `System.Configuration.SettingsBase` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void libpxcclr.unity.Properties.unity.Settings::.cctor().
Error: method `System.Configuration.SettingsBase System.Configuration.SettingsBase::Synchronized(System.Configuration.SettingsBase)` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void libpxcclr.unity.Properties.unity.Settings::.cctor().
Error: method `System.Reflection.Assembly System.Reflection.Assembly::GetAssembly(System.Type)` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void PXCMBase::.cctor().
Error: method `System.Type[] System.Reflection.Assembly::GetExportedTypes()` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void PXCMBase::.cctor().
Error: method `System.Reflection.ConstructorInfo[] System.Type::GetConstructors(System.Reflection.BindingFlags)` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void PXCMBase::.cctor().
Error: type `System.Diagnostics.StackFrame` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void PXCMLoggingService::Log(PXCMLoggingService/Level,System.Object).
Error: type `System.Diagnostics.StackTrace` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void PXCMLoggingService::Log(PXCMLoggingService/Level,System.Object).
Error: method `System.Void System.Diagnostics.StackTrace::.ctor(System.Boolean)` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void PXCMLoggingService::Log(PXCMLoggingService/Level,System.Object).
Error: type `System.Diagnostics.StackTrace` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void PXCMLoggingService::Log(PXCMLoggingService/Level,System.Object).
Error: type `System.Diagnostics.StackFrame` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void PXCMLoggingService::Log(PXCMLoggingService/Level,System.Object).
Error: method `System.Diagnostics.StackFrame System.Diagnostics.StackTrace::GetFrame(System.Int32)` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void PXCMLoggingService::Log(PXCMLoggingService/Level,System.Object).
Error: type `System.Diagnostics.StackFrame` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void PXCMLoggingService::Log(PXCMLoggingService/Level,System.Object).
Error: method `System.Reflection.MethodBase System.Diagnostics.StackFrame::GetMethod()` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void PXCMLoggingService::Log(PXCMLoggingService/Level,System.Object).
Error: type `System.Diagnostics.StackFrame` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void PXCMLoggingService::Log(PXCMLoggingService/Level,System.Object).
Error: method `System.String System.Diagnostics.StackFrame::GetFileName()` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void PXCMLoggingService::Log(PXCMLoggingService/Level,System.Object).
Error: type `System.Diagnostics.StackFrame` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void PXCMLoggingService::Log(PXCMLoggingService/Level,System.Object).
Error: method `System.Int32 System.Diagnostics.StackFrame::GetFileLineNumber()` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at System.Void PXCMLoggingService::Log(PXCMLoggingService/Level,System.Object).
Error: type `System.Diagnostics.StackFrame` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at PXCMLoggingService PXCMSession::CreateLogger().
Error: type `System.Diagnostics.StackFrame` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at PXCMLoggingService PXCMSession::CreateLogger().
Error: method `System.Void System.Diagnostics.StackFrame::.ctor(System.Int32)` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at PXCMLoggingService PXCMSession::CreateLogger().
Error: type `System.Diagnostics.StackFrame` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at PXCMLoggingService PXCMSession::CreateLogger().
Error: method `System.Reflection.MethodBase System.Diagnostics.StackFrame::GetMethod()` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at PXCMLoggingService PXCMSession::CreateLogger().
Error: type `System.AppDomain` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at PXCMSession PXCMSession::CreateInstance().
Error: type `System.AppDomain` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at PXCMSession PXCMSession::CreateInstance().
Error: method `System.AppDomain System.AppDomain::get_CurrentDomain()` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at PXCMSession PXCMSession::CreateInstance().
Error: type `System.AppDomain` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at PXCMSession PXCMSession::CreateInstance().
Error: method `System.Reflection.Assembly[] System.AppDomain::GetAssemblies()` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at PXCMSession PXCMSession::CreateInstance().
Error: method `System.String System.Reflection.Assembly::get_Location()` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at PXCMSession PXCMSession::CreateInstance().
Error: type `System.AppDomain` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at PXCMSenseManager PXCMSenseManager::CreateInstance().
Error: type `System.AppDomain` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at PXCMSenseManager PXCMSenseManager::CreateInstance().
Error: method `System.AppDomain System.AppDomain::get_CurrentDomain()` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at PXCMSenseManager PXCMSenseManager::CreateInstance().
Error: type `System.AppDomain` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at PXCMSenseManager PXCMSenseManager::CreateInstance().
Error: method `System.Reflection.Assembly[] System.AppDomain::GetAssemblies()` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at PXCMSenseManager PXCMSenseManager::CreateInstance().
Error: method `System.String System.Reflection.Assembly::get_Location()` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at PXCMSenseManager PXCMSenseManager::CreateInstance().
Error: method `System.Void UnityEngine.AudioClip::SetData(System.Single[],System.Int32)` doesn't exist in target framework. It is referenced from libpxcclr.unity.dll at UnityEngine.AudioClip PXCMSpeechSynthesis::QueryAudioClip(System.String,System.Int32).

UnityEngine.Debug:LogError(Object)
PostProcessWinRT:RunReferenceRewriter() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:608)
PostProcessWinRT:Process() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:126)
UnityEditor.HostView:OnGUI()

 

0 Kudos
1 Reply
Highlighted
Valued Contributor II
15 Views

The standard realsense libraries aren't compatible with WIndows Store/Universal apps. You'll have to use the Universal-specific library (search for "Intel.RealSense.dll" in your program files RSSDK folder). The programming interface has changed almost completely, not all functions are implemented (yet?), and also I don't know if it's compatible with unity.

Good luck!

0 Kudos