Resolve Bug IOT-273 (rename "OC_STACK_REPEATED_REQUEST")
[platform/upstream/iotivity.git] / resource / csdk / stack / README
1 Build notes
2
3 //-------------------------------------------------
4 //  NOTICE - Transition to SCONS
5 //-------------------------------------------------
6
7 The IoTivity build system is transitioning to SCONS. Although the 
8 makefiles are still available (until v1.0) and some developers are 
9 still using them, they are currently no longer supported. To learn more 
10 about building using SCONS see Readme.scons.txt in the repository root 
11 directory. The build steps used in continuous integration can be found
12 in auto_build.sh which is also in the the repository root directory.
13
14 //-------------------------------------------------
15 // Linux
16 //-------------------------------------------------
17 To build, run
18 make
19
20 To enable logging, ensure that 
21 -D TB_LOG 
22 is set in the compiler flags
23
24 //-------------------------------------------------
25 // Android
26 //-------------------------------------------------
27 To enable logging for Android, TB_LOG should be defined in the ./jni/Android.mk file as
28
29 LOCAL_CFLAGS := -DTB_LOG
30
31 //-------------------------------------------------
32 // Arduino
33 //-------------------------------------------------
34 To enable the logger for Arduino, TB_LOG should be defined in 
35 Properties|C/C++ Build|Settings|Tool Settings|AVR Compiler|Symbols
36 and
37 Properties|C/C++ Build|Settings|Tool Settings|AVR C++ Compiler|Symbols
38
39 Note: when building for Arduino, force the compiler to use avr-g++ to build logger.c.  Or rename logger.c to logger.cpp.
40
41 Note: when building for Arduino, several warnings are generated when trying to place strings in
42 PROGMEM
43 "warning: only initialized variables can be placed into program memory area"
44 This appears to be a known gcc bug - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34734
45