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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20161110/845889d2/attachment.html>