microsoft / MixedRealityCompanionKit

This is a MixedRealityToolkit style repository for code bits and components that may not run directly on Microsoft HoloLens or immersive headsets but instead pair with them to build experiences.
MIT License
595 stars 288 forks source link

Unable to build MixedRealityViewCompositor dll from source using VS2017 or VS2015 #195

Open michaeldboyd opened 7 years ago

michaeldboyd commented 7 years ago

I am trying to rebuild the dll's for the MRVC from the source C++ files, but I've run into a couple of problems. I'm not sure if the error exists within the source files, or between the chair and keyboard (most likely)

I opened the MixedRemoteViewCompositer.sln in VS2017, and tried to build the files based on the readme instructions. Here is the error that I get: 2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt\corecrt.h(10): fatal error C1083: Cannot open include file: 'vcruntime.h': No such file or directory 2>Done building project "Win32.vcxproj" -- FAILED. 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt\corecrt.h(10): fatal error C1083: Cannot open include file: 'vcruntime.h': No such file or directory 1>Done building project "WSA.vcxproj" -- FAILED. ========== Rebuild All: 0 succeeded, 2 failed, 0 skipped ==========

Has anyone run into this problem, or have any ideas on how to successfully build these DLLs?

I would like to use the MRVC as a jumping off point to send a live video feed from the hololens to a desktop application I'm building.

GennadyK commented 7 years ago

Looks like you are missing some VC tools: c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\vcruntime.h

Here is what I have installed (run Visual Studio Installer to see):

Summary Visual Studio core editor The Visual Studio core shell experience, including syntax-aware code editing, source code control and work item management.

Universal Windows Platform development Included Blend for Visual Studio .NET Native NuGet package manager Universal Windows Platform tools Windows 10 SDK (10.0.15063.0) for UWP: C#, VB, JS

Optional
C++ Universal Windows Platform tools
Graphics debugger and GPU profiler for DirectX

Desktop development with C++ Included Visual C++ core desktop features

Optional
VC++ 2017 v141 toolset (x86,x64)
C++ profiling tools
Windows 10 SDK (10.0.15063.0) for Desktop C++ x86 and x64
Visual C++ tools for CMake
Visual C++ ATL support

Game development with Unity Included Visual Studio Tools for Unity C# and Visual Basic

Individual components Static analysis tools Windows 10 SDK (10.0.15063.0) for UWP: C#, VB, JS Visual Studio C++ core features Visual C++ compilers and libraries for ARM VC++ 2017 v141 toolset (x86,x64) Visual C++ runtime for UWP Windows 10 SDK (10.0.15063.0) for UWP: C++

sytelus commented 6 years ago

Got this error, here my answer on SO: https://stackoverflow.com/a/51219000/207661