Version: git commit 08d470c, 15 Apr 2019
Platform: Debian Stretch
Plugin/Hardware: Raspberry Pi 3
Description: I have been trying to compile Domoticz from source using the instructions in the wiki. I built Boost 1.70.0 from scratch and it is detected by Domoticz. However there seems to be something going wrong with the version number detection: Found libBoost version 1.70.0, 106000 or newer required
Here's the output of cmake:
Code: Select all
-- Found Boost 1.70.0 at /usr/local/lib/cmake/Boost-1.70.0
-- Requested configuration: QUIET REQUIRED COMPONENTS thread;system
-- Found boost_headers 1.70.0 at /usr/local/lib/cmake/boost_headers-1.70.0
-- Found boost_thread 1.70.0 at /usr/local/lib/cmake/boost_thread-1.70.0
-- libboost_thread.a
-- Adding boost_thread dependencies: headers
-- Found boost_system 1.70.0 at /usr/local/lib/cmake/boost_system-1.70.0
-- libboost_system.a
-- Adding boost_system dependencies: headers
Boost found.
Found Boost components:
thread;system
-- Linking against boost static libraries
CMake Error at CMakeLists.txt:589 (message):
Found libBoost version 1.70.0, 106000 or newer required
The Debian Stretch installation is fresh and I removed all factory-installed libboost libraries before compiling.
The last entries in CMakeFiles/CMakeError.log are:
Code: Select all
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/pi/git/domoticz/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_6ffa2/fast"
/usr/bin/make -f CMakeFiles/cmTC_6ffa2.dir/build.make CMakeFiles/cmTC_6ffa2.dir/build
make[1]: Entering directory '/home/pi/git/domoticz/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_6ffa2.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_6ffa2.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.7/Modules/CheckFunctionExists.c
Linking C executable cmTC_6ffa2
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_6ffa2.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_6ffa2.dir/CheckFunctionExists.c.o -o cmTC_6ffa2 -rdynamic -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_6ffa2.dir/build.make:97: recipe for target 'cmTC_6ffa2' failed
make[1]: *** [cmTC_6ffa2] Error 1
make[1]: Leaving directory '/home/pi/git/domoticz/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_6ffa2/fast' failed
make: *** [cmTC_6ffa2/fast] Error 2