microsoft / MixedReality-SpectatorView

Mixed reality spectator experiences
MIT License
193 stars 113 forks source link

Trouble building the Microsoft.MixedReality.SpectatorView Unity package -vcpkg was unable to detect the active compiler's information/ tiff:x86-uwp failed #455

Open mrcfschr opened 2 years ago

mrcfschr commented 2 years ago

I'm trying to build the SpectatorView Unity package to share it with my team to integrate it into an existing Unity project using an android phone as a spectator and a HoloLens 2 host (marker-based coordinate synchronization). Does anyone have an idea how to solve this error : "Error: vcpkg was unable to detect the active compiler's information." ? Seems to be due to issues with building open CV x86. I attached logs below. Thank you! Setup to replicate

Installed Version: Enterprise

Visual C++ 2019 00435-60000-00000-AA851 Microsoft Visual C++ 2019

ADL Tools Service Provider 1.0 This package contains services used by Data Lake tools

ASA Service Provider 1.0

ASP.NET and Web Tools 2019 16.10.526.50910 ASP.NET and Web Tools 2019

ASP.NET Web Frameworks and Tools 2019 16.10.526.50910 For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0 16.10.526.50910 Azure App Service Tools v3.0.0

Azure Data Lake Node 1.0 This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio 2.6.1000.0 Microsoft Azure Data Lake Tools for Visual Studio

Azure Functions and Web Jobs Tools 16.10.526.50910 Azure Functions and Web Jobs Tools

Azure Stream Analytics Tools for Visual Studio 2.6.1000.0 Microsoft Azure Stream Analytics Tools for Visual Studio

C# Tools 3.10.0-4.21329.37+246ce641f04b67ef017655275d850bf902a8e40f C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools 1.10 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Fabric.DiagnosticEvents 1.0 Fabric Diagnostic Events

IntelliCode Extension 1.0 IntelliCode Visual Studio Extension Detailed Info

Microsoft Azure HDInsight Azure Node 2.6.1000.0 HDInsight Node under Azure Node

Microsoft Azure Hive Query Language Service 2.6.1000.0 Language service for Hive query

Microsoft Azure Service Fabric Tools for Visual Studio 16.10 Microsoft Azure Service Fabric Tools for Visual Studio

Microsoft Azure Stream Analytics Language Service 2.6.1000.0 Language service for Azure Stream Analytics

Microsoft Azure Stream Analytics Node 1.0 Azure Stream Analytics Node under Azure Node

Microsoft Azure Tools 2.9 Microsoft Azure Tools for Microsoft Visual Studio 2019 - v2.9.40423.1

Microsoft Continuous Delivery Tools for Visual Studio 0.4 Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.

Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft Library Manager 2.1.113+g422d40002e.RR Install client-side libraries easily to any web project

Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards 1.0 Microsoft Visual C++ Wizards

Microsoft Visual Studio Tools for Containers 1.2 Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

Microsoft Visual Studio VC Package 1.0 Microsoft Visual Studio VC Package

NuGet Package Manager 5.10.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

ProjectServicesPackage Extension 1.0 ProjectServicesPackage Visual Studio Extension Detailed Info

Razor (ASP.NET Core) 16.1.0.2122504+13c05c96ea6bdbe550bd88b0bf6cdddf8cde1725 Provides languages services for ASP.NET Core Razor.

Snapshot Debugging Extension 1.0 Snapshot Debugging Visual Studio Extension Detailed Info

SQL Server Data Tools 16.0.62106.24090 Microsoft SQL Server Data Tools

Test Adapter for Boost.Test 1.0 Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test 1.0 Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.

ToolWindowHostedEditor 1.0 Hosting json editor into a tool window

TypeScript Tools 16.0.30429.2002 TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 3.10.0-4.21329.37+246ce641f04b67ef017655275d850bf902a8e40f Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual C++ for Cross Platform Mobile Development (Android) 16.0.31306.167 Visual C++ for Cross Platform Mobile Development (Android)

Visual F# Tools 16.10.0-beta.21262.7+1b23bbeda88ea3cb9be9af777f4c99fa8663df81 Microsoft Visual F# Tools

Visual Studio Code Debug Adapter Host Package 1.0 Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Container Tools Extensions 1.0 View, manage, and diagnose containers within Visual Studio.

Visual Studio Tools for CMake 1.0 Visual Studio Tools for CMake

Visual Studio Tools for Containers 1.0 Visual Studio Tools for Containers

Visual Studio Tools for Kubernetes 1.0 Visual Studio Tools for Kubernetes

Visual Studio Tools for Unity 4.10.3.0 Visual Studio Tools for Unity

Reproduction steps

Error Error: vcpkg was unable to detect the active compiler's information. See above for the CMake failure output. Found install directory for x64 OpenCV windows, skipping build

OpenCV Build Completed: x86 Dependencies Succeeded: True x86 UWP OpenCV Succeeded: False x64 Desktop OpenCV Succeeded: True

OpenCV Build Succeeded: False

Native Project Setup Suceeded: False

SpectatorView.Native Build Results: Setup Succeeded: False x86 Build Succeeded: False x64 Build Succeeded: False ARM Build Succeeded: False ARM64 Build Succeeded: False Copy Native Plugins Succeeded: False

Included Compositor Components: Blackmagic Decklink: False Elgato: True Azure Kinect SDK: False Azure Kinect Body Tracking SDK: True

Build Succeeded: False

Full CMD Log Setting up the repository... Enabling symbolic links for the repository. Configuring the repository to use crlf line endings. Updating spectator view related submodules. Synchronizing submodule url for '../../external/Azure-Spatial-Anchors-Samples' Synchronizing submodule url for '../../external/MixedRealityToolkit-Unity' Synchronizing submodule url for '../../external/gamecapture' Synchronizing submodule url for '../../external/vcpkg' Submodule path '../../external/vcpkg': checked out '2f7a104d4d6f1f3790db929f85a4086aa6973d7f' Fixing symbolic links for the following directory: C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\tools\Scripts\..\..\src\SpectatorView.Unity\ Fixing symbolic links for the following directory: C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\tools\Scripts\..\..\samples\Build2019Demo.Unity\ Downloading QRCode Dependencies for HoloLens Directory: C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\MixedReality-QRCodePlugin Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 7/28/2021 8:07 PM UnityFiles Directory: C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\MixedReality-QRCodePlugin\UnityFiles\Microsoft.MixedReality.QR.0.5.2100 Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 7/28/2021 8:07 PM Unity Directory: C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\MixedReality-QRCodePlugin\UnityFiles\Microsoft.MixedReality.QR.0.5.2100\lib Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 7/28/2021 8:07 PM net46 Directory: C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\MixedReality-QRCodePlugin\UnityFiles\Microsoft.VCRTForwarders.140.1.0.5 Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 7/28/2021 8:07 PM Unity Removing c# files that break in Unity packages for QRCode Dependencies in directory C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\tools\Scripts\..\..\external\MixedReality-QRCodePlugin\\UnityFiles\\*.cs* WARNING: Blackmagic decklink resources weren't found at C:\Blackmagic DeckLink SDK 10.9.11\Win\include, Blackmagic decklink dependencies won't resolve. If you have the SDK installed, update the path specified in src\SpectatorView.Native\SpectatorView.Compositor\dependencies.props. WARNING: Azure Kinect SDK wasn't found at C:\Program Files\Azure Kinect SDK v1.3.0, Azure Kinect dependencies won't resolve. If you have the SDK installed, update the path specified in src\SpectatorView.Native\SpectatorView.Compositor\dependencies.props. Setting up external dependencies Succeeded: True Setting up elgato dependencies Adding submodule:https://github.com/elgatosf/gamecapture.git at external\gamecapture Already up to date. Adding elgato dependencies succeeded: True Preparing vcpkg Downloading https://github.com/microsoft/vcpkg-tool/releases/download/2021-07-26/vcpkg.exe -> C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\vcpkg.exe Done. Telemetry --------- vcpkg collects usage data in order to help us improve your experience. The data collected by Microsoft is anonymous. You can opt-out of telemetry by re-running the bootstrap-vcpkg script with -disableMetrics, passing --disable-metrics to vcpkg on the command line, or by setting the VCPKG_DISABLE_METRICS environment variable. Read more about vcpkg telemetry at docs/about/privacy.md Setting vcpkg installs to be available to MSBuild Applied user-wide integration for this vcpkg root. All MSBuild C++ projects can now #include any installed libraries. Linking will be handled automatically. Installing new libraries will make them instantly available. CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg/scripts/buildsystems/vcpkg.cmake" Updating vcpkg Using local portfile versions. To update the local portfiles, use `git pull`. No packages need updating. Upgrading vcpkg All installed packages are up-to-date with the local portfiles. Found install directory for x86 protobuf windows, skipping build Building OpenCV x86 UWP Computing installation plan... The following packages will be built and installed: * libjpeg-turbo[core]:x86-uwp -> 2.0.6 * liblzma[core]:x86-uwp -> 5.2.5#3 * libpng[core]:x86-uwp -> 1.6.37#15 * libwebp[core,nearlossless,simd,unicode]:x86-uwp -> 1.1.0#3 opencv[contrib,core,dnn,jpeg,png,quirc,tiff,webp]:x86-uwp -> 4.5.2 * opencv4[contrib,core,dnn,jpeg,png,quirc,tiff,webp]:x86-uwp -> 4.5.2 * protobuf[core]:x86-uwp -> 3.15.8#3 * quirc[core]:x86-uwp -> 1.1#2 * tiff[core,jpeg,lzma,zip]:x86-uwp -> 4.3.0#1 * zlib[core]:x86-uwp -> 1.2.11#11 Additional packages (*) will be modified to complete this operation. Detecting compiler hash for triplet x86-uwp... Error: while detecting compiler information: The log content at C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\stdout-x86-uwp.log is: -- Found external ninja('1.10.2'). -- Configuring x86-uwp CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message): Command failed: ninja -v Working Directory: C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg/buildtrees/detect_compiler/x86-uwp-rel/vcpkg-parallel-configure Error code: 1 See logs for more information: C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\config-x86-uwp-out.log Call Stack (most recent call first): scripts/cmake/vcpkg_configure_cmake.cmake:340 (vcpkg_execute_required_process) scripts/detect_compiler/portfile.cmake:18 (vcpkg_configure_cmake) scripts/ports.cmake:141 (include) Error: vcpkg was unable to detect the active compiler's information. See above for the CMake failure output. Found install directory for x64 OpenCV windows, skipping build OpenCV Build Completed: x86 Dependencies Succeeded: True x86 UWP OpenCV Succeeded: False x64 Desktop OpenCV Succeeded: True OpenCV Build Succeeded: False Native Project Setup Suceeded: False SpectatorView.Native Build Results: Setup Succeeded: False x86 Build Succeeded: False x64 Build Succeeded: False ARM Build Succeeded: False ARM64 Build Succeeded: False Copy Native Plugins Succeeded: False Included Compositor Components: Blackmagic Decklink: False Elgato: True Azure Kinect SDK: False Azure Kinect Body Tracking SDK: True Build Succeeded: False Creating package com.microsoft.mixedreality.spectatorview.1.2.0 C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\tools\Scripts\..\..\packages\com.microsoft.mixedreality.spectatorview.1.2.0 Removing preexisting directory: C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\tools\Scripts\..\..\packages\com.microsoft.mixedreality.spectatorview.1.2.0 Directory: C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\packages Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 7/28/2021 8:18 PM com.microsoft.mixedreality.spectatorview.1.2.0 Created package: packages\com.microsoft.mixedreality.spectatorview.1.2.0
Error details Log [1/1] cmd /c "cd .. && "C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg/downloads/tools/cmake-3.20.2-windows/cmake-3.20.2-windows-i386/bin/cmake.exe" "C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg/scripts/detect_compiler" "-DCMAKE_SYSTEM_NAME=WindowsStore" "-DCMAKE_SYSTEM_VERSION=10.0" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x86-uwp" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v142" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x86" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-AWin32" "-G" "Visual Studio 16 2019" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg/packages/detect_compiler_x86-uwp"" FAILED: ../CMakeCache.txt cmd /c "cd .. && "C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg/downloads/tools/cmake-3.20.2-windows/cmake-3.20.2-windows-i386/bin/cmake.exe" "C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg/scripts/detect_compiler" "-DCMAKE_SYSTEM_NAME=WindowsStore" "-DCMAKE_SYSTEM_VERSION=10.0" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x86-uwp" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v142" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x86" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-AWin32" "-G" "Visual Studio 16 2019" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg/packages/detect_compiler_x86-uwp"" -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0. -- The C compiler identification is MSVC 19.29.30040.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x86/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x86/cl.exe - broken CMake Error at C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg/downloads/tools/cmake-3.20.2-windows/cmake-3.20.2-windows-i386/share/cmake-3.20/Modules/CMakeTestCCompiler.cmake:66 (message): The C compiler "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x86/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg/buildtrees/detect_compiler/x86-uwp-rel/CMakeFiles/CMakeTmp Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/MSBuild/Current/Bin/MSBuild.exe cmTC_bf89c.vcxproj /p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.10.2+857e5a733 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved. testCCompiler.c LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification [C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\cmTC_bf89c.vcxproj] cmTC_bf89c.vcxproj -> C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\Debug\cmTC_bf89c.exe C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(2698,5): warning : Publisher name (CN=CMake) does not match signing certificate subject: CN=CMake Test Cert. Updating Publisher name. [C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\cmTC_bf89c.vcxproj] cmTC_bf89c -> C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\cmTC_bf89c_1.0.0.0_Win32_Debug.msix cmTC_bf89c -> cmTC_bf89c.dir\Debug\Symbols\cmTC_bf89c_1.0.0.0_Win32_Debug.appxsym C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(3748,5): warning MSB3026: Could not copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.VisualStudio.Utilities.Internal.dll" to "C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll". Beginning retry 1 in 1000ms. Could not find a part of the path 'C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll'. [C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\cmTC_bf89c.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(3748,5): warning MSB3026: Could not copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.VisualStudio.Utilities.Internal.dll" to "C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll". Beginning retry 2 in 1000ms. Could not find a part of the path 'C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll'. [C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\cmTC_bf89c.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(3748,5): warning MSB3026: Could not copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.VisualStudio.Utilities.Internal.dll" to "C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll". Beginning retry 3 in 1000ms. Could not find a part of the path 'C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll'. [C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\cmTC_bf89c.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(3748,5): warning MSB3026: Could not copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.VisualStudio.Utilities.Internal.dll" to "C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll". Beginning retry 4 in 1000ms. Could not find a part of the path 'C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll'. [C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\cmTC_bf89c.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(3748,5): warning MSB3026: Could not copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.VisualStudio.Utilities.Internal.dll" to "C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll". Beginning retry 5 in 1000ms. Could not find a part of the path 'C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll'. [C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\cmTC_bf89c.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(3748,5): warning MSB3026: Could not copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.VisualStudio.Utilities.Internal.dll" to "C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll". Beginning retry 6 in 1000ms. Could not find a part of the path 'C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll'. [C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\cmTC_bf89c.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(3748,5): warning MSB3026: Could not copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.VisualStudio.Utilities.Internal.dll" to "C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll". Beginning retry 7 in 1000ms. Could not find a part of the path 'C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll'. [C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\cmTC_bf89c.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(3748,5): warning MSB3026: Could not copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.VisualStudio.Utilities.Internal.dll" to "C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll". Beginning retry 8 in 1000ms. Could not find a part of the path 'C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll'. [C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\cmTC_bf89c.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(3748,5): warning MSB3026: Could not copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.VisualStudio.Utilities.Internal.dll" to "C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll". Beginning retry 9 in 1000ms. Could not find a part of the path 'C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll'. [C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\cmTC_bf89c.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(3748,5): warning MSB3026: Could not copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.VisualStudio.Utilities.Internal.dll" to "C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll". Beginning retry 10 in 1000ms. Could not find a part of the path 'C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll'. [C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\cmTC_bf89c.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(3748,5): error MSB3027: Could not copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.VisualStudio.Utilities.Internal.dll" to "C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll". Exceeded retry count of 10. Failed. [C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\cmTC_bf89c.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(3748,5): error MSB3021: Unable to copy file "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.VisualStudio.Utilities.Internal.dll" to "C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll". Could not find a part of the path 'C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\AppPackages\cmTC_bf89c\cmTC_bf89c_1.0.0.0_Win32_Debug_Test\TelemetryDependencies\Microsoft.VisualStudio.Utilities.Internal.dll'. [C:\Users\dpfca\Documents\project\MixedReality-SpectatorView\external\vcpkg\buildtrees\detect_compiler\x86-uwp-rel\CMakeFiles\CMakeTmp\cmTC_bf89c.vcxproj] CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:11 (enable_language) -- Configuring incomplete, errors occurred! See also "C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg/buildtrees/detect_compiler/x86-uwp-rel/CMakeFiles/CMakeOutput.log". See also "C:/Users/dpfca/Documents/project/MixedReality-SpectatorView/external/vcpkg/buildtrees/detect_compiler/x86-uwp-rel/CMakeFiles/CMakeError.log". ninja: build stopped: subcommand failed.

Building the dlls that I actually need separately as described in https://microsoft.github.io/MixedReality-SpectatorView/src/SpectatorView.Native/README.html leads to the following error after running
`vcpkg install opencv[contrib]:x86-uwp --recurse:`
open cv x86 error -- Building x86-uwp-dbg CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:155 (message): Command failed: C:/vcpkg/downloads/tools/cmake-3.20.2-windows/cmake-3.20.2-windows-i386/bin/cmake.exe --build . --config Debug --target install -- /p:VCPkgLocalAppDataDisabled=true /p:UseIntelMKL=No /m Working Directory: C:/vcpkg/buildtrees/tiff/x86-uwp-dbg See logs for more information: C:\vcpkg\buildtrees\tiff\install-x86-uwp-dbg-out.log Call Stack (most recent call first): installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:102 (vcpkg_execute_build_process) installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:41 (vcpkg_cmake_build) ports/tiff/portfile.cmake:59 (vcpkg_cmake_install) scripts/ports.cmake:141 (include) Error: Building package tiff:x86-uwp failed with: BUILD_FAILED
Maybe it has to with the bug in the upstream TIFF repo where they use CreateFileA and CreateFileW which are not supported for UWP? for full failure log see: https://github.com/microsoft/vcpkg/issues/18449 Solution: I guess I'll just use spatial anchors instead of an aruco marker to synchronize the coordinate spaces of HL2 and the phone. Then I don't need to build open CV and this repo (Sample Build 2019 Demo) should work as it is? Problem: The phone I have with me right now doesn't have AR Core so I tried it with two HL2s for now: Nothing shows up when I deploy the HoloLens.Spectator Scene and main scene following the documentation provided here https://github.com/microsoft/MixedReality-SpectatorView/blob/master/doc/SpectatorView.Setup.md, will post another issue
yy4844613 commented 2 years ago

have u fixed this issue?I get the same.

genereddick commented 2 years ago

I also

ApocalypseMike commented 2 years ago

Same problem here

ShumWengSang commented 2 years ago

I managed to solve this by patching the local version of the tiff file by following these steps

https://vcpkg.readthedocs.io/en/latest/examples/patching/

Instead of using CreateFileA or CreateFileW, I use CreateFile2

#if (_WIN32_WINNT >= _WIN32_WINNT_WIN8)
     fd = (thandle_t)CreateFile2(name,
                 (m == O_RDONLY)?GENERIC_READ:(GENERIC_READ | GENERIC_WRITE),
                 FILE_SHARE_READ | FILE_SHARE_WRITE,
                 dwMode,
                 NULL);
#else
    fd = (thandle_t)CreateFileW(name,
        (m == O_RDONLY)?GENERIC_READ:(GENERIC_READ|GENERIC_WRITE),
        FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, dwMode,
        (m == O_RDONLY)?FILE_ATTRIBUTE_READONLY:FILE_ATTRIBUTE_NORMAL,
        NULL);
#endif
ChristopherRemde commented 2 years ago

Thank you so much ShumWengSang, this fixed the error for me!

ChristopherRemde commented 2 years ago

I wrote a bit more detailed guide on how to fix this issue here: #464