Hi Tonny,

Okay, in this case I believe it is a bug. I was going by the log Madan had 
attached to the email and deciphered the problem to be the ?invalid ?march 
option.? My apologies. As for now, can you please go to Jira.Iotivity.org and 
create a proper ticket item for this. I will likely need all the information a 
Jira ticket requires when you open one. I will start looking into this promptly 
on my side before the jira ticket item is created. Also, for to immediately 
unblock you, I suggest letting the SConscripts go ahead and download the sdk, 
ndk, and gradle for now.

Thanks,

Joseph Morrow

From: Tonny Tzeng [mailto:[email protected]]
Sent: Thursday, May 21, 2015 11:41 PM
To: Morrow, Joseph L
Cc: lanka.madan at samsung.com; iotivity-dev at lists.iotivity.org
Subject: Re: [dev] Facing build issue for Android platform

Hi Joseph,

The problem is not related to the invalid -march option, it's about the 
SConscript scripts never take the given 'ANDROID_HOME', 'ANDROID_NDK' etc 
settings from the command line, so the build system always download the sdk, 
ndk, and gradle at the 1st build, because the scripts only check the presence 
of these packages installed in fixed folders no matter users already installed 
sdk/ndk/gradle somewhere. Is it a bug?

Regards,
Tonny

On Thu, May 21, 2015 at 11:05 PM, Morrow, Joseph L <joseph.l.morrow at 
intel.com<mailto:joseph.l.morrow at intel.com>> wrote:
Hello Madan,
Recently there was a thread stating this exact scenario I believe. Since I have 
not been able to reproduce this issue locally, can you please try the solution 
provided at StackOverflow 
(http://stackoverflow.com/questions/10770296/error-while-compiling-android-jni-sample-invalid-march-option-armv5te)
 and respond here stating the results?
If this works, please fix this for the repo as well or create a Jira Ticket and 
post the work you had to take in order to fix it.
Thanks,
Joseph Morrow

From: iotivity-dev-bounces at lists.iotivity.org<mailto:iotivity-dev-bounces at 
lists.iotivity.org> [mailto:iotivity-dev-bounces at 
lists.iotivity.org<mailto:[email protected]>] On Behalf 
Of Madan Kanth Lanka
Sent: Thursday, May 21, 2015 2:23 AM
To: iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at 
lists.iotivity.org>
Subject: [dev] Facing build issue for Android platform


Hi All,



I am getting following build errors when building latest IoTivity code for 
Android platform.

Also the build script is not taking the proper ANDROID_HOME, ANDROID_NDK and 
ANDROID_GRADLE paths even if set explicitly.



Command :

scons TARGET_OS=android TARGET_ARCH=armeabi TARGET_TRANSPORT=IP 
ANDROID_NDK=/home/madan/android/android-ndk-r10d 
ANDROID_HOME=/media/D_DRIVE/Software/android-sdk_r24.2-linux/android-sdk-linux 
ANDROID_GRADLE=/home/madan/gradle/gradle-2.4




Logs

scons: Reading SConscript files ...
linux2
Creating ANDROID_HOME for Android SDK
Unzipping android lib...
Unpacking 
/media/D_DRIVE/IoTivity/GIT/02EasyConnect/extlibs/android/android-sdk_r24.2-linux.tgz
 ...
Unzipping android lib complete
ANDROID_HOME = 
/media/D_DRIVE/IoTivity/GIT/02EasyConnect/extlibs/android/sdk/android-sdk_r24.2

*************************************** 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> ...                    *
*******************************************************************************

*************************************** Info **********************************
*   Environment variable ANDROID_HOME will use default value. To override     *
* root directory of android sdk, please specify ANDROID_HOME as follows:      *
*       scons ANDROID_HOME= <path to Android SDK>                             *
*******************************************************************************

Checking for POSIX Thread Support...(cached) no
Given Transport is IP
Given OS is android
BUILD_SAMPLE is ON
CA Transport is IP
Reading ca script IP
Reading common folder script
Reading IP adapter script
Include path is ['./..//api/', 
'/media/D_DRIVE/IoTivity/GIT/02EasyConnect/deps/android/include', 
'/media/D_DRIVE/IoTivity/GIT/02EasyConnect/extlibs/android/ndk/android-ndk-r10d/platforms/android-21/arch-arm/usr/include',
 
'/media/D_DRIVE/IoTivity/GIT/02EasyConnect/extlibs/android/ndk/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include',
 
'/media/D_DRIVE/IoTivity/GIT/02EasyConnect/extlibs/android/ndk/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi/include',
 
'/media/D_DRIVE/IoTivity/GIT/02EasyConnect/extlibs/android/ndk/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/backward',
 '/media/D_DRIVE/IoTivity/GIT/02EasyConnect/dep/android/armeabi/usr/include', 
'/media/D_DRIVE/IoTivity/GIT/02EasyConnect/build_common/android/compatibility', 
'/media/D_DRIVE/IoTivity/GIT/02EasyConnect/extlibs/cereal/include', 
'/media/D_DRIVE/IoTivity/GIT/02EasyConnect/extlibs/cereal/cereal/include', 
'./..//inc/', './..//lib/libcoap-4.1.1/', './..//common/inc/', 'common/inc/', 
'./ip_adapter/android/']
Files path is ['./../common/src/oic_malloc.c', './../common/src/oic_string.c', 
'./../common/src/uarraylist.c', './../common/src/uqueue.c', 
'./../common/src/logger.c', './../common/src/oic_logger.c', 
'./../common/src/oic_console_logger.c', './adapter_util/caadapterutils.c', 
'./adapter_util/camsgparser.c', './caconnectivitymanager.c', 
'./cainterfacecontroller.c', './camessagehandler.c', 
'./canetworkconfigurator.c', './caprotocolmessage.c', './caqueueingthread.c', 
'./caremotehandler.c', './caretransmission.c', './ip_adapter/caipadapter.c', 
'./ip_adapter/caipclient.c', './ip_adapter/caipserver.c', 
'./ip_adapter/android/caipnwmonitor.c']
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: out/android/armeabi/release
Compiling 
out/android/armeabi/release/build_common/android/compatibility/android_cpp11_compat.cpp.o
Assembler messages:
Fatal error: invalid -march= option: `armv5te'
scons: *** 
[out/android/armeabi/release/build_common/android/compatibility/android_cpp11_compat.cpp.o]
 Error 1
scons: building terminated because of errors.




Thanks,

Madan

[cid:image001.gif at 01D09479.77EB3000]

[http://ext.samsung.net/mailcheck/SeenTimeChecker?do=502122e85cbba61a81dee21aa976bf9a9049a71ce11292af15677aff4b6589b54e60fcf6aeb61df594c3b6ddffd7613bcb238d00164b0be48eeb9bec5ad9c75d326bbdfb2ea96a2fcf878f9a26ce15a0]

_______________________________________________
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150522/2bcfa235/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 13168 bytes
Desc: image001.gif
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150522/2bcfa235/attachment.gif>

Reply via email to