Page 1 of 1

Configure failure

Posted: Wednesday 02 December 2020 23:54
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

Re: Configure failure

Posted: Thursday 03 December 2020 9:25
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?

Re: Configure failure

Posted: Thursday 03 December 2020 9:57
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. :?

Re: Configure failure

Posted: Thursday 03 December 2020 11:13
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

Re: Configure failure

Posted: Thursday 03 December 2020 12:42
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>

Re: Configure failure

Posted: Thursday 03 December 2020 13:22
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