ALLJOYN WINDOWS编译

1.下载alljoyn的源代码
git clone https://github.com/alljoyn/alljoyn_core.git
git clone https://github.com/alljoyn/common.git
git clone https://github.com/alljoyn/build_core.git
2.下载编译工具scons

http://www.scons.org/

3.下载uncrustify,并且放于PATH路径当中

http://sourceforge.net/projects/uncrustify

4.在alljoyn_core运行scons -h可以看到适应于该项目的选项,如下所示:

scons : Reading SConscript files ...
BULLSEYE_BIN not specified
Using CNG crypto libraries
GTEST_DIR not specified skipping common unit test build
BULLSEYE_BIN not specified
GTEST_DIR not specified skipping alljoyn_core unit test build
scons : done reading SConscript files.

V : Build verbosity
     default :  0
    actual :  0

OS : Target OS  (winxp |win7 |win8 |android )
     default : win7
    actual : win7

CPU : Target CPU  (x86 |x86_64 |arm )
     default : x86
    actual : x86

VARIANT : Build variant  (debug |release |Debug |Release )
     default : debug
    actual : debug

BD : Have bundled daemon built -in  for C ++ test samples  (on |off )
     default : on
    actual : on

DOCS : Output doc type.  Setting the doc type to  "dev" will produce HTML
    output that includes all developer files not just the public API.
      (none |pdf |html |dev |chm |sandcastle )
     default : none
    actual : none

WS : Whitespace Policy Checker  (check |detail |fix |off )
     default : check
    actual : check

GTEST_DIR : The path to Google Test  (gTest ) source code  (  /path /to /GTEST_DIR  )
     default : None
    actual : None

BULLSEYE_BIN : The path to Bullseye Code Coverage  (  /path /to /BULLSEYE_BIN  )
     default : None
    actual : None

MSVC_VERSION : MSVC compiler version  - Windows  ( 9.0 | 10.0 | 11.0 |11.0Exp )
     default :  11.0
    actual :  11.0

OBJDIR :
     default : build /$ {OS } /$ {CPU } /$ {VARIANT } /obj
    actual : build /win7 /x86 /debug /obj

DISTDIR :
     default :  #build/${OS}/${CPU}/${VARIANT}/dist
    actual :  #build/win7/x86/debug/dist

TESTDIR :
     default :  #build/${OS}/${CPU}/${VARIANT}/test
    actual :  #build/win7/x86/debug/test

WIN7_MSI : Build the . MSI installation package  ( false | true )
     default :  false
    actual :  false

OPENSSL_BASE : Base OpenSSL directory  (windows only )  (  /path /to /OPENSSL_BASE  )
     default : None
    actual : None

ICE : Enable ICE Transport  (on |off )
     default : off
    actual : off

Use scons  -for help about command -line options.

可以修改build_core下边的sconscript来调整compiler的version.

5.遇到的错误
RegisterWaitSingleObject没有找到,定义_WIN32_WINNT>=0x0500即可。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
根据引用和[2]的描述,OpenWRT路由器可以作为一个运行AllJoyn路由程序的无线接入点。在该路由器上预装了一个允许来自瘦客户端的非受信连接的AllJoyn路由程序。因此,通过连接到该路由节点,AJTCL客户端可以接入系统。 在这个OpenWRT路由器上,可以连接各种瘦客户端设备,如温度传感器、电灯开关等。想要通过OpenWRT应用层点灯,可以考虑以下步骤: 1. 在OpenWRT路由器上安装并配置一个AllJoyn服务程序,该程序提供了配置路由器和预装在路由器上的路由程序的方式。 2. 将代表电灯开关的瘦客户端设备连接到路由节点。根据引用的描述,瘦客户端设备可以通过登录过程命名,例如"厨房"或"卧室"。 3. 在OpenWRT路由器和对应的瘦客户端设备之间建立受信关系,使得瘦客户端设备能够与路由程序互动。这可以通过配置路由程序来实现,例如通过使用通用的名称如"org.alljoyn.BusNode"来暗示路由节点是AllJoyn分布式总线上的一个节点。 4. 在与OpenWRT路由器绑定的应用程序中,请求路由程序向瘦客户端设备发送一个特定命名方式的广播,例如"com.company.BusNode<guid>"。这个广播可以用来控制电灯开关等功能。 5. 瘦客户端设备在关联的网络前缀上启用发现过程,以接收来自路由程序的广播,并根据广播的命名方式来响应相应的控制指令。 总结来说,要在OpenWRT应用层点灯,你需要在OpenWRT路由器上安装AllJoyn服务程序,并配置路由程序和瘦客户端设备之间的受信关系。然后,在绑定的应用程序中通过广播来控制电灯开关,瘦客户端设备会根据广播的命名方式来响应相应的控制指令。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值