Hey, it seems like you only have a static version of zlib on your system. You 
can either install a dynamic version of zlib or use the bundled zlib that if 
provided with Qt by using: "-zlib qt" as argument on the configure script.


________________________
Dennis Oberst
Software Engineer

The Qt Company GmbH
Erich-Thilo-Str. 10
12489 Berlin, Germany
dennis.obe...@qt.io
https://www.qt.io

Geschäftsführer: Mika Pälsi,
Juha Varelius, Jouni Lintunen
Sitz der Gesellschaft: Berlin,
Registergericht: Amtsgericht
Charlottenburg, HRB 144331 B

________________________________
From: Development <development-boun...@qt-project.org> on behalf of Haowei Hsu 
<hwhsu1...@gmail.com>
Sent: Friday, August 25, 2023 8:49 AM
To: Qt development mailing list <development@qt-project.org>
Subject: [Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 
shell?

Hello, Qt Development Team.

I tried to run configure.bat on 6.2.4 branch of 
qt/qt5<https://github.com/qt/qt5> repository.
The following commands are what I run:

  1.  export LC_ALL=en_US.UTF8
  2.  cd /d/Repo/tmp/qt-6.2.4
  3.  git status
  4.  mkdir build && cd build
  5.  mkdir mingw-release && cd mingw-release
  6.  ../../configure -release -developer-build -nomake examples -nomake tests

You can see the attachment with the full log: 
log-failed-to-configure-in-mingw64-msys-shell.txt
However, it failed at configuring 'qttools':

Configuring 'qttools'
-- CMAKE_BUILD_TYPE was set to: 'Release'
-- Performing Test HAVE_FFI_CALL
-- Performing Test HAVE_FFI_CALL - Success
-- Found FFI: C:/msys64/mingw64/lib/libffi.dll.a
-- Found ZLIB: C:/msys64/mingw64/lib/libz.dll.a (found version "1.3.#define 
ZLIB_VERSION "1.3"")
CMake Error at C:/msys64/mingw64/lib/cmake/zstd/zstdTargets.cmake:42 (message):
  Some (but not all) targets in this export set were already defined.

  Targets Defined: zstd::libzstd_static

  Targets not yet defined: zstd::libzstd_shared

Call Stack (most recent call first):
  C:/msys64/mingw64/lib/cmake/zstd/zstdConfig.cmake:1 (include)
  qtbase/cmake/FindZSTD.cmake:21 (find_package)
  C:/msys64/mingw64/lib/cmake/llvm/LLVMConfig.cmake:269 (find_package)
  C:/msys64/mingw64/lib/cmake/clang/ClangConfig.cmake:10 (find_package)
  qttools/cmake/FindWrapLibClang.cmake:14 (find_package)
  qtbase/cmake/QtFindPackageHelpers.cmake:130 (find_package)
  qttools/configure.cmake:19 (qt_find_package)
  qtbase/cmake/QtFeature.cmake:573 (include)
  qttools/src/CMakeLists.txt:21 (qt_feature_evaluate_features)


-- Configuring incomplete, errors occurred!
CMake Error at 
D:/Repo/tmp/qt-6.2.4/qtbase/cmake/QtProcessConfigureArgs.cmake:957 (message):
  CMake exited with code 1.

---
Haowei Hsu
-- 
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to