Can't build IoTivity Base Android API

45
March 20, 2019, at 01:40 AM

I am following this tutorial to build the IoTivity Base Android API:

https://wiki.iotivity.org/android_build_instructions#android_example_apps

I downloaded the IoTivity project from here:

https://iotivity.org/downloads

I am at the step where I use the command to build IoTivity for Android:

scons TARGET_OS=android

And I get the output:

*********************** Error ************************ * * * Please make sure that 7-zip is in your System PATH * * *

NameError: name 'host_arch' is not defined: File "C:\Users\Darius\Downloads\iotivity-1.3.1.tar\iotivity-1.3.1\iotivity-1.3.1\SConstruct", line 28: SConscript('build_common/SConscript') File "c:\python27\lib\site-packages\scons\SCons\Script\SConscript.py", line 667: return method(*args, **kw) File "c:\python27\lib\site-packages\scons\SCons\Script\SConscript.py", line 604: return _SConscript(self.fs, *files, **subst_kw) File "c:\python27\lib\site-packages\scons\SCons\Script\SConscript.py", line 285: call_stack[-1].globals) File "C:\Users\Darius\Downloads\iotivity-1.3.1.tar\iotivity-1.3.1\iotivity-1.3.1\build_common\SConscript", line 795: env.SConscript(target_os + '/SConscript') File "c:\python27\lib\site-packages\scons\SCons\Script\SConscript.py", line 604: return _SConscript(self.fs, *files, **subst_kw) File "c:\python27\lib\site-packages\scons\SCons\Script\SConscript.py", line 285: call_stack[-1].globals) File "C:\Users\Darius\Downloads\iotivity-1.3.1.tar\iotivity-1.3.1\iotivity-1.3.1\build_common\android\SConscript", line 19: SConscript('#/extlibs/android/ndk/SConscript') File "c:\python27\lib\site-packages\scons\SCons\Script\SConscript.py", line 667: return method(*args, **kw) File "c:\python27\lib\site-packages\scons\SCons\Script\SConscript.py", line 604: return _SConscript(self.fs, *files, **subst_kw) File "c:\python27\lib\site-packages\scons\SCons\Script\SConscript.py", line 285: call_stack[-1].globals) File "C:\Users\Darius\Downloads\iotivity-1.3.1.tar\iotivity-1.3.1\iotivity-1.3.1\extlibs\android\ndk\SConscript", line 24: if host_arch in ['x86_64']:

I did add 7-zip to my PATH system variable and restarted. Anyone have any idea what the problem may be?

I am running on a Windows machine with Python 2.7.16

READ ALSO
how to disable screenshot on android p

how to disable screenshot on android p

Currently i am using FLAG_SECURE method to disable the screenshot functionality but users having Android P are able to take screenshotsHow to restrict that?

45
FragmentScenario configuration - Binary XML file line, Error inflating class <widget> while testing with espresso

FragmentScenario configuration - Binary XML file line, Error inflating class <widget> while testing with espresso

Inflating error while trying to use FragmentScenario with launchFragment and launchFragmentInContainer if using material component in XML

49
Mock a bluetooth device

Mock a bluetooth device

I have to mock a bluetooth device that would first pair with an Android device and then send predefined data to an Android appI have no access to source code of the app, but I managed to get bluetooth communication packets sent between devices (using...

39
How to determine if a thread from the previous session is currently running

How to determine if a thread from the previous session is currently running

My app launches an AsyncTask thread that retrieves some information from a websiteWhen the user exits the app while the thread is still running, the thread continues to run

24