Initial merge-commit of the OIC code. Should successfully do discovery for single...
[platform/upstream/iotivity.git] / csdk / stack / README
1 Build notes
2
3 //-------------------------------------------------
4 // Linux
5 //-------------------------------------------------
6 To build, run
7 make
8
9 To enable logging, ensure that 
10 -D TB_LOG 
11 is set in the compiler flags
12
13 //-------------------------------------------------
14 // Android
15 //-------------------------------------------------
16 To enable logging for Android, TB_LOG should be defined in the ./jni/Android.mk file as
17
18 LOCAL_CFLAGS := -DTB_LOG
19
20 //-------------------------------------------------
21 // Arduino
22 //-------------------------------------------------
23 To enable the logger for Arduino, TB_LOG should be defined in 
24 Properties|C/C++ Build|Settings|Tool Settings|AVR Compiler|Symbols
25 and
26 Properties|C/C++ Build|Settings|Tool Settings|AVR C++ Compiler|Symbols
27
28 Note: when building for Arduino, force the compiler to use avr-g++ to build logger.c.  Or rename logger.c to logger.cpp.
29
30 Note: when building for Arduino, several warnings are generated when trying to place strings in
31 PROGMEM
32 "warning: only initialized variables can be placed into program memory area"
33 This appears to be a known gcc bug - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34734
34