使用 Scons 为 Arduino 构建 Alljoyn 瘦应用程序
Using Scons to build Alljoyn Thin App for Arduino
我正在尝试熟悉 Alljoyn Thin Core Library (15.09),我目前的目标是 运行 来自 AJTCL_DIR\src\target\arduino\examples\AJ_LedService 的示例。问题是我不熟悉 Scons,似乎没有为 arduino 目标构建 AJTCL 的指南(Arduino + freeRTOS 不是我需要的)。谁能帮我为 Arduino 构建那个库,因为我尝试用 scons 构建它失败了。scons buid output
在 "SConscript.target.arduino" 文件中,用正确的路径更改变量。
arduinoLibDir = '#dist/arduino_due/libraries/AllJoyn/'
试试看;
scons WS=off VARIANT=debug TARG=arduino
对我来说,解决这个问题的方法是编辑文件 Sconscript.target.arduino。
我替换了这些行:
`# Install the .c files as .cpp files for the Arduino IDE to consume.
srcs = [
Glob('src/*.c'),
Glob('src/target/$TARG/*.c'),
Glob('src/crypto/*.c'),
Glob('external/sha2/*.c')
]`
以下内容:
`# Install the .c files as .cpp files for the Arduino IDE to consume.
srcs = []
srcs.extend(Glob('src/*.c'))
srcs.extend(Glob('src/target/$TARG/*.c'))
srcs.extend(Glob('src/crypto/*.c'))
srcs.extend(Glob('external/sha2/*.c'))`.
所以列表srcs
包含文件对象,而不是文件对象列表。应用这些更改后,lib 已成功构建,但我仍然遇到一些编译问题。
我不太确定 Arduino 的构建(工作)是否可用。正在进行一些工作,以构建 Arduino 运行。
这是 Allseen 核心工作列表中的一封邮件的 link。
Allseen Core Mailing List
我曾尝试构建它们,即使认为构建成功我仍然有一些未引用的库,因此 AJ_LedService 示例无法编译。!
我正在尝试熟悉 Alljoyn Thin Core Library (15.09),我目前的目标是 运行 来自 AJTCL_DIR\src\target\arduino\examples\AJ_LedService 的示例。问题是我不熟悉 Scons,似乎没有为 arduino 目标构建 AJTCL 的指南(Arduino + freeRTOS 不是我需要的)。谁能帮我为 Arduino 构建那个库,因为我尝试用 scons 构建它失败了。scons buid output
在 "SConscript.target.arduino" 文件中,用正确的路径更改变量。
arduinoLibDir = '#dist/arduino_due/libraries/AllJoyn/'
试试看;
scons WS=off VARIANT=debug TARG=arduino
对我来说,解决这个问题的方法是编辑文件 Sconscript.target.arduino。 我替换了这些行:
`# Install the .c files as .cpp files for the Arduino IDE to consume.
srcs = [
Glob('src/*.c'),
Glob('src/target/$TARG/*.c'),
Glob('src/crypto/*.c'),
Glob('external/sha2/*.c')
]`
以下内容:
`# Install the .c files as .cpp files for the Arduino IDE to consume.
srcs = []
srcs.extend(Glob('src/*.c'))
srcs.extend(Glob('src/target/$TARG/*.c'))
srcs.extend(Glob('src/crypto/*.c'))
srcs.extend(Glob('external/sha2/*.c'))`.
所以列表srcs
包含文件对象,而不是文件对象列表。应用这些更改后,lib 已成功构建,但我仍然遇到一些编译问题。
我不太确定 Arduino 的构建(工作)是否可用。正在进行一些工作,以构建 Arduino 运行。
这是 Allseen 核心工作列表中的一封邮件的 link。 Allseen Core Mailing List
我曾尝试构建它们,即使认为构建成功我仍然有一些未引用的库,因此 AJ_LedService 示例无法编译。!