I haven?t try Android build, but here is my two cents, may not be correct.
The error say your are missing some environment variable, not scons arguments. When you execute scons arg=value, those are arguments. If you are compile on Linux, I think you could define ANDROID_NDK and ANDROID_GRADLE in /etc/environment. I am no Linux expert, correct me if I was wrong. Note that your system should already have NDK and gradle installed. From: iotivity-dev-bounces at lists.iotivity.org [mailto:[email protected]] On Behalf Of ??? Sent: Sunday, May 8, 2016 1:25 PM To: iotivity-dev at lists.iotivity.org Subject: [dev] How to operate easy setup on iotivity? dear all, Hello, I?m a beginner of android, linux, Arduino. But I?m trying iotivity for myself to be a SW engineer. I have a problem that compile android platform that is indicated ?~/iotivity/service\easy-setup\Build_Instructions_Android_Arduino.txt? while I?m trying easy setup. The build steps are, 1) Compilation using Scons 0) Prerequisite exports for Android export ANDROID_HOME=<ANDROID_HOME> export ANDROID_NDK=<ANDROID_NDK> a) In the IoTivity root source folder execute scons TARGET_OS=android TARGET_ARCH=armeabi TARGET_TRANSPORT=IP ES_ROLE=mediator ES_TARGET_ENROLLEE=arduino RELEASE=0 ????. When I tried ?a)? step, errors are occurred. two info are shown 1. 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> ... 2. 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> So I did ?scons ANDROID_NDK=/home/friend117/Android/Sdk/ndk-bundle? then, next error is shown. service/resource-encapsulation/src/common/primitiveResource/unittests/ResourceAttributesTest.cpp:80:5: required from here /usr/local/include/boost/utility/addressof.hpp:59:47: error: call of overloaded 'f(boost::detail::addr_impl_ref<std::nullptr_t>, int)' is ambiguous return boost::detail::addressof_impl<T>::f( boost::detail::addr_impl_ref<T> what should I do for next step? And what is this error? It always shown even if I did ?sudo apt-get install libcurl4-openssl-dev? *********************************** Error ************************************* * Cannot build hue sample. Please install libcurl. * Example (Ubuntu): * sudo apt-get install libcurl4-openssl-dev * sudo ldconfig * Hint: check with pkg-config --libs libcurl and clear scons cache. * Skipping hue sample build. Please help beginner!!!!! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160509/1f3c559c/attachment.html>
