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