Hi Cliodhna, To add IoTivity to Yocto, you should add the meta-oic layer to your build system: http://git.yoctoproject.org/cgit/cgit.cgi/meta-oic. The top-level README file in that layer includes some instructions in that regard but do not hesitate to get back to this list if anything is unclear.
What I'm less sure about is the status of BLE support on Linux systems (such as Ubuntu, Yocto, etc.). Thanks, Geoffroy From: iotivity-dev-bounces at lists.iotivity.org [mailto:[email protected]] On Behalf Of Ni Scanaill, Cliodhna Sent: Monday, November 14, 2016 11:41 AM To: Ni Scanaill, Cliodhna <cliodhna.ni.scanaill at intel.com>; iotivity-dev at lists.iotivity.org Subject: [dev] Using ADT to cross-compile for Yocto Hi, Can anyone share instructions on cross-compiling IoTivity for Yocto (Intel Edison/Gen 2) please? Thanks, Cliodhna Cliodhna Ni Scanaill Sensor Applications Engineer IR1-0 ILE Open Lab D3-08 Intel Labs Europe Collinstown Industrial Park, Leixlip, Co Kildare Email: cliodhna.ni.scanaill at intel.com<mailto:cliodhna.ni.scanaill at intel.com> From: iotivity-dev-bounces at lists.iotivity.org<mailto:iotivity-dev-bounces at lists.iotivity.org> [mailto:[email protected]] On Behalf Of Ni Scanaill, Cliodhna Sent: Thursday, November 10, 2016 1:09 PM To: iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at lists.iotivity.org> Subject: [dev] cross-compiling IoTivity application for Yocto Hi, I'm attempting to build a BLE version of simpleClient on my Ubuntu machine for my Edison board. I've modified the simpleClient code accordingly OCPlatform::findResource( "", requestURI.str(), CT_ADAPTER_GATT_BTLE, &foundResource ); I've successfully built this (but not tested it yet) using "scons TARGET_OS=android TARGET_TRANSPORT=BLE" Now, I want to build BLE example for my Edison. I've extracted the SDK and can build and deploy helloworld.cpp successfully. However, when I attempt to cross-compile my new simpleClientBLE.cpp file, I get the following error: $ make helloworld i586-poky-linux-g++ -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -mstackrealign -fno-omit-frame-pointer --sysroot=/opt/poky-edison/1.7.3/sysroots/core2-32-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed helloworld.cpp -o helloworld However, when I attempt to build my simpleclientBLE.cpp file, I get the following error: $ make simpleclientBLE i586-poky-linux-g++ -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -mstackrealign -fno-omit-frame-pointer --sysroot=/opt/poky-edison/1.7.3/sysroots/core2-32-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed simpleclientBLE.cpp -o simpleclientBLE In file included from /opt/poky-edison/1.7.3/sysroots/core2-32-poky-linux/usr/include/c++/4.9.1/mutex:35:0, from simpleclientBLE.cpp:27: /opt/poky-edison/1.7.3/sysroots/core2-32-poky-linux/usr/include/c++/4.9.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support for the \ ^ simpleclientBLE.cpp:29:24: fatal error: OCPlatform.h: No such file or directory #include "OCPlatform.h" ^ compilation terminated. make: *** [simpleclientBLE] Error 1 Any suggestions how to resolve this? e.g. does someone have a makefile that they could share with me to successfully cross-compile using the SDK? Or do you build directly on the target? Thanks, Cliodhna Cliodhna Ni Scanaill Sensor Applications Engineer IR1-0 ILE Open Lab D3-08 Intel Labs Europe Collinstown Industrial Park, Leixlip, Co Kildare Phone: + 353 1 606 7835 Email: cliodhna.ni.scanaill at intel.com<mailto:cliodhna.ni.scanaill at intel.com> -------------------------------------------------------------- Intel Research and Development Ireland Limited Registered in Ireland Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -------------------------------------------------------------- Intel Research and Development Ireland Limited Registered in Ireland Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20161114/047b15ad/attachment.html>
