`../configure.sh
-- Boost version: 1.62.0
-- Found the following Boost libraries:
-- locale
CMake Error at CMakeLists.txt:245 (message):
It looks like git submodules are not initialized.
Run: git submodule update --init --recursive
-- Configuring incomplete, errors occurred!
See also "/tmp/znc-znc-1.7.0/CMakeFiles/CMakeOutput.log".
See also "/tmp/znc-znc-1.7.0/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "../configure.sh", line 136, in
+ cm_args + extra_args)
File "/usr/lib/python3.5/subprocess.py", line 271, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '-DCMAKE_BUILD_TYPE=Release', '..']' returned non-zero exit status 1
`
Can you resolve my problem? Thx
Hello,
Ive issue with latest release (https://github.com/znc/znc/archive/znc-1.7.0.tar.gz)
On debian 9.4 :
`../configure.sh
-- Boost version: 1.62.0
-- Found the following Boost libraries:
-- locale
CMake Error at CMakeLists.txt:245 (message):
It looks like git submodules are not initialized.
Run: git submodule update --init --recursive
-- Configuring incomplete, errors occurred!
See also "/tmp/znc-znc-1.7.0/CMakeFiles/CMakeOutput.log".
See also "/tmp/znc-znc-1.7.0/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "../configure.sh", line 136, in <module>
+ cm_args + extra_args)
File "/usr/lib/python3.5/subprocess.py", line 271, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '-DCMAKE_BUILD_TYPE=Release', '..']' returned non-zero exit status 1
`
Can you resolve my problem? Thx
<!-- github-sync-id:319639524 -->
in build or in znc-znc-1.7.0 fatal: Not a git repository (or any of the parent directories): .git
Hi magnum7385, but :
in build or in znc-znc-1.7.0
`fatal: Not a git repository (or any of the parent directories): .git`
<!-- github-comment-id:386064346 -->
Do you have any success using the official link release instead of the one you used? https://znc.in/releases/znc-1.7.0.tar.gz
<!-- github-comment-id:386064911 -->
That's because you downloaded a tarball of the contents of the repo, and to use that git command, you need to have cloned the repo
That's because you downloaded a tarball of the contents of the repo, and to use that git command, you need to have cloned the repo
<!-- github-comment-id:386096401 -->
Tarball with github repo doesn't include files from git submodules.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a772f2db..7534d6d3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -242,8 +242,20 @@ endif()
file(GLOB csocket_files LIST_DIRECTORIES FALSE
"${PROJECT_SOURCE_DIR}/third_party/Csocket/Csocket.*")
if(csocket_files STREQUAL "")
- message(FATAL_ERROR " It looks like git submodules are not initialized.\n"
- " Run: git submodule update --init --recursive")
+ execute_process(COMMAND git status
+ WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
+ RESULT_VARIABLE git_status_var
+ OUTPUT_QUIET
+ ERROR_QUIET)
+ if(git_status_var)
+ message(FATAL_ERROR
+ " It looks like git submodules are not initialized.\n"
+ " Either this is not a git clone, or you don't have git installed")
+ else()
+ message(FATAL_ERROR
+ " It looks like git submodules are not initialized.\n"
+ " Run: git submodule update --init --recursive")
+ endif()
endif()
install(DIRECTORY webskins
Would something like this make it more clear?
Tarball with github repo doesn't include files from git submodules.
```diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a772f2db..7534d6d3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -242,8 +242,20 @@ endif()
file(GLOB csocket_files LIST_DIRECTORIES FALSE
"${PROJECT_SOURCE_DIR}/third_party/Csocket/Csocket.*")
if(csocket_files STREQUAL "")
- message(FATAL_ERROR " It looks like git submodules are not initialized.\n"
- " Run: git submodule update --init --recursive")
+ execute_process(COMMAND git status
+ WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
+ RESULT_VARIABLE git_status_var
+ OUTPUT_QUIET
+ ERROR_QUIET)
+ if(git_status_var)
+ message(FATAL_ERROR
+ " It looks like git submodules are not initialized.\n"
+ " Either this is not a git clone, or you don't have git installed")
+ else()
+ message(FATAL_ERROR
+ " It looks like git submodules are not initialized.\n"
+ " Run: git submodule update --init --recursive")
+ endif()
endif()
install(DIRECTORY webskins
```
Would something like this make it more clear?
<!-- github-comment-id:386166832 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Hello,
Ive issue with latest release (https://github.com/znc/znc/archive/znc-1.7.0.tar.gz)
On debian 9.4 :
`../configure.sh
-- Boost version: 1.62.0
-- Found the following Boost libraries:
-- locale
CMake Error at CMakeLists.txt:245 (message):
It looks like git submodules are not initialized.
Run: git submodule update --init --recursive
-- Configuring incomplete, errors occurred!
See also "/tmp/znc-znc-1.7.0/CMakeFiles/CMakeOutput.log".
See also "/tmp/znc-znc-1.7.0/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "../configure.sh", line 136, in
+ cm_args + extra_args)
File "/usr/lib/python3.5/subprocess.py", line 271, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '-DCMAKE_BUILD_TYPE=Release', '..']' returned non-zero exit status 1
`
Can you resolve my problem? Thx
The command needed to fix the issue is included in the error message:
git submodule update --init --recursive
Hi magnum7385, but :
in build or in znc-znc-1.7.0
fatal: Not a git repository (or any of the parent directories): .gitDo you have any success using the official link release instead of the one you used? https://znc.in/releases/znc-1.7.0.tar.gz
Yes, it works with https://znc.in/releases/znc-1.7.0.tar.gz but not with the one on github :/
That's because you downloaded a tarball of the contents of the repo, and to use that git command, you need to have cloned the repo
Tarball with github repo doesn't include files from git submodules.
Would something like this make it more clear?
Yes DarthGandalf ;) Thx!