windows-phone-8boostvisual-studio-2013compilationb2

How to build Boost 1.57 for Windows Phone 8 with Visual Studio 2013 Pro?


I want to build Boost 1.57 for Windows Phone 8 but when I run b2 like so

b2 toolset=msvc-12.0 variant=release architecture=arm windows-api=phone

I get strange errors similar to this one for every target

'/Zm800' is not recognized as an internal or external command, operable program or batch file.

My guess is that the build system has not set the compiler properly. It compiles without errors using b2 like so

b2 toolset=msvc-12.0 variant=release

What am I missing? How to compile Boost for Windows Phone 8?


Solution

  • I found the problem. It seems there is a directory missing in Visual Studio 2013. The solution is to download and copy the files that come with this blog article to the right place:

    Please note Visual Studio 2013 didn’t include vcvarsphone setup scripts so you won’t be able to target Phone 8.1 out of the box. With this blog post I’ve included phone setup scripts that can be used when targeting Windows Phone 8.1. To setup them up create the folders called WPSDK\WP81 under the VC Visual Studio installation directory, C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\, and copy the phone setup script files in.

    BoostSample.zip