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> 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] *On Behalf Of *Madan Kanth Lanka
> *Sent:* Thursday, May 21, 2015 2:23 AM
> *To:* 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
>
>
> _______________________________________________
> iotivity-dev mailing list
> 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/2b0e9295/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 13168 bytes
Desc: not available
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150522/2b0e9295/attachment.gif>

Reply via email to