4 1) If you are building first time, then delete GBS-ROOT-RI folder from home directory.
5 Note: Default build server URL for Tizen is set in gbs configuration file @ iotivity/tools/tizen/.gbs.conf.
6 If needed, same can be modified as per appropriate target.
7 2) Go to "iotivity/" folder.
8 3) Execute following command(s) to start build based on transport selection required :
9 -> Building for all transports :
10 $ scons -f resource/csdk/stack/samples/tizen/build/SConscript TARGET_OS=tizen TARGET_TRANSPORT=ALL
12 -> Building for a specific transport :
13 $ scons -f resource/csdk/connectivity/build/tizen/SConscript TARGET_OS=tizen TARGET_TRANSPORT=IP
15 -> Building for multiple transports :
16 $ scons -f resource/csdk/connectivity/build/tizen/SConscript TARGET_OS=tizen TARGET_TRANSPORT=IP,BT,BLE
18 4) By default, above command will build csdk samples also.
20 Note :- Upon successful execution of above command(s) RI library and sample applications will be
21 generated at path "~/GBS-ROOT-RI/local/repos/<target>/armv7l/RPMS".
23 Procedure to Execute Sample App:
24 ================================
25 1) Copy the generated rpms(com-oic-ri-0.1-1.armv7l.rpm, com-oic-ri-sample-0.1-1.armv7l.rpm) to Tizen Device
26 (say /opt/usr/media/xxx/)
29 4) cd /opt/usr/media/xxx/
30 5) change-booting-mode.sh --update
32 6) Install the rpms using the following commands:
33 a) rpm -Uvh com-oic-ri-0.1-1.armv7l.rpm --force --nodeps
34 b) rpm -Uvh com-oic-ri-sample-0.1-1.armv7l.rpm --force --nodeps
35 7) For IP transport, apply net-config smack rules using below command:
36 a) chsmack -a "net-config" /usr/apps/com.oic.ri.sample/bin/*
37 b) chsmack -e "net-config" /usr/apps/com.oic.ri.sample/bin/*
38 7) RPM will be installed in "/usr/apps/"
39 Execute the sample app by below commands
40 i) cd /usr/apps/com.oic.ri.sample/bin
41 a) ./ocserver -o0 [For Server sample]
42 b) ./occlient -t2 [For client sample]
43 c) ./ocrouting [For Gateway sample]