Hi, Try install these external libraries as described in Readme.scons.txt.
$ sudo apt-get install libboost-dev libboost-program-options-dev libexpat1-dev libboost-thread-dev uuid-dev libssl-dev Regards, Sung. ------- Original Message ------- Sender : Koushik Girijala<g.koushik at samsung.com> Lead Engineer/SRI-Bangalore-IoT & Connectivity/Samsung Electronics Date : 2015-10-20 23:45 (GMT+09:00) Title : Re: [dev] Iotivity-1.0.0 Linux (ubuntu) build problem Hi Ravi, I am using boost 1.55 version in my Linux PC, but still am facing below build error when building for Linux. Regards, Koushik ------- Original Message ------- Sender : Li, ShaoguangX<shaoguangx.li at intel.com> Date : Oct 20, 2015 11:12 (GMT+05:30) Title : Re: [dev] Iotivity-1.0.0 Linux (ubuntu) build problem Hi Ravi, I?m using the boost 1.58 currently. I?ll try version 1.55 and get back to you later. Thanks. Regards, Shaoguang From: RAVI NANJUNDAPPA [mailto:[email protected]] Sent: Tuesday, October 20, 2015 13:39 To: RAVI NANJUNDAPPA; Li, ShaoguangX; iotivity-dev at lists.iotivity.org Subject: Re: Re: [dev] Iotivity-1.0.0 Linux (ubuntu) build problem Forgot to mention about the boost version. Please check if you've Boost version 1.55. Thanks and Best Regards, N Ravi ------- Original Message ------- Sender : RAVI NANJUNDAPPA<nravi.n at samsung.com> Chief Engineer/SRI-Bangalore-Open Source/Samsung Electronics Date : Oct 20, 2015 10:22 (GMT+05:30) Title : Re: [dev] Iotivity-1.0.0 Linux (ubuntu) build problem Hello, I've tried to build the 1.0.0-dev code in my x86 (32-bit ) Ubuntu machine (12.04 release) and I didn't get any build related issues. But certainly there is a difference between the gcc version. Am using gcc version 4.9.2 (Ubuntu 4.9.2-0ubuntu1~12.04) in my system. Looks like you are using 4.6 version and the document https://www.iotivity.org/documentation/linux/getting-started, also suggests to have 4.6.1 version of g++. If there is a need to upgrade the g++ to a particular version then it needs to be updated in the above link as well, to avoid such build related issues. Requesting the incharge-person to update the document, if any changed are required. Thanks and Best Regards, N Ravi ------- Original Message ------- Sender : Li, ShaoguangX<shaoguangx.li at intel.com> Date : Oct 20, 2015 09:02 (GMT+05:30) Title : [dev] Iotivity-1.0.0 Linux (ubuntu) build problem Hi all, I?m trying to build the Iotivity-1.0.0 on my Ubuntu PC for Linux x86-64 platform using ?scons? command, but I always got the below error, can anyone please help to find out what?s wrong? Same problem with Iotivity-0.9.2 release, but no problem with Iotivity-0.9.1 release. Compiling out/linux/x86_64/release/service/resource-container/src/ResourceContainerImpl.o In file included from /usr/include/c++/4.6/bits/stl_algobase.h:65:0, from /usr/include/c++/4.6/bits/char_traits.h:41, from /usr/include/c++/4.6/string:42, from service/resource-container/include/RCSResourceContainer.h:30, from service/resource-container/src/ResourceContainerImpl.h:24, from service/resource-container/src/ResourceContainerImpl.cpp:21: /usr/include/c++/4.6/bits/stl_pair.h: In instantiation of 'std::pair<const std::basic_string<char>, boost::thread>': service/resource-container/src/ResourceContainerImpl.cpp:115:57: instantiated from here /usr/include/c++/4.6/bits/stl_pair.h:112:17: error: 'constexpr std::pair<_T1, _T2>::pair(const std::pair<_T1, _T2>&) [with _T1 = const std::basic_string<char>, _T2 = boost::thread, std::pair<_T1, _T2> = std::pair<const std::basic_string<char>, boost::thread>]' declared to take const reference, but implicit declaration would take non-const Regards, Shaoguang
