Configure failure

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

Moderator: leecollings

Post Reply
Segfault
Posts: 28
Joined: Friday 04 January 2019 18:22
Target OS: Linux
Domoticz version: GIT
Contact:

Configure failure

Post by Segfault »

Just updated sources and configure fails. Am I missing some dependency?

Code: Select all

-- Detecting CXX compile features - done
-- Submodule update
Submodule 'extern/jsoncpp' (https://github.com/domoticz/jsoncpp) registered for path 'extern/jsoncpp'
Submodule 'minizip' (https://github.com/domoticz/minizip.git) registered for path 'extern/minizip'
Submodule 'extern/mosquitto' (https://github.com/eclipse/mosquitto.git) registered for path 'extern/mosquitto'
Submodule 'extern/sqlite-amalgamation' (https://github.com/azadkuh/sqlite-amalgamation.git) registered for path 'extern/sqlite-amalgamation'
fatal: Needed a single revision
Unable to find current origin/HEAD revision in submodule path 'extern/jsoncpp'
CMake Error at CMakeLists.txt:119 (message):
  git submodule update --init failed with 1, please checkout submodules
Full log here: https://dpaste.com/G5G4P75HM
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Configure failure

Post by waaren »

Segfault wrote: Wednesday 02 December 2020 23:54 Just updated sources and configure fails. Am I missing some dependency?
Just tested on Intel NUC (Debian, Cmake 3.17.2) and Raspberry 4 (Raspbian, Cmake 3.18,3 ) without any issues.
Did you follow this wiki to the letter?
What OS, what cmake?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Segfault
Posts: 28
Joined: Friday 04 January 2019 18:22
Target OS: Linux
Domoticz version: GIT
Contact:

Re: Configure failure

Post by Segfault »

Thanks for reply. Gentoo, cmake-3.19.1, building with openzwave. Just now did a git pull and still the same configure error. :?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Configure failure

Post by waaren »

Segfault wrote: Thursday 03 December 2020 9:57 Thanks for reply. Gentoo, cmake-3.19.1, building with openzwave. Just now did a git pull and still the same configure error. :?
jsoncpp was moved back from extern to domoticz a couple of builds ago due to problems with the external version. It could be that something in the git config need to be changed for your git, OS or CMake version to make it work.
On my system I still see

Code: Select all

.git/modules/extern/jsoncpp/ 
while I expected it to be here

Code: Select all

.git/modules/jsoncpp/


You might want to check this issue (and solution)
on stack overflow
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Configure failure

Post by EddyG »

I had some compile errors too.
I removed source and did clone both sources (OZW and Domoticz) again and now it compiles ok.

Edit.
OEPS, compile came to a halt in compiling , have to investigate.

Code: Select all

In file included from /mnt/extra/Source/dev-domoticz/main/../hardware/MQTT.h:4,
                 from /mnt/extra/Source/dev-domoticz/main/../hardware/MySensorsMQTT.h:3,
                 from /mnt/extra/Source/dev-domoticz/main/mainworker.cpp:76:
/mnt/extra/Source/dev-domoticz/main/../hardware/../main/mosquitto_helper.h:10:10: fatal error: mosquitto.h: No such file or directory
 #include <mosquitto.h>
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Configure failure

Post by waaren »

EddyG wrote: Thursday 03 December 2020 12:42 Compile came to a halt in compiling , have to investigate.

Code: Select all

In file included from /mnt/extra/Source/dev-domoticz/main/../hardware/MQTT.h:4,
                 from /mnt/extra/Source/dev-domoticz/main/../hardware/MySensorsMQTT.h:3,
                 from /mnt/extra/Source/dev-domoticz/main/mainworker.cpp:76:
/mnt/extra/Source/dev-domoticz/main/../hardware/../main/mosquitto_helper.h:10:10: fatal error: mosquitto.h: No such file or directory
 #include <mosquitto.h>
See the same on Raspberry (buster) and on Intel NUC (bullseye) with different cmake andf gcc versions
Opened an issue for it
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