Hi Parag, Thanks for the reply, it does help, I'm getting a working solution that let me build and run the "cube app" on my phone. But what I'm trying to achieve here is a fully automation Generate Build and Run system for continuous integration.
I'm using the cmake --build command to compile, but the resulting appx wont deploy to the device because of "Error: Deployment optimization failed due to an assembly that's not valid. Try rebuilding the project, and then try again." Here is the script I'm using : https://gist.github.com/anonymous/6d72e8833833ea313e7b And the output : https://gist.github.com/anonymous/adafc15d4fb4ab7ca04c I've been trying to set the startup project with https://github.com/michaKFromParis/slnStartupProject, but it keeps giving the same result. I've also tried to sign the appx, but it doesn't work any better. If I build it using Visual studio, I need to right click the Direct3DApp1 and "Set it as startup project", but is there any way to the same result from command line ? Thanks for the help :) Best regards, Pierre 2015-09-09 16:31 GMT+03:00 Parag Chandra <pa...@ionicsecurity.com>: > 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://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@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 > > > >
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake