PTCInc / vuforia-engine

Bug and feedback issue tracker for the Vuforia Engine SDK
https://developer.vuforia.com
20 stars 0 forks source link

Unable to build with Vuforia Samples with UWP #142

Open jqi001 opened 4 months ago

jqi001 commented 4 months ago

[Share which article or sample this is related to] (https://developer.vuforia.com/library/getting-started/getting-started-vuforia-engine-windows-10-development)

Elaborate on your feedback or issue I just followed the article step by step, I installed downloaded Vuforia-sdk-UWP, and vuforia-sample-UWP, and installed them correctly. but when I tried to build it shows error: C:\Projects\AR\UWP\samples\vuforia-sample-10-24-4\UWP\VuforiaSample.vcxproj : warning : The build tools for Visual Studio 2022 (v143) cannot be found. Install Visual Studio 2022 (v143) to build using the Visual Studio 2022 (v143) build tools.

C:\Projects\AR\UWP\samples\vuforia-sample-10-24-4\UWP\VuforiaSample.vcxproj : warning : Platform 'ARM64' referenced in the project file 'VuforiaSample' cannot be found.

C:\Projects\AR\UWP\samples\vuforia-sample-10-24-4\UWP\VuforiaSample.vcxproj : warning : Platform 'x64' referenced in the project file 'VuforiaSample' cannot be found. i tried to install alot of the V143 build tool, but none of them work, i have no idea what's going on and where I did wrong.

I have my own DEMO that works in unity, I just can't build it with UWP. And i am looking alover the place for Tutorial, and didn't find any.

Describe the solution you'd like Would you guys do a detailed Article please? like from Unity end, like: build a Universal windows platform and then install Visual Studio dependce, like what ever Platform 'x64' or other V143 tools we need for the build.

and then finish the build. if you guys can make this a video that will be great.

Describe possible alternatives you've considered or you guys can help me and tell what is need to build UWP?

Additional context image image image image image image

ptc-thesbyro commented 4 months ago

Hi,

Thank you for the feedback.

I believe there are two things to work on. One is improving documentation on how to build Unity projects targeting UWP, and the other is reviewing and updating the Getting Started guide for Windows 10 development and its platform dependencies.

Both tasks may take some time. In the meantime, I will see if I can reproduce your errors and how to fix them.

Thank you,

jqi001 commented 4 months ago

that will be great. I can install a new computer, and video everything from: new unity, new UWP, and copy my project in to the new computer, and make sure everything works inside unity, and then try to build the project? then you can see where is the problem, and maybe tell me how to fix that build?

Because i really want this AR demo to work. do you have time to help me? if I recored and edit the video and send to you.

ptc-thesbyro commented 4 months ago

Hi @jqi001, apologies for not getting back to you sooner.

I have so far not been able to reproduce your issue. Could you try with the native UWP sample that we have? For this, you can download the Vuforia SDK for UWP and then the native sample for UWP and place it in the UWP SDK's Samples folder. A guide for building the sample is available here.

This could tell us if it is the Visual Studio or if there's something happening from your build for UWP in Unity.

Also, please double-check that the Visual Studio Editor package is installed from the Package Manager in Unity.

You're welcome to try on another PC with clean projects and software. If you wish to record it and share it, you can send a download link to vuforia-feedback@ptc.com with the Github issue number in the title.

Hope it helps,

jqi001 commented 4 months ago

thanks for the reply, I will try the rebuild Tomorrow.

jqi001 commented 4 months ago

Hei, @ptc-thesbyro I have tried the build again. img_v3_02cr_bb0b5aa2-4088-46ad-b982-ccd7b5df9a6g img_v3_02cr_4da7d716-db13-4fb4-b215-e0a408aef7fg

here is my setting screen shot.

  1. Error: D:\Projects\Vuforia DEMO\Vuforia UWP\samples\vuforia-sample-10-24-4\UWP\VuforiaSample.vcxproj : warning : The build tools for Visual Studio 2022 (v143) cannot be found. Install Visual Studio 2022 (v143) to build using the Visual Studio 2022 (v143) build tools.

D:\Projects\Vuforia DEMO\Vuforia UWP\samples\vuforia-sample-10-24-4\UWP\VuforiaSample.vcxproj : warning : Platform 'ARM64' referenced in the project file 'VuforiaSample' cannot be found.

D:\Projects\Vuforia DEMO\Vuforia UWP\samples\vuforia-sample-10-24-4\UWP\VuforiaSample.vcxproj : warning : Platform 'x64' referenced in the project file 'VuforiaSample' cannot be found.

error : Designtime build failed for project 'D:\Projects\Vuforia DEMO\Vuforia UWP\samples\vuforia-sample-10-24-4\UWP\VuforiaSample.vcxproj' configuration 'Debug|x64'. IntelliSense might be unavailable. Set environment variable TRACEDESIGNTIME = true and restart Visual Studio to investigate.

2.I didnt find where i can put my key. namespace { constexpr char licenseKey[] = ""; }

3.release error:( and there is no X86 option) error : Designtime build failed for project 'D:\Projects\Vuforia DEMO\Vuforia UWP\samples\vuforia-sample-10-24-4\UWP\VuforiaSample.vcxproj' configuration 'Debug|x64'. IntelliSense might be unavailable. Set environment variable TRACEDESIGNTIME = true and restart Visual Studio to investigate. error : Designtime build failed for project 'D:\Projects\Vuforia DEMO\Vuforia UWP\samples\vuforia-sample-10-24-4\UWP\VuforiaSample.vcxproj' configuration 'Release|x64'. IntelliSense might be unavailable. Set environment variable TRACEDESIGNTIME = true and restart Visual Studio to investigate.

here is the error i have seen.

and i installed windows application development with c++ 141,142,143.

img_v3_02cr_4bdf88b3-2c57-41b2-9510-15d9d84226fg

then the errors are gone, i can build. but i didn't know where to chenge key, so the VuforiaSample couldn't run with out key.

Then, I copy my project to the new computer and build. there is error: DeviceConfiguration/GetDevices Caller = d__7 ConfigurationParser/Constructor: START ConfigurationParser/Constructor/EnumeratePackages: START Reading tools configuration from Visual Studio installation at 'd:\vs2022\software\common7\ide\commonextensions\microsoft\tailoredprojectservices'. GlobalConfigurationFolderPresent = True NumberOfPackagesFound = 24 ConfigurationParser/Constructor/EnumeratePackages/Package Id = f8ce90e1-19bc-472a-b625-9c081fac46df Name = VSGraphics Debugging Package DUIC Architectures = Arm|X86|X64 VisualStudioPackage = False ConfigurationParser/Constructor/EnumeratePackages/Package Id = 44eeed0d-971c-4546-bc24-b6a5cbfae959 Name = GPU Collector Agent Architectures = Arm|X86|X64 VisualStudioPackage = False ConfigurationParser/Constructor/EnumeratePackages/Package Id = 8e61b271-9853-41c9-b845-4d32865c306f Name = App Analysis Collection Agent Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = e0999a8f-0200-4738-ae1e-b45742be6b6b Name = CoreCLR Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = efb65f05-52ca-49fe-9799-0d120b3e8c40 Name = Memory Profiler Collection Agent Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = c99f0de0-95fe-4c64-9d17-efa7574c358b Name = Memory Profiler v2 Collection Agent Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = bff8ef71-b423-4e11-8f4b-9ce1061615a2 Name = Native Memory Profiler Win10 Collection Agent Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = eb22551a-7f66-465f-b53f-e5aba0c0574e Name = msvsmon native Package Architectures = Arm|X86|X64|Arm64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = 62b807e2-6539-46fb-8d67-a73dc9499940 Name = msvsmon managed Package Architectures = Arm|X86|X64|Arm64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = d8b19935-bdbf-4d5b-9619-a6693afd4554 Name = msvsmon script Package Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = f4461251-3ffb-4108-9743-364bb931faf2 Name = Diagnostics Hub Standard Collector Service Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = 98e13d7b-2ac3-4b11-bbeb-758ad8bd607a Name = Diagnostics Hub Collector Bridge Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = 96f1f3e8-f762-4cd2-8ed9-68ec25c2c722 Name = CPU Usage Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = 87c20e3c-a84e-4f56-8bcb-a09a23bfe077 Name = DotNetAlloc Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = efb3ae28-9803-4c1d-939f-035b94af2009 Name = CorProfiler Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = 4ec3701d-0b28-4ae9-8bc4-20e88ce94c81 Name = EventsViewer Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = f1498e2f-1808-4e2a-8c86-b888a59d8446 Name = Database Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = db99fe6f-5272-4638-bf5c-c32fc1527b26 Name = DotNetAsync Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = b8202f68-c106-47e4-a154-c01594600475 Name = DotNetCounters Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = ca2e81b1-5eb3-4dd2-bb00-566fe585cfe1 Name = FileIO Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = cc6587b3-a749-4158-989f-1c3bb2b234f5 Name = Windows10RemoteTools Architectures = Arm|Arm64|X64|X86 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = 9093ee4a-01e5-44ed-9214-0b4d15023fde Name = XAML UI Debugger package Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = b968cc6a-d2c8-4197-88e3-11662042c291 Name = XAML UI Debugger package Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = True ConfigurationParser/Constructor/EnumeratePackages/Package Id = 57e8cc1f-36e5-41b7-972f-80e4f1016bfc Name = XAML UI Debugger dependency Package Architectures = Arm|Arm64|X86|X64 VisualStudioPackage = False ConfigurationParser/Constructor/EnumeratePackages: END (Success, 0:00:00.02) ConfigurationParser/Constructor/EnumerateEmulators: START NumberOfDevicesFound = 0 ConfigurationParser/Constructor/EnumerateEmulators: END (Success, 0:00:00.102) ConfigurationParser/Constructor: END (Success, 0:00:00.13) IsEmulatorSupported: START Is64BitOperatingSystem = True DetectSlat: START isHyperVRunning = False isHardwareVirtualizationSupported = True isHardwareVirtualizationEnabledInBIOS = False DetectSlat: END (Success, 0:00:01.168) SlatState = SlatAndHWVDisabled IsEmulatorSupported = True IsEmulatorSupported: END (Success, 0:00:01.171)

i tried to Ignore the error and build any way. and here is what I get for the build. img_v3_02cr_f4e605c2-d3b7-4901-a510-03f08de28e6g

ptc-emaggio commented 3 months ago

Regarding the license key this article here shows where to add it in Unity https://developer.vuforia.com/library/getting-started/getting-started-vuforia-engine-unity#vuforia-engine-setup