Hello,
While trying to build Iotivity for Linux, I followed the steps as given here
<https://www.iotivity.org/documentation/linux/getting-started>. After
cloning Iotivity to my local system as given in Step 5, on moving to the
root of the Iotivity directory, I executed the following command -
          $ scons

This resulted in the error below:

In file included from resource/include/IServerWrapper.h:27:0,
                 from resource/include/WrapperFactory.h:27,
                 from resource/include/OCPlatform_impl.h:36,
                 from resource/include/OCPlatform.h:31,
                 from service/scene-manager/sampleapp/linux/sceneclient.cpp:25:
resource/include/OCResourceRequest.h: In constructor
'OC::OCResourceRequest::OCResourceRequest()':
resource/include/OCResourceRequest.h:58:37: warning: missing
initializer for member 'OC::ObservationInfo::action'
[-Wmissing-field-initializers]
             m_resourceHandle{nullptr}
                                     ^
resource/include/OCResourceRequest.h:58:37: warning: missing
initializer for member 'OC::ObservationInfo::obsId'
[-Wmissing-field-initializers]
resource/include/OCResourceRequest.h:58:37: warning: missing
initializer for member 'OC::ObservationInfo::connectivityType'
[-Wmissing-field-initializers]
resource/include/OCResourceRequest.h:58:37: warning: missing
initializer for member 'OC::ObservationInfo::address'
[-Wmissing-field-initializers]
resource/include/OCResourceRequest.h:58:37: warning: missing
initializer for member 'OC::ObservationInfo::port'
[-Wmissing-field-initializers]
service/scene-manager/sampleapp/linux/sceneclient.cpp: At global scope:
service/scene-manager/sampleapp/linux/sceneclient.cpp:58:1: error:
'condition_variable' in namespace 'std' does not name a type
 std::condition_variable g_cond;
 ^
service/scene-manager/sampleapp/linux/sceneclient.cpp: In function
'void 
onResourceDiscovered(std::shared_ptr<OIC::Service::RCSRemoteResourceObject>)':
service/scene-manager/sampleapp/linux/sceneclient.cpp:529:5: error:
'g_cond' was not declared in this scope
     g_cond.notify_all();
     ^
service/scene-manager/sampleapp/linux/sceneclient.cpp: In function
'void discoverResource()':
service/scene-manager/sampleapp/linux/sceneclient.cpp:548:5: error:
'g_cond' was not declared in this scope
     g_cond.wait_for(lck, std::chrono::seconds(4));
     ^
scons: *** 
[out/linux/x86_64/debug/service/scene-manager/sampleapp/linux/sceneclient.o]
Error 1
scons: building terminated because of errors.

Tried with RELEASE=false and without it also.

I would like to know whether any extra setup is required to get around this
problem or I am following wrong steps while doing the same.

Thanks & Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160316/4744e1cd/attachment.html>

Reply via email to