User Tools

Site Tools


boost

The boost libraries are a dependency compiling IoTivity from sources.

Boost C++ library Version 1.55 or later is required to build the IoTivity stack.

If your operating system has packages, prefer them unless they are too old. Some notes on various operating systems may help.

ERRORS

Error **Missing boost thread:**

If you are facing build issues of IoTivity with the following error message:

Checking for C++ library boost_thread... no
Did not find boost_thread, exiting!

Please verify that your system has the Boost libraries installed (libboost-thread1.55-dev or libboost-thread1.58-dev).

If you are updating these libraries, clear the scons caches afterwards by removing: iotivity/.sconsign.dblite and iotivity/.sconf_temp

Historical mail conversations on the topic: Error on boost_thread during scons build

Linking issue:

If you have a linker issue:

Compiling out/linux/x86/debug/service/resource-container/src/RemoteResourceUnit.os
Linking out/linux/x86/debug/service/resource-container/librcs_container.so
out/linux/x86/debug/service/resource-container/src/ResourceContainerImpl.os: In function `boost::thread::start_thread()':
/usr/local/include/boost/thread/detail/thread.hpp:180: undefined reference to `boost::thread::start_thread_noexcept()'
out/linux/x86/debug/service/resource-container/src/ResourceContainerImpl.os: In function `boost::thread::do_try_join_until(timespec const&)':
/usr/local/include/boost/thread/detail/thread.hpp:768: undefined reference to `boost::thread::do_try_join_until_noexcept(timespec const&, bool&)'
collect2: ld returned 1 exit status

Please check that you have the following library/development packages installed (this is from the Ubuntu/Debian perspective, package names may differ elsewhere):

libglib2.0-dev
scons
unzip
uuid-dev
python-dev
autotools-dev
libicu-dev
libbz2-de

Mail conversations: Facing Build Issue in iotivity-1.0.0

Resources

boost.txt · Last modified: 2017/10/25 16:19 by Mats Wichmann