openwrt上支持alljoyn编译流程

原文请参考:https://allseenalliance.org/developers/develop/building/linux/openwrt


这个链接实现了在openwrt上运行alljoyn的服务器和例子程序,系统自动更新到14.06版本;用户可以用APP客户端来实现设备的控制,把基于openwrt的设备当成alljoyn的一个客户端。后面alljoyn选项请全部选上,不然部分程序不能运行!



注意编译后,固件应该有5M左右,如果FLASH太小的话,请更换!


内容:

BUILDING OPENWRT

AllJoyn feeds exist on the following OpenWRT platform releases:

  • v12.09 - official tagged release
  • Attitude Adjustment - current stable release
  • Barrier breaker - current development version

Build and Install AllJoyn

Follow these instructions to add AllJoyn to your OpenWRT environment.

Patch OpenSSL

  • For Attitude Adjustment, use 39585 or later, or apply patch 4802 (The 12.09 tagged release requires this patch. The latest version on the Attitude Adjustment branch already has the patch applied.)

  • For Barrier Breaker, use 39048 or later, or apply patch 4576 (The latest version of Barrier Breaker, aka trunk, already has the patch applied.)

Edit Feed

Add only one of these lines to your feeds.conf:

  • For the official OpenWrt v12.09 tagged release

    src-git alljoyn https://git.allseenalliance.org/gerrit/core/openwrt_feed;openwrt_12.09
    
  • For Attitude Adjustment

    src-git alljoyn https://git.allseenalliance.org/gerrit/core/openwrt_feed;attitude_adjustment
    
  • For Barrier Breaker

    src-git alljoyn https://git.allseenalliance.org/gerrit/core/openwrt_feed;barrier_breaker
    

Update Feeds

./scripts/feeds update -a

Install the AllJoyn package definitions

./scripts/feeds install -a -p alljoyn

Enable the AllJoyn packages to build

make menuconfig
        Networking --->
                < > alljoyn --->
                        < > alljoyn-about
                        < > alljoyn-c
                        < > alljoyn-config --->
                                < > alljoyn-config-samples
                        < > alljoyn-controlpanel --->
                                < > alljoyn-controlpanel-samples
                        < > alljoyn-notification --->
                                < > alljoyn-notification-samples
                        < > alljoyn-sample_apps
                        < > alljoyn-services_common

Install AllJoyn

If you built AllJoyn as a module, move those IPKs over to your OpenWRT device and run opkg install .

If you built AllJoyn directly into the image, simply flash the new firmware onto your OpenWRT device.

AllJoyn libs will be installed in /usr/lib/ and binaries will be installed in /usr/bin/.

Run AllJoyn

Start AllJoyn

Start the AllJoyn daemon

/etc/init.d/alljoyn start

Optionally, enable the AllJoyn demon to start at boot-up.

/etc/init.d/alljoyn enable

Run Sample Apps

Follow the Linux instructions to run sample apps. Note that since AllJoyn binaries and libs are installed in/usr/bin/ and /usr/lib/, that the AllJoyn apps can run directly from any path without settingLD_LIBRARY_PATH.


你可能感兴趣的:(ALLJOYN专区)