ALLJOYN WINDOWS编译

本文档详细介绍了如何下载并编译AllJoyn项目的源代码,包括所需工具的下载链接,通过scons构建系统的配置选项说明及常见错误解决办法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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即可。


评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值