cmake error when trying to compile domoticz

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
akamming
Posts: 386
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

cmake error when trying to compile domoticz

Post by akamming »

Because of the new BuienRadar problem i wanted to compile domoticz myself on my RPI4 (buster), see if i can fix it.


I have done it before, but now i have a new issue: i followed these steps to install libboost

Code: Select all

sudo apt remove --purge --auto-remove libboost-dev libboost-thread-dev libboost-system-dev libboost-atomic-dev libboost-regex-dev libboost-chrono-dev
mkdir boost
cd boost
wget https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.gz
tar xfz boost_1_72_0.tar.gz
cd boost_1_72_0/
./bootstrap.sh
./b2 stage threading=multi link=static --with-thread --with-system
sudo ./b2 install threading=multi link=static --with-thread --with-system
cd ../../
sudo rm -Rf boost/
with no errors

but when tried to compile domoticz using these steps

Code: Select all

git clone https://github.com/domoticz/domoticz.git dev-domoticz 
cd dev-domoticz
git pull
cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt
make
i get these error on the cmake step:

Code: Select all

-- ###########################
-- Compiling Revision #11944
-- ###########################
-- Using builtin Mosquitto library
-- Python3 includes found at: /usr/include/python3.7m
-- Building with I2C support
-- Building with SPI support
-- OPENSSL_LIBRARIES: /usr/lib/arm-linux-gnueabihf/libssl.a;-lpthread;dl;/usr/lib/arm-linux-gnueabihf/libcrypto.a
-- Linking against boost static libraries
CMake Error at CMakeLists.txt:589 (message):
  Found libBoost version 1.71.0, 106000 or newer required


-- Configuring incomplete, errors occurred!
See also "/c/prive/dev_domoticz/CMakeFiles/CMakeOutput.log".
See also "/c/prive/dev_domoticz/CMakeFiles/CMakeError.log".
does any know how to resolve?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: cmake error when trying to compile domoticz

Post by waaren »

akamming wrote: Thursday 16 April 2020 13:49 Because of the new BuienRadar problem i wanted to compile domoticz myself on my RPI4 (buster), see if i can fix it.
does any know how to resolve?
The Buienradar problem is not on the domoticz side. Its because buienradar does not / (no longer) return the right lat/lon.

Did you follow all the new / revised steps from the recently updated compile procedure including the minimum required cmake version?
Also note that you now need to do a make install after the make of openZwave .
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
akamming
Posts: 386
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: cmake error when trying to compile domoticz

Post by akamming »

waaren wrote: Thursday 16 April 2020 14:05 The Buienradar problem is not on the domoticz side. Its because buienradar does not / (no longer) return the right lat/lon.
I know, but i always had the plan that when i have time i wanted to make a PR to add a configuration parameter in which you can specify the weather station. (and use the current function which determines that station on coordinates when the weather station field is left blank) this would then also be a workaround for the current issue... So since there is this problem and i have some time i wanted to take a look at it...
waaren wrote: Thursday 16 April 2020 14:05 Did you follow all the new / revised steps from the recently updated compile procedure including the minimum required cmake version?
Also note that you now need to do a make install after the make of openZwave .
I'm compiling without OpenZwave support... but apart from that a i followed all the steps. I think i must be a user error, cause i removed all dev dirs and redid all the steps and now the cmake went OK. Domoticz is currently compiling…
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: cmake error when trying to compile domoticz

Post by waaren »

akamming wrote: Thursday 16 April 2020 18:58 I always had the plan that when i have time i wanted to make a PR to add a configuration parameter in which you can specify the weather station. (and use the current function which determines that station on coordinates when the weather station field is left blank) this would then also be a workaround for the current issue... So since there is this problem and i have some time i wanted to take a look at it...
👍 great !
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest