thank you all !!
I tried to set environment path.
so, I searched how to set environment path of NDK and GRADLE, and I did
like this
- open "/home/.bashrc" file
- add
"export
ANDROID_NDK=/home/friend117/iotivity/extlibs/android/ndk/android-ndk-r10d"
"export
GRADLE_HOME=/home/friend117/iotivity/extlibs/android/gradle/gradle-2.2.1"
- save and close
and terminal, build command "scons TARGET_OS=android TARGET_ARCH=armeabi
TARGET_TRANSPORT=IP ES_ROLE=mediator ES_TARGET_ENROLLEE=arduino RELEASE=0"
then,
[image: ?? ??? 1]
maybe I missed something.
1. incorrect path : Is there any way that finding correct path of NDK and
Gradle?
I installed NDK by android studio and gradle by "sudo apt-get install
gradle"
I'm confuss because gradle version is not match between intalled and
version confirm.
I installed "2.2.1" but version conform is bellow
[image: ?? ??? 2]
2. the way of environment path setting is right? I saw it from google but
I'm not sure about that.
*) Mr. Ha,
the version informs are,
gcc version : 5.3.1
boost version : 1.58.0
and my system,
- Ubuntu 16.04 - 64bit
I just tried easy setup "https://wiki.iotivity.org/easy_setup"
so enrollee : arduino mega + ethernet shield
mediator : android
that's what i'm doing now!!
*) Mr. Wu,
thank you. I'm trying set environment path because of your advice.
*) Mr. MAHSKY ,
when i did build command,
"scons TARGET_OS=android TARGET_ARCH=armeabi TARGET_TRANSPORT=IP
ES_ROLE=mediator ES_TARGET_ENROLLEE=arduino RELEASE=0
ANDROID_NDK=/home/friend117/iotivity/extlibs/android/ndk/android-ndk-r10d"
only gradle infor is shown
[image: ?? ??? 3]
but this error is also occured
[image: ?? ??? 4]
Is there any way to add gradle path to build command?
I tried
"scons TARGET_OS=android TARGET_ARCH=armeabi TARGET_TRANSPORT=IP
ES_ROLE=mediator ES_TARGET_ENROLLEE=arduino RELEASE=0
ANDROID_NDK=/home/friend117/iotivity/extlibs/android/ndk/android-ndk-r10d
ANDROID_GRADLE=/home/friend117/iotivity/extlibs/android/gradle/gradle-2.2.1/bin"
but it doesn't work.
2016-05-09 18:38 GMT+09:00 HEMANT MAHSKY <h.mahsky at samsung.com>:
> Hi ,
>
>
>
> Please follow below steps to build & run easy setup for Android platform
>
>
>
> $scons TARGET_OS=android TARGET_ARCH=armeabi TARGET_TRANSPORT=IP
> ES_ROLE=mediator ES_TARGET_ENROLLEE={Platform} RELEASE=0
> ANDROID_NDK=<iotivity>/extlibs/android/ndk/android-ndk-r10d
>
> {Platform can be } -> arduino , linux, tizen
>
> example -
>
> $scons TARGET_OS=android TARGET_ARCH=armeabi TARGET_TRANSPORT=IP
> ES_ROLE=mediator ES_TARGET_ENROLLEE=linux RELEASE=0
> ANDROID_NDK=/home/h.mahsky/iotivity_04April_2016/iotivity/extlibs/android/ndk/android-ndk-r10d
>
>
>
>
> or
>
>
>
> $export ANDROID_SDK=/home/h.mahsky/Link to
> jay_extlibs/android/sdk/android-sdk_r24.2
>
> $export
> ANDROID_NDK=/home/h.mahsky/iotivity_04April_2016/iotivity/extlibs/android/ndk/android-ndk-r10d
>
> $scons TARGET_OS=android TARGET_ARCH=armeabi TARGET_TRANSPORT=IP
> ES_ROLE=mediator ES_TARGET_ENROLLEE=linux RELEASE=0
>
>
>
> - > If your system is not having the Android SDK, NDK then follow
> instructions given at build output to install it.
>
> - > Also, you can disable other services & sample building if you just
> want to explore Easy setup, it will reduce build time.
>
> 1. To disable all other service building, please replace attached
> SConscript with <iotivityRoot>/service/SConscript
>
> 2. To disable sample building comment cmdBuildExamples from
> <iotivityRoot>/android/android_api/SConscript
>
>
>
> If you are successful in building, please continue following instructions
> given in the build instructions file. Apart from building Android, you
> need to build for one more platform for Enrollee device.
>
>
>
> Please feel free to ask if you face any difficulties in further execution.
>
>
>
> Thanks,
>
> Hemant
>
>
>
>
>
>
>
>
>
>
>
> ------- *Original Message* -------
>
> *Sender* : Maxi Wu<maxi.wu at u-media.com.tw>
>
> *Date* : May 09, 2016 12:59 (GMT+05:30)
>
> *Title* : Re: [dev] How to operate easy setup on iotivity?
>
>
>
> 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.
>
2016-05-09 11:18 GMT+09:00 ??? <jihun.ha at samsung.com>:
> Hi. Mr. Kim,
>
>
>
> Which platform do you want to build Iotivity for? Android?
>
> Because, if you want to do for Android, you need ANDROID_HOME and
> ANDROID_NDK settings in scons. Otherwise, you don't need to do.
>
> So, if you want to do for Ubuntu, you can skip your problem, temporarily,
> by puting as below:
>
> scons service/easy-setup
>
>
>
> And could you give us your gcc and boost versions?
>
> I think your problem happens due to those.
>
>
>
> Thank you.
>
BR, Jihun Ha.
>
>
> *From:* iotivity-dev-bounces at lists.iotivity.org [mailto:
> iotivity-dev-bounces at lists.iotivity.org] *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 --------------
HTML ?????? ??????????????...
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160511/5be66fcf/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 29972 bytes
Desc: ?????? ?? ????????.
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160511/5be66fcf/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 32011 bytes
Desc: ?????? ?? ????????.
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160511/5be66fcf/attachment-0001.png>