Dear Hauke:
I found that the scons can't use path of the .bash_profile . the build
environment path fllow:
------------------------------------------------------------------------------------------------------------------------
JAVA_HOME=$(/usr/libexec/java_home -v 1.7)
export JAVA_HOME=/Library/java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
export ANDROID_NDK_HOME=/Users/xiaoyan/xiaoyan/developer_IDE/android-ndk-r10
export ANDROID_NDK_ROOT=/Users/xiaoyan/xiaoyan/developer_IDE/android-ndk-r10
export PATH=${PATH}:/Users/xiaoyan/xiaoyan/developer_IDE/android-ndk-r10
export ANDROID_NDK_ROOT
export NDK_PROJECT_PATH=`pwd`
export
ANDROID_SDK_ROOT=/Users/xiaoyan/xiaoyan/developer_IDE/adt-bundle-mac-x86_64/sdk
export
ANDROID_HOME=/Users/xiaoyan/xiaoyan/developer_IDE/adt-bundle-mac-x86_64/sdk
export PATH=$PATH:$ANDROID_NDK_ROOT/:$PATH:$ANDROID_SDK_ROOT/tools:$PATH:
$ANDROID_SDK_ROOT/platform-tools:$PATH:
#Add Gradle path
export GRADLE_HOME=/Users/xiaoyan/Gradle/gradle-2.2.1
export ANDROID_GRADLE=/Users/xiaoyan/Gradle/gradle-2.2.1
export export PATH=$PATH:$GRADLE_HOME/bin
------------------------------------------------------------------------------------------------------------------------
And I use your command build again, please check ,thank you ?
------------------------------------------------------------------------------------------------------------------------
scons TARGET_OS=android TARGET_ARCH=x86_64 TARGET_TRANSPORT=IP RELEASE=1
SECURED=0
scons: Reading SConscript files ...
darwin
Creating ANDROID_HOME for Android SDK
ANDROID_HOME =
/Users/xiaoyan/IOTivity/iotivity-1.0.0/extlibs/android/sdk/android-sdk-macosx
*************************************** 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> ... *
*******************************************************************************
/Users/xiaoyan/IOTivity/iotivity-1.0.0/extlibs/android/ndk/android-ndk-r10d/build/core/add-application.mk:199:
*** Android NDK: Aborting... . Stop.
NameError: name 'platform_ver' is not defined:
File "/Users/xiaoyan/IOTivity/iotivity-1.0.0/SConstruct", line 28:
SConscript('build_common/SConscript')
File
"/usr/local/Cellar/scons/2.4.0/libexec/scons-local/SCons/Script/SConscript.py",
line 614:
return method(*args, **kw)
File
"/usr/local/Cellar/scons/2.4.0/libexec/scons-local/SCons/Script/SConscript.py",
line 551:
return _SConscript(self.fs, *files, **subst_kw)
File
"/usr/local/Cellar/scons/2.4.0/libexec/scons-local/SCons/Script/SConscript.py",
line 260:
exec _file_ in call_stack[-1].globals
File "/Users/xiaoyan/IOTivity/iotivity-1.0.0/build_common/SConscript", line
354:
env.SConscript(target_os + '/SConscript')
File
"/usr/local/Cellar/scons/2.4.0/libexec/scons-local/SCons/Script/SConscript.py",
line 551:
return _SConscript(self.fs, *files, **subst_kw)
File
"/usr/local/Cellar/scons/2.4.0/libexec/scons-local/SCons/Script/SConscript.py",
line 260:
exec _file_ in call_stack[-1].globals
File
"/Users/xiaoyan/IOTivity/iotivity-1.0.0/build_common/android/SConscript", line
235:
if platform_ver == '' or int(platform_ver) > 20:
At 2015-11-21 01:07:07, Hauke.Mehrtens at lantiq.com wrote:
Hi,
The IoTivity build system should download the correct Android SDK and NDK and
gradle version when you do not specify their locations.
Please try to run this:
scons TARGET_OS=android TARGET_ARCH=x86_64 TARGET_TRANSPORT=IP RELEASE=1
SECURED=0
Hauke
From:iotivity-dev-bounces at lists.iotivity.org [mailto:iotivity-dev-bounces at
lists.iotivity.org] On Behalf Of xiaoyanit
Sent: Freitag, 20. November 2015 17:11
To: Rahul, Rahul
Cc:iotivity-dev at lists.iotivity.org
Subject: Re: [dev] IoTivity 1.0 Build error in MAC OX 10.10.5
Dear Rahul:
I has changed the ANDROID_HOME path, and use the script download the
latested sdk for mac ox and run command look like this:
BR xiaoyanit
At 2015-11-20 01:18:01, "Rahul, Rahul" <rahul.rahul at intel.com> wrote:
Hi Xiaoyanit,