Build Alljoyn Source for Windows Phone 8.1 (ARM32)

asked 2015-02-21 10:54:00 -0700

cwang gravatar image

updated 2015-02-21 11:18:22 -0700

Hi all,

I failed to build Allseen apps for windows phone 8.1 (Nokia Lumia 635), and ended up trying to build a SDK for it; not yet succeed, but here are steps I've tried, followed by my current issue:

I first tried to build the sample client/server included in the official Windows SDK(64bit, v14.12.00a). I followed the instructions ( https://allseenalliance.org/developers/develop/building/windows ) and have setup my visual studio 2013 (visual studio community to be precise). I could build a working version on my win8.1 laptop, but I failed to build one for my win8.1 phone running on ARM 32bit processor. Error message when linking BundledRouter.obj:

error LNK1112: module machine type 'x64' conflicts with target machine type 'ARM'

In another thread ( https://ask.allseenalliance.org/question/687/windows-phone-81-support/ ) it said currently (Jun 2014) there's no support for windows phone 8.1 but we can try to build our own. So I tried.

I followed this post to build the Alljoyn source v14.12.00a for arm architecture ( http://blog.mszcool.com/index.php/2014/09/alljoyn-iot-peer-to-peer-protocol-framework-making-it-work-with-visual-studio-2013/ ). I can tell that the official winSDK v14.12.00a already supports building with visual studio 2013, since I have built a working sample for my win8.1 laptop. But her post still helps in how to setup scons and options to build a version for arm. I use python 2.7.9 and scons 2.3.4.

Using command:

scons BINDINGS="C++" MSVC_VERSION="12.0" OS="win7" CPU=arm WS=off variant=release

I met the following error:

scons: Reading SConscript files ... ValueError: Unrecognized target architecture arm Valid architectures: ['x86_64', 'i586', 'x86', 'x86_amd64', 'i486', 'emt64', 'i386', 'ia64', 'itanium', 'amd64', 'i686']:

Then I found a patch named SconsWin8 in the alljoyn source, located at:


which provides information on how to patch scons to add target architecture options, etc.. I patched scons based on that, and then rerun:

scons BINDINGS="C++" MSVC_VERSION="12.0" OS="win7" CPU=arm WS=off variant=release

This time it passed all checks, but failed at first CXX, producing error below:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported. scons: * [build\win7\arm\debug\obj\alljoyn_core\test\aclient.obj] Error 2 scons: building terminated because of errors.

It seems that I accidently invoked vs-2012 rather than vs-2013. But that confuses me since on my laptop I only installed vs-community (which claimed to be equivalent to vs-2013). I wonder what went wrong and how to fix it. Thanks!

edit retag flag offensive close merge delete


Visual Studio 2013 is version 12.0 of Visual Studio.

ry.jones ( 2015-02-21 15:18:37 -0700 )edit

You're right. Using Visual Studio 2013, I am able to build and run hello-world kinds of apps (without Alljoyn) on my arm phone, so I wonder why I got error " C1189: #error : Compiling Desktop applications for the ARM platform is not supported." Thanks!

cwang ( 2015-02-22 12:59:42 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-02-23 11:11:19 -0700

ry.jones gravatar image
Linux Foundation Staff

WinRT is not supported, which means ARM for Windows is not supported.

edit flag offensive delete publish link more


Hope it will be supported soon..

cwang ( 2015-03-06 11:58:03 -0700 )edit

Hi, Now that it is supported in windows 10, Is it supported for windows phone 10? That is, will it be supported on RT platforms running windows 10?

khattak ( 2015-06-04 04:13:06 -0700 )edit
Login/Signup to Answer

Question Tools



Asked: 2015-02-21 10:54:00 -0700

Seen: 315 times

Last updated: Feb 23 '15