运行聊天样例应用程序 - Thin Linux

前提条件

运行聊天

  1. 使用配置文件运行 AllJoyn daemon, 使精简应用程序可以连接。

``` # can be either x86_64, x86, or whatever value you set for CPU= when running SCons. export TARGET_CPU= cd $AJ_ROOT/core/alljoyn/build/linux/$TARGET_CPU/release/dist/cpp/bin

export LD_LIBRARY_PATH=pwd/../lib:$LD_LIBRARY_PATH # This sets the library path to load the liballjoyn.so shared library.

./alljoyn-daemon & ```

  1. 运行聊天 (在新的命令行中).

cd $AJ_ROOT/core/ajtcl/samples/basic ./chat

chat_client 的输出应为如下所示:

<node name="/chatService">
<interface name="org.alljoyn.bus.samples.chat">
    <signal name="Chat">
        <arg name="str" type="s"/>
    </signal>
</interface>
</node>
...
...
...