Arduino Yun cross compile

Hello.

I want run a AllJoyn chat sample on arduino yun.

I have AllJoyn chat sample c++ code but I don`t know what should I do next.

I think I have to cross compile the c++ code on linux and transfer compiled file to Arduino Yuns microprocessor, Linino. but I dont know how to use cross compiler.

If cross compiling is needed for running a chat sample, Please give me some information about cross compiling step by step.

If there are different ways that run c++ code on Arduino yun, Please let me know what should I do.

Thank you.