Search code examples
arduinosconsalljoyn

Using Scons to build Alljoyn Thin App for Arduino


I am trying to get familiar with Alljoyn Thin Core Library (15.09) and my current goal is to run the example from AJTCL_DIR\src\target\arduino\examples\AJ_LedService. The problem is I am not familiar with the Scons and there seems to be no guide for building AJTCL for arduino target (Arduino + freeRTOS is not what I need). Can anyone help me with building that library for Arduino, because my attempts to buid that with scons failed.scons buid output


Solution

  • For me the way to solve this problem was to edit file Sconscript.target.arduino. I replaced these lines:

    `# 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')
    ]`
    

    with following:

    `# 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'))`.
    

    So list srcs contains file objects, not the list of file objects. After applying these changes lib was build successfully, but i stil have some problems with compilation.