Closed aniongithub closed 9 years ago
Hi, @ananthonline, what are Visual Studio and OS versions you are using?
Thanks for the quick reply. I'm using
Visual Studio 2015 RC Version 14.0.22823.1 D14REL Windows 10 Pro Insider Preview Build 10074
Cannot reproduce on clean installation of Windows 10 Pro Insider Preview Build 10074 with the same VS2015 RC version (Community edition). Could you please provide more details. E.g. solutions from what folder are you trying to build and what configurations use (x86/x64, Debug/Release; However I've checked all these combinations for solutions from bin_VS2015_RC folder on my Windows 10 VM), if VS2015 has proper value of OCV2015_ROOT in its macros?
Here are more details
I'm building bin_VS2015_RC\WS\10.0\x64\OpenCV.sln, and yes, OCV2015_ROOT is set to the FULL path of the cloned folder. Configuration is x64, Debug/Release - both have the same error. Note that all projects themselves load fine, it fails at compile time with message above.
Since this is a message related to appx and manifests, is it possible that I need some settings in VS2015 turned on, or enable windows store development in any way?
The only additional thing I did is choosing of "Custom" installation instead of "Typical" and checking of "Universal Windows App Development Tools"
Enabling of developer mode should be necessary only for deploying and starting of Universal Apps, not for build. PowerShell way from there works for me
Did a complete clean re-install of my OS and VS 2015. Still the same error :(. Is it possible for you to provide binaries in the form of a nuget package? With the ability to package WinRT components, this will make it much easier for people to use the fruits of this project.
Unfortunately I cannot repro this on my installation, so it's difficult to suggest something effective.
It looks like there is similar issue, however it is still unresolved.
Currently I can only suggest to try Long way. This should generate projects that are completely based on your local configuration. In case you need libraries only (not tests) use -DBUILD_TESTS=NO -DBUILD_PERF_TESTS=NO
CMake flags to remove test projects from build, it should also considerably decrease build time.
As per comments in the issue @EvgenyAgafonchikov referred to, most likely inappropriate SDK is used - 8.1
instead of 10
...
GetInstalledSDKLocations:
Searching for SDKs targeting "UAP, 10.0.10069.0".
Searching for SDKs targeting "Windows, 8.1".
...
@ananthonline could you check if you're having the same mismatch on your setup. The latest post on the thread also introduces a solution that you could try.
I have the same problem on both Windows 8.1 and Windows 10, community and enterprise SKUs of VS2015. My Windows 8.1 machine has multiple SDKs and VS SKUs installed, Windows 10 has just VS2015 fresh.
In both environments, I used the dev console to set the environment variable before launching devenv. How is Microsoft setting the variable?
Hi, @riverar
@ananthonline Have you been able to resolve this with your setup?
Since VS2015 is a common denominator for both cases I assume it is the reason. Admittedly, It's hard to help since we had no repro so far using a clean setup on our side.
Working on a repro now, standby.
Seems this is purely an environment issue.
The Developer Command Prompt for VS2015 defaults to the 8.1 SDK. Unsetting WindowsSdkDir (i.e. set WindowsSdkDir=
) before invoking msbuild or devenv resolves the issue in that prompt. It's not clear if this is an issue with the batch or the Appx targets relying on WindowsSdkDir incorrectly.
Alternatives include using a normal command prompt and using the MSBuild Command Prompt for VS2015.
I'm glad this was figured out, but I'm still for publishing native Nuget packages. Managed interop libraries can then reference this package. I'll start a new feature suggestion about Nuget.
@riverar, @ananthonline, thanks for feedback! We had several requests for this feature and looking into the possibility of having it on the roadmap.
I'm getting the errors (44, specifically for all libs and test applications)
But the link provided above doesn't seem to take me anywhere except the Microsoft home page and a google search fails to turn up anything related to either VS2015, Windows 10 Preview or OpenCV.
Any help is appreciated, thanks in advance!