Imported Upstream version 0.9.2
[platform/upstream/iotivity.git] / resource / csdk / stack / README
1 Build notes
2
3 The build steps used in continuous integration can be found
4 in auto_build.sh which is also in the the repository root directory.
5
6 Go to the top directory of 'iotivity' project(Note: should always run 'scons'
7 command in this directory)
8
9 //-------------------------------------------------
10 // Linux
11 //-------------------------------------------------
12 To build release binaries:
13       $ scons resource/csdk/stack
14
15     Build debug binaries:
16       $ scons resource/csdk/stack RELEASE=false
17
18 To enable logging, ensure that
19 -D TB_LOG
20 is set in the compiler flags
21
22 //-------------------------------------------------
23 // Android
24 //-------------------------------------------------
25 To enable logging for Android, TB_LOG should be defined in the ./jni/Android.mk file as
26
27 LOCAL_CFLAGS := -DTB_LOG
28
29 //-------------------------------------------------
30 // Arduino
31 //-------------------------------------------------
32 To enable the logger for Arduino, TB_LOG should be defined in
33 Properties|C/C++ Build|Settings|Tool Settings|AVR Compiler|Symbols
34 and
35 Properties|C/C++ Build|Settings|Tool Settings|AVR C++ Compiler|Symbols
36
37 Note: when building for Arduino, force the compiler to use avr-g++ to build logger.c.  Or rename logger.c to logger.cpp.
38
39 Note: when building for Arduino, several warnings are generated when trying to place strings in
40 PROGMEM
41 "warning: only initialized variables can be placed into program memory area"
42 This appears to be a known gcc bug - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34734
43