On 27 Mar 2015, at 17:50, Steven Watanabe <watanabesj@gmail.com> wrote:

AMDG

On 03/27/2015 02:04 AM, Jan Deinhard wrote:
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 the following error for all targets:

<snip>
I suppose the German part translates to:

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

My guess is that b2 failes to set the compiler. When I use b2 like so

    b2 toolset=msvc-12.0 variant=release

it compiles just fine.

What is wrong with my b2 command? Is there anything I can do or is the build system broken for Windows Phone?


From the error message, it looks like the setup
script isn't being found.  I think the scripts are
looking for VC\WPSDK\WP81\vcvarsphoneall.bat or
VC\WPSDK\vcvarsphoneall.bat.  Can you check that
one of these files exists?

In Christ,
Steven Watanabe


VC\WPSDK\WP81 does not exist on my computer. There is no WPSDK directory in C:\Program files (x86)\Microsoft Visual Studio 12.0\VC. Tough there is a script vcvarsphoneall.bat in C:\Program files (x86)\Microsoft Visual Studio 11.0\VC\WPSDK\WP80. That’s the only file with that name on my computer.

Running b2 with

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

seems to work “better”. I still see errors but they are related to missing header files. In my stage/lib I now have .lib files for atomic, chrono, container, date_time, exception, math, serialisation, signals, system, and thread.

I tried to use the libs for system and thread in a Windows Phone 8.1 app but that does not work. The linker complains about a mismatch in _MSC_VER (1700 and 1800).

The info dialog in Visual Studio has an item “Windows Phone 8.1 SDK-Integration” in the list of installed products. Any hint on what I can do here?

Best
Jan