-- JsonCpp Version: 1.9.4
######################################################
# jsoncpp should not be configured & built in the jsoncpp source directory
# You must run cmake in a build directory.
# For example:
# mkdir jsoncpp-Sandbox ; cd jsoncpp-sandbox
# git clone https://github.com/open-source-parsers/jsoncpp.git # or download & unpack the source tarball
# mkdir jsoncpp-build
# this will create the following directory structure
#
# jsoncpp-Sandbox
# +--jsoncpp
# +--jsoncpp-build
#
# Then you can proceed to configure and build
# by using the following commands
#
# cd jsoncpp-build
# cmake ../jsoncpp # or ccmake, or cmake-gui
# make
#
# NOTE: Given that you already tried to make an in-source build
# CMake have already created several files & directories
# in your source tree. run 'git status' to find them and
# remove them by doing:
#
# cd jsoncpp-Sandbox/jsoncpp
# git clean -n -d
# git clean -f -d
# git checkout --
#
######################################################
CMake Error at extern/jsoncpp/include/PreventInSourceBuilds.cmake:41 (message):
Quitting configuration
Call Stack (most recent call first):
extern/jsoncpp/include/PreventInSourceBuilds.cmake:45 (AssureOutOfSourceBuilds)
extern/jsoncpp/CMakeLists.txt:78 (include)
If I follow the instructions jsoncpp does compile correctly.
I did a fresh install of sources, but that did not help.
I saw on github that this is a commit of 2 days ago. https://github.com/open-source-parsers/ ... be4d6e2241
How to solve that error?
EDIT:
Found a temporary solution by commenting out the 2 added lines in the CMakeLists.txt file.
-- JsonCpp Version: 1.9.4
######################################################
# jsoncpp should not be configured & built in the jsoncpp source directory
# You must run cmake in a build directory.
# For example:
# mkdir jsoncpp-Sandbox ; cd jsoncpp-sandbox
# git clone https://github.com/open-source-parsers/jsoncpp.git # or download & unpack the source tarball
# mkdir jsoncpp-build
# this will create the following directory structure
#
# jsoncpp-Sandbox
# +--jsoncpp
# +--jsoncpp-build
#
# Then you can proceed to configure and build
# by using the following commands
#
# cd jsoncpp-build
# cmake ../jsoncpp # or ccmake, or cmake-gui
# make
#
# NOTE: Given that you already tried to make an in-source build
# CMake have already created several files & directories
# in your source tree. run 'git status' to find them and
# remove them by doing:
#
# cd jsoncpp-Sandbox/jsoncpp
# git clean -n -d
# git clean -f -d
# git checkout --
#
######################################################
CMake Error at extern/jsoncpp/include/PreventInSourceBuilds.cmake:41 (message):
Quitting configuration
Call Stack (most recent call first):
extern/jsoncpp/include/PreventInSourceBuilds.cmake:45 (AssureOutOfSourceBuilds)
extern/jsoncpp/CMakeLists.txt:78 (include)
If I follow the instructions jsoncpp does compile correctly.
I did a fresh install of sources, but that did not help.
I saw on github that this is a commit of 2 days ago. https://github.com/open-source-parsers/ ... be4d6e2241
How to solve that error?
EDIT:
Found a temporary solution by commenting out the 2 added lines in the CMakeLists.txt file.
Can you tell me what 2 lines should uncomment? Thx.
With the latest sources it is no longer a problem any more.
The json sources are now forked from a previous commit that did not have this problem.
It was about these 2 lines. https://github.com/open-source-parsers/ ... be4d6e2241
EddyG wrote: ↑Sunday 13 December 2020 9:57
With the latest sources it is no longer a problem any more.
The json sources are now forked from a previous commit that did not have this problem.
It was about these 2 lines. https://github.com/open-source-parsers/ ... be4d6e2241
Thank you for your reply. I face the same error message right now, Domoticz do not compile.
pi@raspberry:~/domoticz $ sudo cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Submodule update
From https://github.com/open-source-parsers/jsoncpp
* [new branch] jsoncpp_version -> origin/jsoncpp_version
5f4e104..9409824 master -> origin/master
Submodule path 'extern/jsoncpp': checked out '940982438d01fe2575acef8dd98a9b6893ccc9bb'
Submodule path 'extern/minizip': checked out '78eb93e8e0ba228f37b197d2022d66b73856c9ff'
From https://github.com/eclipse/mosquitto
24df1638..79339ce5 1.6.x -> origin/1.6.x
+ 49f4ffb5...122e6ecf coverity-develop -> origin/coverity-develop (forced update)
6f4e0a15..e02b5a27 coverity-fixes -> origin/coverity-fixes
988b5cf0..122e6ecf develop -> origin/develop
* [new branch] dynamic-bridge -> origin/dynamic-bridge
6f4e0a15..9d3732a6 fixes -> origin/fixes
3a13205e..faeb9e91 master -> origin/master
* [new tag] v2.0.0 -> v2.0.0
* [new tag] v2.0.1 -> v2.0.1
* [new tag] v2.0.2 -> v2.0.2
* [new tag] v2.0.3 -> v2.0.3
* [new tag] v2.0.4 -> v2.0.4
Submodule path 'extern/mosquitto': checked out 'faeb9e9122c35d24bc6667a48275e37b5732f54a'
Submodule path 'extern/sqlite-amalgamation': checked out '6c4bf38eba9ddd3e0493c95c489710070d095dea'
-- LUA library found at: /usr/lib/i386-linux-gnu/liblua5.3.a
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.7.3", minimum required is "3.4")
-- Found PythonLibs: /usr/lib/i386-linux-gnu/libpython3.7m.so (found suitable version "3.7.3", minimum required is "3.4")
-- Python3 includes found at: /usr/include/python3.7m
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for 3 include files sys/types.h, ..., linux/i2c.h
-- Looking for 3 include files sys/types.h, ..., linux/i2c.h - found
-- Building with I2C support
-- Looking for include files sys/types.h, linux/spi/spidev.h
-- Looking for include files sys/types.h, linux/spi/spidev.h - found
-- Building with SPI support
-- ###########################
-- Compiling Revision #12758
-- ###########################
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Searching 16 bit integer - Using unsigned short
-- Check if the system is big endian - little endian
-- Using builtin jsoncpp library
-- JsonCpp Version: 1.9.4
######################################################
# jsoncpp should not be configured & built in the jsoncpp source directory
# You must run cmake in a build directory.
# For example:
# mkdir jsoncpp-Sandbox ; cd jsoncpp-sandbox
# git clone https://github.com/open-source-parsers/jsoncpp.git # or download & unpack the source tarball
# mkdir jsoncpp-build
# this will create the following directory structure
#
# jsoncpp-Sandbox
# +--jsoncpp
# +--jsoncpp-build
#
# Then you can proceed to configure and build
# by using the following commands
#
# cd jsoncpp-build
# cmake ../jsoncpp # or ccmake, or cmake-gui
# make
#
# NOTE: Given that you already tried to make an in-source build
# CMake have already created several files & directories
# in your source tree. run 'git status' to find them and
# remove them by doing:
#
# cd jsoncpp-Sandbox/jsoncpp
# git clean -n -d
# git clean -f -d
# git checkout --
#
######################################################
CMake Error at extern/jsoncpp/include/PreventInSourceBuilds.cmake:41 (message):
Quitting configuration
Call Stack (most recent call first):
extern/jsoncpp/include/PreventInSourceBuilds.cmake:45 (AssureOutOfSourceBuilds)
extern/jsoncpp/CMakeLists.txt:78 (include)
-- Configuring incomplete, errors occurred!
See also "/home/pi/domoticz/CMakeFiles/CMakeOutput.log".
- Submodule update
-- LUA library found at: /usr/lib/arm-linux-gnueabihf/liblua5.3.a
-- Python3 includes found at: /usr/include/python3.5m
-- Building with I2C support
-- Building with SPI support
-- ###########################
-- Compiling Revision #12894
-- ###########################
-- Using builtin jsoncpp library
-- JsonCpp Version: 1.9.4
######################################################
# jsoncpp should not be configured & built in the jsoncpp source directory
# You must run cmake in a build directory.
# For example:
# mkdir jsoncpp-Sandbox ; cd jsoncpp-sandbox
# git clone https://github.com/open-source-parsers/jsoncpp.git # or download & unpack the source tarball
# mkdir jsoncpp-build
# this will create the following directory structure
#
# jsoncpp-Sandbox
# +--jsoncpp
# +--jsoncpp-build
#
# Then you can proceed to configure and build
# by using the following commands
#
# cd jsoncpp-build
# cmake ../jsoncpp # or ccmake, or cmake-gui
# make
#
# NOTE: Given that you already tried to make an in-source build
# CMake have already created several files & directories
# in your source tree. run 'git status' to find them and
# remove them by doing:
#
# cd jsoncpp-Sandbox/jsoncpp
# git clean -n -d
# git clean -f -d
# git checkout --
#
######################################################
CMake Error at extern/jsoncpp/include/PreventInSourceBuilds.cmake:41 (message):
Quitting configuration
Call Stack (most recent call first):
extern/jsoncpp/include/PreventInSourceBuilds.cmake:45 (AssureOutOfSourceBuilds)
extern/jsoncpp/CMakeLists.txt:78 (include)
-- Configuring incomplete, errors occurred!
See also "/home/pi/dev-domoticz/CMakeFiles/CMakeOutput.log".
Makefile:7831 : la recette pour la cible « cmake_check_build_system » a échouée
make: *** [cmake_check_build_system] Erreur 1
I tried the procedure from gizmocuz, and I have the same issue.
Thanks for your help.
yann500 wrote: ↑Friday 29 January 2021 15:16
-- Configuring incomplete, errors occurred!
See also "/home/pi/dev-domoticz/CMakeFiles/CMakeOutput.log".
Makefile:7831 : la recette pour la cible « cmake_check_build_system » a échouée
make: *** [cmake_check_build_system] Erreur 1
You forgot to state on what hardware and what OS you see this. The last time I had this on a Raspberry with Debian buster, i had to restart from scratch meaning I removed the dev directory cloned the sources and did the cmake + make again.
-- Using builtin jsoncpp library
-- JsonCpp Version: 1.9.4
######################################################
# jsoncpp should not be configured & built in the jsoncpp source directory
# You must run cmake in a build directory.
# For example:
# mkdir jsoncpp-Sandbox ; cd jsoncpp-sandbox
# git clone https://github.com/open-source-parsers/jsoncpp.git # or download & unpack the source tarball
# mkdir jsoncpp-build
# this will create the following directory structure
#
# jsoncpp-Sandbox
# +--jsoncpp
# +--jsoncpp-build
#
# Then you can proceed to configure and build
# by using the following commands
#
# cd jsoncpp-build
# cmake ../jsoncpp # or ccmake, or cmake-gui
# make
#
# NOTE: Given that you already tried to make an in-source build
# CMake have already created several files & directories
# in your source tree. run 'git status' to find them and
# remove them by doing:
#
# cd jsoncpp-Sandbox/jsoncpp
# git clean -n -d
# git clean -f -d
# git checkout --
#
######################################################
CMake Error at extern/jsoncpp/include/PreventInSourceBuilds.cmake:41 (message):
Quitting configuration
I had the same problem on all branches. Removing the stuff like gizmocuz suggested didn't yield. Also git clean didn't help so also recreated my local repo.
Don't forgot to push local branches to Github first!
Running V2024.4 on RPi3B+ & development/HEAD on RPi4B