0

How to build AllJoyn support arm64 in iOS?

asked 2015-01-21 01:13:56 -0800

dvs gravatar image

Could somebody help me with building AllJoyn for arm64?

What I already did:

  1. Copy target alljoyn_core_ios_armv7s and remane it to alljoyn_core_ios_arm64
  2. In target alljoyn_core_ios_arm64 change arguments for scons and set it CPU=arm64
  3. Add 'arm64' in all "SConscript" files near 'armv7s'
  4. Build openssl with arm64 support.

And now then I try to build alljoyn_core_ios_arm64, I get this error

In file included from common/inc/qcc/XmlElement.h:30:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/map:457:17: No matching function for call to object of type 'const ajn::AboutData::Internal::CaseInsensitiveCompare'
            {return static_cast<const _Compare&>(*this)(__x.__cc.first, __y.__cc.first);}
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__tree:1535:17: In instantiation of member function 'std::__1::__map_value_compare<qcc::String, std::__1::__value_type<qcc::String, ajn::MsgArg>, ajn::AboutData::Internal::CaseInsensitiveCompare, true>::operator()' requested here, true>::operator()' requested here

Is it way how to fix this issue?

I read answers to this question https://ask.allseenalliance.org/question/441/is-alljoyn-support-64bit-device-in-ios/ , but this didn't help me.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2015-01-21 11:57:16 -0800

Nikhil Dabhade gravatar image

Hi dvs,
The AllJoyn library inside the SDK is currently 32-bit. However, if used in an app with arm64 target it should run perfectly. You would have to modify the library search paths and header search paths to point to armv7s folder or just arm folder. We run our sample test apps on 64-bit devices. I know it is not the best solution and I have it in my queue to have native 64-bit support on iOS but it does not stop you from using the existing library without having to build anything.

On the other hand, since you have started poking at it. It looks like it is STL code that it does not like. For e.g. map and tree in the above error logs. Let me look up the code in there and I will update this thread with what I find.

Nikhil

edit flag offensive delete publish link more

Comments

Hi, Nikhil. Thank you for fast answer. Yes, of course it doesn't stop me from developing and testing. If I right understand, problem will be with sending application to AppStore, according this news — https://developer.apple.com/news/?id=10202014a

dvs ( 2015-01-23 00:17:34 -0800 )edit

@Vladimir Drapalyuk Plz tell me how to compile for arm64.

smoaz01 ( 2015-04-08 08:59:17 -0800 )edit
Login/Signup to Answer

Question Tools

Follow
2 followers

Stats

Asked: 2015-01-21 01:13:56 -0800

Seen: 341 times

Last updated: Jan 21 '15