X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Readme.scons.txt;h=fd0b3a02bef686ad4329024eb5005c3a4d35b857;hb=d1181ec6f847086c2689a7a264b9afc416441b80;hp=4ea28b1d69d4a7ae8eb406a61111aacaf4e59509;hpb=e57727a4efb241a333a5d0a614d025bc032cf573;p=platform%2Fupstream%2Fiotivity.git diff --git a/Readme.scons.txt b/Readme.scons.txt index 4ea28b1..fd0b3a0 100644 --- a/Readme.scons.txt +++ b/Readme.scons.txt @@ -9,8 +9,8 @@ command in this directory) Build release binaries: $ scons -(Note: C++ sdk requires cereal. Please follow the instruction in the build -message to install cereal) +(Note: C sdk requires tiny-cbor. Please follow the instruction in the build +message to install tiny-cbor) Build debug binaries: $scons RELEASE=false @@ -90,7 +90,7 @@ To build for Android, Andorid NDK and SDK are required. Arduino: To build for Arduino, Arduino IDE is required. Arduino IDE: http://arduino.cc/en/Main/Software - (Note: recommend install Arduino IDE >=1.5.7) + (Note: recommend install Arduino IDE >=1.5.8) Arduino builds are dependent on latest Time library. Download it from here: http://www.pjrc.com/teensy/td_libs_Time.html @@ -116,13 +116,10 @@ so you don't need to add it in command line each time. The build script will guide you to do that.) Tizen: -To build for tizen platform cereal library is needed. -Please download cereal if it is not present in extlibs/cereal folder -and apply the patch as following: - $ git clone https://github.com/USCiLab/cereal.git extlibs/cereal/cereal - $ cd extlibs/cereal/cereal - $ git reset --hard 7121e91e6ab8c3e6a6516d9d9c3e6804e6f65245 - $ git apply ../../../resource/patches/cereal_gcc46.patch +To build for tizen platform tiny-cbor library is needed. +Please download tiny-cbor if it is not present in extlibs/tiny-cbor folder +by doing the following: + $ git clone https://github.com/01org/tinycbor.git extlibs/tinycbor/tinycbor * 3. External libraries @@ -151,13 +148,14 @@ allowed value, please execute command 'scons TARGET_OS=android -Q -h') 3. Build IoTivity project for Arduino $ cd - $ scons TARGET_OS=arduino TARGET_ARCH=xxx BOARD=yyy -(xxx can be avr, arm; yyy is the name of the board, to get its allowed value -run: scons TARGET_OS=arduino TARGET_ARCH=xxx -h. You may see a option 'CPU' in -the output of above command line, that's due to some boards have different -processors, to specify the processor, add 'CPU=zzz' in the command line. If no -'CPU' option exists, that means the board only support one kind of processor, -it's unnecessary to specify it) + $ sudo apt-get install dos2unix + $ scons TARGET_OS=arduino TARGET_ARCH=xxx BOARD=yyy SHIELD=zzz +(xxx can be avr, arm; yyy is the name of the board, zzz is the shield type, to +get allowed values run: scons TARGET_OS=arduino TARGET_ARCH=xxx SHIELD=zzz -h. +You may see a option 'CPU' in the output of above command line, that's due to +some boards have different processors, to specify the processor, add 'CPU=zzz' +in the command line. If no 'CPU' option exists, that means the board only +support one kind of processor, it's unnecessary to specify it) 4. Build Iotivity project for Tizen $ cd @@ -167,24 +165,6 @@ gbs is default build tool for Tizen platfrom, we can refer the following wiki to setup Tizen development environment: https://source.tizen.org/documentation/developer-guide/getting-started-guide) -=== Build IoTivity project on Android === - -1. Build IoTivity project for Android(It's the same as on Ubuntu) - $ cd - $ scons TARGET_OS=android TARGET_ARCH=xxx -(xxx can be x86, armeabi, armeabi-v7a, armeabi-v7a-hard ...) - -2. Build IoTivity project for Arduino(It's the same as on Ubuntu) - $ cd - $ scons TARGET_OS=arduino TARGET_ARCH=xxx BOARD=yyy -(xxx can be avr, arm; yyy is the name of the board, to get its allowed value -run: scons TARGET_OS=arduino TARGET_ARCH=xxx -h. You may see a option 'CPU' in -the output of above command line, that's due to some boards have different -processor, to specify the processor, add 'CPU=zzz' in the command line. If no -'CPU' option exists, that means the board only support one kind of processor, -it's unnecessary to specify it) - - Note: Currently most IoTivity project doesn't support Windows, so you can't set TARGET_OS to 'windows' except the project support Windows. @@ -220,6 +200,3 @@ To build: $ auto_build.sh To clean: $ auto_build.sh -c - -2) For Arduino build, the Time library should >=1.3. The old can only be built -with Arduino IDE 1.0.x