Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring incomplete, errors occurred #1521

Closed
ghost opened this issue May 2, 2018 · 7 comments
Closed

Configuring incomplete, errors occurred #1521

ghost opened this issue May 2, 2018 · 7 comments

Comments

@ghost
Copy link

ghost commented May 2, 2018

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

@MetaNova
Copy link

MetaNova commented May 2, 2018

The command needed to fix the issue is included in the error message:
git submodule update --init --recursive

@ghost
Copy link
Author

ghost commented May 2, 2018

Hi magnum7385, but :

in build or in znc-znc-1.7.0
fatal: Not a git repository (or any of the parent directories): .git

@MetaNova
Copy link

MetaNova commented May 2, 2018

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

@ghost
Copy link
Author

ghost commented May 2, 2018

Yes, it works with https://znc.in/releases/znc-1.7.0.tar.gz but not with the one on github :/

@wolfy1339
Copy link
Contributor

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

@DarthGandalf
Copy link
Member

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?

@ghost
Copy link
Author

ghost commented May 7, 2018

Yes DarthGandalf ;) Thx!

@ghost ghost closed this as completed May 7, 2018
DarthGandalf added a commit that referenced this issue May 7, 2018
@ghost ghost mentioned this issue Jun 30, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants