I managed to get some far with instructions on the wiki - https://wiki.iotivity.org/iotivity_porting_to_arm_based_platforms. [Thanks Madan]
I still get errors. What I understand looking at config.log is, compilation of .sconf_temp/confitest_1.c failed due to not being able to find the include header. Compiling .sconf_temp/conftest_1.o In file included from .sconf_temp/conftest_1.c:3:0: /opt/cross-gcc-4.7.2-armv7-hard/arm-linux-gnueabihf/libc/usr/include/pthread.h:23:21: fatal error: stddefs.h: No such file or directory compilation terminated. scons: Configure: no The error on the console output though is different. In file included from resource/c_common/oic_malloc/src/oic_malloc.c:26:0: /opt/cross-gcc-4.7.2-armv7-hard/arm-linux-gnueabihf/libc/usr/include/stdlib.h:140:1: error: unknown type name 'size_t' Including path to ?stddef.h? in build_common/linux/SConscript doesn?t seem to fix this ?. Another one that is similar is ?wchar_t unknown type?. What does this mean? Iotivity build does test builds to check the validity of dependencies and components? If so, where is the Sconscript for building the *.c and *.cpp files in .sconf_temp? I could try adding the include path and try rebuilding. Or, am I totally off? Thanks, Satheesh From: Madan Kanth Lanka [mailto:[email protected]] Sent: Tuesday, May 10, 2016 12:22 AM To: Narayanan, Satheesh Cc: iotivity-dev at lists.iotivity.org Subject: Re: [dev] Iotivity for Linux/Arm Hi Satheesh, Please go through the steps listed in the following wiki page and I hope you might find some point which is missing. https://wiki.iotivity.org/iotivity_porting_to_arm_based_platforms If problem still persists or wiki page is not covering your specific problem, please revert back. Thanks, Madan ------- Original Message ------- Sender : Narayanan, Satheesh<Satheesh.Narayanan at sylvania.com<mailto:Satheesh.Narayanan at sylvania.com>> Date : May 09, 2016 22:51 (GMT+05:30) Title : [dev] Iotivity for Linux/Arm Hello experts, Looking for help getting Iotivity build for ARM architecture for linux. Boost library built using the cross compiler (though bzlib2 had issues, but I filtered it out as I won?t be using them). When running $ scons TARGET_OS=linux TARGET_ARCH=arm: Conf.CheckLib(?boost_thread?, language=?C++?) returns false. Notes: - bin.v2/libs/thread/build/gcc-arm/release/link-static/threading-multi/libboost_thread.a and Bin.v2/libs/thread/build/gcc-arm/release/threading-multi/libboost_thread.so.1.55.0 are successfully built. - readelf confirms that both of them are ELF2/ARM. - Cross compiler used is - arm-linux-gnueabihf-g++; Boost is also built using this compiler. - Build_common/linux/SConscript modified to use armv7-a instead of ?armv5te?, as the arm we are using is V7. Help please! Thanks, [cid:image001.gif at 01D1AAC5.33CE4390] -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160510/27e50762/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/20160510/27e50762/attachment.gif>
