Jihun Ha, Give https://gerrit.iotivity.org/gerrit/#/c/18739/ a try it should fix both your issues. George
From: iotivity-dev-bounces at lists.iotivity.org [mailto:iotivity-dev-boun...@lists.iotivity.org] On Behalf Of Nash, George Sent: Tuesday, April 11, 2017 1:23 PM To: jihun.ha at samsung.com; iotivity-dev at lists.iotivity.org Subject: Re: [dev] Android build fails in 1.3-rel branch For the first error the fix is quite easy I have filed a Jira ticket for that issue and will have a patch submitted shortly https://jira.iotivity.org/browse/IOT-2029 I have not been able to reproduce the second issue. I have seen this type of issue when old build products are causing an error. Here are two things to try. 1st Do a clean build $> scons TARGET_OS=android TARGET_ARCH=armeabi SECURED=0 LOGGING=1 WITH_TCP=1 WITH_CLOUD=1 -c $> scons TARGET_OS=android TARGET_ARCH=armeabi SECURED=0 LOGGING=1 WITH_TCP=1 WITH_CLOUD=1 If that does not work manually clean the build output and try again sometimes the scons clean misses something that should have been cleaned and this solves the problem. If you have another build linux or tizen this will wipe out the build output for those OS if you may want to be more selective than this. Sometimes just deleting the .sconsign.dblite file will fix the issue but I normally just rebuild everything. $> scons TARGET_OS=android TARGET_ARCH=armeabi SECURED=0 LOGGING=1 WITH_TCP=1 WITH_CLOUD=1 ?c $> rm -fr out #delete the output directory $> rm .sconsign.dblite #delete scons?s database file that it uses for tracking which files need a rebuild. $> scons TARGET_OS=android TARGET_ARCH=armeabi SECURED=0 LOGGING=1 WITH_TCP=1 WITH_CLOUD=1 From: iotivity-dev-bounces at lists.iotivity.org<mailto:iotivity-dev-bounces at lists.iotivity.org> [mailto:iotivity-dev-boun...@lists.iotivity.org] On Behalf Of ??? Sent: Tuesday, April 11, 2017 4:46 AM To: iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at lists.iotivity.org> Subject: Re: [dev] Android build fails in 1.3-rel branch Hi All. Below problem can be resolved by https://gerrit.iotivity.org/gerrit/#/c/18701/ patch. However, I've encountered other problem as below: jhha85:~/workspace/iotivity$<mailto:hha85 at jhha85-Linux-System:~/workspace/iotivity$> scons TARGET_OS=android TARGET_ARCH=armeabi SECURED=0 LOGGING=1 WITH_TCP=1 WITH_CLOUD=1 scons: Reading SConscript files ... HEAD is now at acf202a Fix stack corruption due to calling convention mismatch linux2 Creating ANDROID_HOME for Android SDK ANDROID_HOME = /home/jhha85/workspace/iotivity/extlibs/android/sdk/android-sdk-linux *************************************** Info ********************************** * Android NDK path isn't set, the default will be used. You can set * * environment variable ANDROID_NDK or add it in command line as: * * # scons ANDROID_NDK=<path to android NDK> ... * ******************************************************************************* *************************************** Info ********************************** * Android Gradle path isn't set, the default will be used. You can set * * environment variable ANDROID_GRADLE or add it in command line as: * * # scons ANDROID_GRADLE=<path to android GRADLE> ... * ******************************************************************************* Copied IoTivity version of config.h to /home/jhha85/workspace/iotivity/extlibs/mbedtls/mbedtls/include/mbedtls/config.h Checking for POSIX Thread Support...yes HEAD is now at acf202a Fix stack corruption due to calling convention mismatch scons: *** Two environments with different actions were specified for the same target: libcjson_cJSON.o File "/home/jhha85/workspace/iotivity/extlibs/cjson/SConscript", line 31, in <module> Anyone who can resolve the problem? Thank you. Best Regards, Jihun Ha (???/???, Ph.D.) IoT, IoTivity, OIC | IoT Lab Software R&D Center | Samsung Electronics Co., Ltd Mobile +82 10 2533 7947 jihun.ha at samsung.com | jhha85 at gmail.com --------- Original Message --------- Sender : ??? <jihun.ha at samsung.com<mailto:jihun.ha at samsung.com>> Senior Engineer/IoT Lab(S/W??)/???? Date : 2017-04-11 16:14 (GMT+9) Title : [dev] Android build fails in 1.3-rel branch Hi. All. I'm trying to build iotivity for Android platform but encountering a failure as below: jhha85:~/workspace/iotivity$<mailto:jhha85 at jhha85-Linux-System:~/workspace/iotivity$> scons TARGET_OS=android TARGET_ARCH=armeabi SECURED=0 LOGGING=1 WITH_TCP=1 WITH_CLOUD=1 scons: Reading SConscript files ... AttributeError: 'SConsEnvironment' object has no attribute 'Download': File "/home/jhha85/workspace/iotivity/SConstruct", line 28: SConscript('build_common/SConscript') File "/usr/lib/scons/SCons/Script/SConscript.py", line 614: return method(*args, **kw) File "/usr/lib/scons/SCons/Script/SConscript.py", line 551: return _SConscript(self.fs, *files, **subst_kw) File "/usr/lib/scons/SCons/Script/SConscript.py", line 260: exec _file_ in call_stack[-1].globals File "/home/jhha85/workspace/iotivity/build_common/SConscript", line 592: env.SConscript(target_os + '/SConscript') File "/usr/lib/scons/SCons/Script/SConscript.py", line 551: return _SConscript(self.fs, *files, **subst_kw) File "/usr/lib/scons/SCons/Script/SConscript.py", line 260: exec _file_ in call_stack[-1].globals File "/home/jhha85/workspace/iotivity/build_common/android/SConscript", line 12: SConscript('../../extlibs/android/ndk/SConscript') File "/usr/lib/scons/SCons/Script/SConscript.py", line 614: return method(*args, **kw) File "/usr/lib/scons/SCons/Script/SConscript.py", line 551: return _SConscript(self.fs, *files, **subst_kw) File "/usr/lib/scons/SCons/Script/SConscript.py", line 260: exec _file_ in call_stack[-1].globals File "/home/jhha85/workspace/iotivity/extlibs/android/ndk/SConscript", line 25: env.Download('android-ndk-r10d.bin', 'http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86_64.bin') Is there anyone who knows the problem and how to resolve this? My linux machine is Ubuntu 16.04. Thank you. Best Regards, Jihun Ha (???/???, Ph.D.) IoT, IoTivity, OIC | IoT Lab Software R&D Center | Samsung Electronics Co., Ltd Mobile +82 10 2533 7947 jihun.ha at samsung.com | jhha85 at gmail.com _______________________________________________ iotivity-dev mailing list iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at lists.iotivity.org> https://lists.iotivity.org/mailman/listinfo/iotivity-dev [cid:image001.gif at 01D2B2DD.96EC49B0] [Image removed by sender.] -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170411/3fa8078e/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 13402 bytes Desc: image001.gif URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170411/3fa8078e/attachment.gif> -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 823 bytes Desc: image002.jpg URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170411/3fa8078e/attachment.jpg>