[build] How do I build for windows phone?
Boost.Build evidently has options for building for windows store and windows phone. The store builds work fine for me, but the phone builds fail as there is no compiler on the command line generated: ../../../bjam config_info msvc-14.0 windows-api=phone -d2 ...found 179 targets... ...updating 5 targets... file ..\..\..\bin.v2\libs\config\test\config_info.test\msvc-14.0\debug\link-static\runtime-link-static\windows-api-phone\config_info.obj.rsp "config_info.cpp" -Fo"..\..\..\bin.v2\libs\config\test\config_info.test\msvc-14.0\debug\link-static\runtime-link-static\windows-api-phone\config_info.obj" -TP /Z7 /Od /Ob0 /W3 /GR /Zc:forScope /Zc:wchar_t /MTd /wd4675 /EHs -c -DBOOST_ALL_NO_LIB=1 -DWINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP -D_WIN32_WINNT=0x0602 "-I..\..\.." compile-c-c++ ..\..\..\bin.v2\libs\config\test\config_info.test\msvc-14.0\debug\link-static\runtime-link-static\windows-api-phone\config_info.obj /Zm800 -nologo @"..\..\..\bin.v2\libs\config\test\config_info.test\msvc-14.0\debug\link-static\runtime-link-static\windows-api-phone\config_info.obj.rsp" '/Zm800' is not recognized as an internal or external command, operable program or batch file. Any ideas what I'm doing wrong? BTW I can't find any docs mentioning these options - and it's something end users building Boost may well need? Finally a supplementary question: has anyone succeeded in running regression tests on either the store or phone platforms? If I run: /bjam config_info msvc-14.0 windows-api=store I get: testing.capture-output ..\..\..\bin.v2\libs\config\test\config_info.test\msvc-14.0\debug\link-static\runtime-link-static\windows-api-store\config_info.run ====== BEGIN OUTPUT ====== Access is denied. EXIT STATUS: 5 Along with a screen message saying the app can't be run on my PC. Any ideas? Many thanks, John.
Hi John, On 04-Nov-15 8:54 PM, John Maddock wrote:
Boost.Build evidently has options for building for windows store and windows phone. The store builds work fine for me, but the phone builds fail as there is no compiler on the command line generated:
../../../bjam config_info msvc-14.0 windows-api=phone -d2
...found 179 targets... ...updating 5 targets...
This was previously reported, at: http://permalink.gmane.org/gmane.comp.lib.boost.devel/263303 I believe Visual Studio team is aware of the problem, but there's no public URL to track the progress.
file ..\..\..\bin.v2\libs\config\test\config_info.test\msvc-14.0\debug\link-static\runtime-link-static\windows-api-phone\config_info.obj.rsp
"config_info.cpp" -Fo"..\..\..\bin.v2\libs\config\test\config_info.test\msvc-14.0\debug\link-static\runtime-link-static\windows-api-phone\config_info.obj" -TP /Z7 /Od /Ob0 /W3 /GR /Zc:forScope /Zc:wchar_t /MTd /wd4675 /EHs -c -DBOOST_ALL_NO_LIB=1 -DWINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP -D_WIN32_WINNT=0x0602 "-I..\..\.." compile-c-c++ ..\..\..\bin.v2\libs\config\test\config_info.test\msvc-14.0\debug\link-static\runtime-link-static\windows-api-phone\config_info.obj
/Zm800 -nologo @"..\..\..\bin.v2\libs\config\test\config_info.test\msvc-14.0\debug\link-static\runtime-link-static\windows-api-phone\config_info.obj.rsp"
'/Zm800' is not recognized as an internal or external command, operable program or batch file.
Any ideas what I'm doing wrong?
Using Visual Studio 2015, apparently ;-)
BTW I can't find any docs mentioning these options - and it's something end users building Boost may well need?
It's mentioned at: https://github.com/boostorg/build/wiki/Windows These are still too much in a flux to bother adding to 'persistent' documentation.
Finally a supplementary question: has anyone succeeded in running regression tests on either the store or phone platforms? If I run:
/bjam config_info msvc-14.0 windows-api=store
I get:
testing.capture-output ..\..\..\bin.v2\libs\config\test\config_info.test\msvc-14.0\debug\link-static\runtime-link-static\windows-api-store\config_info.run
====== BEGIN OUTPUT ====== Access is denied.
EXIT STATUS: 5
Along with a screen message saying the app can't be run on my PC.
Any ideas?
This was: https://github.com/boostorg/build/pull/26 As you can see from the last comment, there is no longer any interest in having testing for Windows Runtime to work. Are you asking with the general coverage in mind, or do you have particular motivation to add Windows Runtime support? - Volodya -- Vladimir Prus http://vladimirprus.com
On 04/11/2015 19:20, Vladimir Prus wrote:
Hi John,
On 04-Nov-15 8:54 PM, John Maddock wrote:
Boost.Build evidently has options for building for windows store and windows phone. The store builds work fine for me, but the phone builds fail as there is no compiler on the command line generated:
../../../bjam config_info msvc-14.0 windows-api=phone -d2
...found 179 targets... ...updating 5 targets...
This was previously reported, at:
http://permalink.gmane.org/gmane.comp.lib.boost.devel/263303
I believe Visual Studio team is aware of the problem, but there's no public URL to track the progress.
Oh :(
Along with a screen message saying the app can't be run on my PC.
Any ideas?
This was:
https://github.com/boostorg/build/pull/26
As you can see from the last comment, there is no longer any interest in having testing for Windows Runtime to work.
Are you asking with the general coverage in mind, or do you have particular motivation to add Windows Runtime support?
My motivation is simply that I'm getting PR's for adding Windows store/phone support, and can't figure out how to actually test them ;) Many thanks for the prompt response, John.
On Wed, Nov 4, 2015 at 8:42 PM, John Maddock
On 04/11/2015 19:20, Vladimir Prus wrote:
Hi John,
On 04-Nov-15 8:54 PM, John Maddock wrote:
Boost.Build evidently has options for building for windows store and windows phone. The store builds work fine for me, but the phone builds fail as there is no compiler on the command line generated:
../../../bjam config_info msvc-14.0 windows-api=phone -d2
...found 179 targets... ...updating 5 targets...
This was previously reported, at:
http://permalink.gmane.org/gmane.comp.lib.boost.devel/263303
I believe Visual Studio team is aware of the problem, but there's no public URL to track the progress.
Oh :(
I reached out to them again to verify if the fix is in Update 1 RC or if it will make it in Update 1. In the meantime adding "/AI $pathto\store\references" in cppflags should solve the problem mentioned in Vladimirs email above, for example like this: cl /ZW /EHsc cxtest.cpp /AI "c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\store\references" Your problem seems to be different though (missing compiler from compiler command line?) I haven't seen that yet. Along with a screen message saying the app can't be run on my PC.
Any ideas?
This was:
https://github.com/boostorg/build/pull/26
As you can see from the last comment, there is no longer any interest in having testing for Windows Runtime to work.
I don't think that is a correct statement, it seems like that pull request was canceled because he left MS.
Are you asking with the general coverage in mind, or do you have particular motivation to add Windows Runtime support?
I also would like to be able to run the winrt tests automatically, the solution in PR#26 seems like a good first step. Another solution which I have been pondering is a solution similar to https://github.com/phonegap/ios-sim where a little tool is used to trampoline into the sandbox and report back results to the command line. But such a solution involves quite a bit of work and I haven't had time to look into it too much yet. Similar work should be required to automatically run boost tests for iOS and Android so it might make sense to see if we can add some tooling for it. /M
On Thu, Nov 5, 2015 at 11:15 AM, Mikael Olenfalk
On Wed, Nov 4, 2015 at 8:42 PM, John Maddock
wrote: On 04/11/2015 19:20, Vladimir Prus wrote:
I believe Visual Studio team is aware of the problem, but there's no
public URL to track the progress.
Oh :(
I reached out to them again to verify if the fix is in Update 1 RC or if it will make it in Update 1. In the meantime adding "/AI $pathto\store\references" in cppflags should solve the problem mentioned in Vladimirs email above, for example like this: cl /ZW /EHsc cxtest.cpp /AI "c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\store\references"
The fix made it into VS2015 Update 1 RC. /M
participants (3)
-
John Maddock
-
Mikael Olenfalk
-
Vladimir Prus