Notes |
|
(0037106)
|
Remi
|
2014-10-29 19:00
|
|
I now understand that I should use -DCMAKE_SYSTEM_VERSION=8.1 with Visual Studio 12, and -DCMAKE_SYSTEM_VERSION=8.0 does not work. Still I'd expect cmake to fail with an error message that is easier to understand.
Also, it seems that OBJECT libraries don't work. For every OBJECT library, I get an error message: error MSB3030: Could not copy the file [...].winmd because it was not found. I will investigate tomorrow. Maybe I should open another report for that problem.
In addition, the ALL_BUILD and ZERO_CHECK projects are marked as incompatible. |
|
|
(0037209)
|
Gilles Khouzam
|
2014-11-13 15:04
|
|
I've attached the patch to help with this issue. CMake requires both the Desktop SDK and the platform SDK that you are targeting and this patch will try to make sure that the right SDKs are installed.
If you're missing an SDK, you will get an error message like the following one.
CMake Error at CMakeLists.txt:2 (project):
A Windows Phone component with CMake requires both the Windows Desktop SDK
as well as the Windows Phone '8.1' SDK. Please make sure that you have
both installed
For the issue with the ALL_BUILD and ZERO_CHECK projects, the express editions can only target the projects that they are designed for (even if you have multiple of them installed). This is unfortunate and hopefully with the recent announcement that the new VS 2013 Free edition will be able to target all platforms this hopefully will make things easier. |
|
|
(0037210)
|
Brad King
|
2014-11-13 15:27
|
|
|
|
(0037212)
|
Gilles Khouzam
|
2014-11-13 15:58
|
|
Missed a detection case on VS2013.
Attached patch 2.
Now all tests pass. |
|
|
(0037214)
|
Brad King
|
2014-11-13 16:04
|
|
|
|
(0037224)
|
Brad King
|
2014-11-14 15:00
|
|
Does having both the Desktop SDK and Platform SDK also solve the problem with OBJECT libraries reported in 0015228:0037106? |
|
|
(0037226)
|
Gilles Khouzam
|
2014-11-14 19:34
|
|
The object libraries issue is most likely similar to something I saw with static libraries that would default to adding a WinMD file.
I'll try to get a repro unless Remi can provide one. |
|
|
(0037227)
|
Remi
|
2014-11-15 04:55
|
|
Thanks for your efforts to fix this problem. I attached a minimal project that illustrates the problem with an object library. Visual Studio Express for Windows fails to compile the project generated by:
cmake -G "Visual Studio 12 2013" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=8.1
with the MSB3030 error regarding a .winmd file. I did not apply any patch: this is with 3.1.0-rc1. |
|
|
(0037228)
|
Gilles Khouzam
|
2014-11-16 17:32
|
|
Thanks Remi.
This is indeed what I thought it was. I've got a patch, for the object library issue. Since for Windows a object library is the same as a static library, we had a special clause to not produce windows metadata on static libraries, I added the same thing for object libraries.
Remi, you could change to a static library until the fix makes it through. |
|
|
(0037229)
|
Brad King
|
2014-11-17 08:59
|
|
|
|
(0037338)
|
Brad King
|
2014-12-01 14:29
|
|
Both fixes here have been merged to the 'release' branch in preparation for the next 3.1 release candidate. |
|
|
(0038684)
|
Robert Maynard
|
2015-05-04 09:05
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|