[Solved] Compiling qt c++ project with alljoyn for iOS

asked 2015-01-14 13:58:32 -0700

jnbrunet gravatar image

updated 2015-01-15 12:28:33 -0700


I have a qt project which needs to work on many device (linux, mac, iOS, android and windows)

I succeed to integrate alljoyn for linux and mac. Now I am struggling to integrate it for iOS.

To link with mac os, I needed to compile alljoyn without the options: -fno-rtti and -fno-exceptions in the file alljoyn/build_core/conf/darwin/x86

Now I'm trying to do the same with iOS. I removed the rtti and exceptions flags from the file alljoyn/build_core/conf/darwin/armv7 and successfuly built alljoyn.

When I try to compile my qt-project, I have the following error with the compilation:

Undefined symbols for architecture armv7:
"std::_Rb_tree_decrement(std::_Rb_tree_node_base const*)", referenced from:
  std::_Rb_tree_const_iterator<qcc::String>::operator--() in libajrouter.a(IpNameServiceImpl.o)

The same error was fixed on mac os by removing the rtti and exceptions flags on the compilation of alljoyn darwin/x86, but does not solve the problem when compiling alljoyn darwin/armv7

Does anybody have an idea why?

Thank you !

edit retag flag offensive close merge delete


Can you try removing the flags from darwin/arm and then try building it for arm target. The arm target should ideally select the appropriate target at compile time. Also clean build helps just in case you did not do that :)

Nikhil Dabhade ( 2015-01-14 15:46:33 -0700 )edit

Thank you for your help Nikhil! Unfortunately, that didn't solve the problem. I still have the same error. I removed the two flags from the arm target, compiled it successfully, linked my Qt project with /build/darwin/arm/iphoneos/debug/dist/cpp/lib and I got the same error.

jnbrunet ( 2015-01-14 16:27:02 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-15 10:08:22 -0700

jnbrunet gravatar image

Ok I needed to compile Alljoyn with c++11.

See my answer to the post https://ask.allseenalliance.org/question/1585/build-alljoyn-c11-osx/

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-01-14 13:58:32 -0700

Seen: 282 times

Last updated: Jan 15 '15