Hi,

MSYS2 provides prebuilt packages for Qt. I'd suspect the build scripts of theses packages being a good starting point for building modified versions of Qt with this toolchain:

Latest: https://github.com/msys2/MINGW-packages/tree/6a7d1f44862b5cda846d554fd8e6ba6795a6a1cd/mingw-w64-qt6-base Qt 6.2.4: https://github.com/msys2/MINGW-packages/tree/32f8fa422c4babb94027d23503e16206c370c564/mingw-w64-qt6-base

Ciao
Mathias

Am 25.08.2023 um 08:49 schrieb Haowei Hsu:
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