Hi,
Is this patch still applied by the build system: 
https://github.com/openwrt/packages/blob/master/net/iotivity/patches/020-Do-not-set-architecture-specific-flags.patch
 ? IoTivity in OpenWrt does not use the predefined compiler options from the 
IoTivity build system, but it uses the compiler options from the OpenWrt 
system, so we do not have to add code for each different variant.  OpenWrt uses 
39 different sets of compiler options for the different architectures and then 
the optimization for the specific CPUs.
Please attach your changes to the OpenWrt package to make it use IoTivity 
1.2.0-RC2 and also a little bit more context around the error message.
Hauke

From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of ???
Sent: Wednesday, September 28, 2016 9:53 AM
To: iotivity-dev at lists.iotivity.org
Subject: [dev] IoTivity 1.2.0 build for openwrt




Dear

I am trying to build iotivity for openwrt, there are problems to compile this.



After get the latest version of Iotivity in master branch(maybe almost 1.2.0 
version.

There are few errors.

I use same Makefile(1.1.0 
-https://github.com/openwrt/packages/tree/master/net/iotivity),

but remove PKG_SOIURCE_URL, because this code is already downloaded.

First error was about "liboctbstack" to error to find the rule to make 
liboctbstack. but

after change liboctbstack to octbstack in makefile, it is passed,



After that there is below error.

It looks related cross-compile but could not find the solution.

scons: done reading SConscript files. scons: Building targets ... Compiling 
out/linux/arm/release/extlibs/cjson/cJSON.o extlibs/cjson/cJSON.c:1:0: error: 
bad value (armv5te) for -march= switch /* ^ scons: *** 
[out/linux/arm/release/extlibs/cjson/cJSON.o] Error 1 scons: building 
terminated because of errors.


Could anyone have the solution or same problems about this?



Thank you in advance



PS)

When I tried with iotivity version 1.1.0 refering 
(https://github.com/openwrt/packages/tree/master/net/iotivity)

There were some problems but, anyway could compile and get static libraries.

(Some gcc problem related to std:stoi and std:to_string)

In below module, only include CONFIG_PACKAGE_iotivity and 
CONFIG_PACKAGE_iotivity-cpp

(CONFIG_PACKAGE_iotivity \
 CONFIG_PACKAGE_iotivity-cpp \
 CONFIG_PACKAGE_iotivity-things-manager-lib \
 CONFIG_PACKAGE_iotivity-oic-middle \
 CONFIG_PACKAGE_iotivity-things-manager \
 CONFIG_PACKAGE_iotivity-resource-container-lib \
 CONFIG_PACKAGE_iotivity-resource-container-sample \
 CONFIG_PACKAGE_iotivity-resource-container-hue \
 CONFIG_PACKAGE_iotivity-example-garage \
 CONFIG_PACKAGE_iotivity_DEBUG \
 CONFIG_PACKAGE_iotivity_SECURE)





[cid:image001.gif at 01D21A38.191764E0]

[http://v70ext.samsung.net/mail/ext/v1/external/status/update?userid=junhak.lim&do=bWFpbElEPTIwMTYwOTI4MDc1MzAwZXBjbXMxcDZlNTYzOTA3MWJmZDU4MDY1YmIyYjczYWFlOGFiYjNmZSZyZWNpcGllbnRBZGRyZXNzPWlvdGl2aXR5LWRldkBsaXN0cy5pb3Rpdml0eS5vcmc_]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160929/97f82846/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 13402 bytes
Desc: image001.gif
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160929/97f82846/attachment.gif>

Reply via email to