[CMake] Fwd: Expected behaviour for Tests/VSWinStorePhone
Parag Chandra
parag at ionicsecurity.com
Wed Sep 9 09:31:43 EDT 2015
Hi Pierre,
For the ARM version, I believe you will need to specify the CPU architecture explicitly, because CMake is not going to generate a “fat”/multi-arch solution in the manner that it does for Xcode. What I do for WinPhone is to pass arguments like this:
-DCMAKE_SYSTEM_NAME=WindowsPhone -DCMAKE_SYSTEM_VERSION=8.1 –G”Visual Studio 12 2013” -DCMAKE_GENERATOR_PLATFORM=ARM
Hope this helps.
Parag Chandra
Senior Software Engineer, Mobile Team
Mobile: +1.919.824.1410
[https://www.ionicsecurity.com/IonicSigHz.png]<https://ionic.com>
Ionic Security Inc.
1170 Peachtree St. NE STE 400, Atlanta, GA 30309
From: CMake on behalf of Pierre Wilmot
Date: Wednesday, September 9, 2015 at 3:49 AM
To: "cmake at cmake.org<mailto:cmake at cmake.org>"
Subject: [CMake] Fwd: Expected behaviour for Tests/VSWinStorePhone
Hi everyone,
I’m trying to generate a Windows Phone 8.1 project from CMake, I was expecting the Tests/VSWinStorePhone folder to be a good template to start with, but I’m a bit confused with the result I get.
I was expecting to get pretty much the same result as a project created with the Visual studio “DirectX and XAML App (Windows Phone)”. That means a project displaying cubes that I could just run on my Windows Phone device by pressing run on device.
Instead I’m getting a project with no ARM configuration, only Win32 which is surprising, because as far as I know, there only ARM device available on the market.
If I build the project, I get an exe throwing an error on launch
“This application can only run in the context of an app container”. (started from exe)
OR
“In order to debug this project, you must consume it from an application project that creates a package and is marked as the Startup Project” (started from Visual Studio)
As the Project name is “VSWinStorePhone”, I was expecting the created solution to be ready for Windows Phone deployment, but it’s not.
Is that the expected behaviour ?
If so, where can I find a good CMakeList template to create a Windows Phone 8.1 app ?
Setup Info:
Running on Windows 8 x64
With Visual Studio Professional 2013 Version 12.0.31101.00 Update 4
Used cmake 3.3.1-win32-x86
With the file of Tests/VSWinStorePhone from the current github master branch
Ran command from Desktop/CMAKEOUT :
..\cmake-3.3.1-win32-x86\bin\cmake.exe ..\Cmake-master\Test\VSWinStrorePhone
Best regards,
Pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150909/8105e83b/attachment-0001.html>
More information about the CMake
mailing list