OldMonkeyRidingZebra

Results 9 comments of OldMonkeyRidingZebra

CMake file auto-generated by qtcreator is here: ``` cmake_minimum_required(VERSION 3.5) project(testQt6Static VERSION 0.1 LANGUAGES CXX) set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) find_package(QT NAMES Qt6 Qt5 REQUIRED...

Oh, I checked the files with this package, may be something has been commented out: [PKGBUIILD](https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-qt6-static/PKGBUILD): ``` license=(spdx:LGPL-3.0-only WITH spdx:Qt-GPL-exception-1.0 AND spdx:GPL-2.0-or-later AND spdx:GPL-3.0-or-later) pkgdesc="A cross-platform application and UI framework...

I Create a pull request: [18967](https://github.com/msys2/MINGW-packages/pull/18967), It would be appreciated if an expert could see if this initiative actually solved this failure .

> does installing harfbuzz fix the issue? harfbuzz has been already installed with elder Qt6 versions.

Oh! Not only CMake, QMake hello-world widgets also have similar problem. ```text C:/msys64/ucrt64/bin/mingw32-make.exe -f Makefile.Release mingw32-make[1]: Entering directory 'D:/Projects/build-testqmke-Desktop_Qt_6_6_0_static_MinGW_w64_UCRT64_MSYS2-Release' g++ -Wl,-s -static -static -Wl,-subsystem,windows -mthreads -o release/testqmke.exe release/main.o release/dialog.o release/testqmke_plugin_import.o...

for QMAKE App extra link libraries should be involved: QMAKE_LIBS += -ltiff -lmng.dll -ljpeg -ljbig -ldeflate -lzstd -llerc -llzma -lgraphite2 -lbz2 -lusp10 -lRpcrt4 -lsharpyuv Then It's OK! I'll then focus...

For CMake we can Temporarily add deps like: ```qmake target_link_libraries(testQt6Static PRIVATE Qt${QT_VERSION_MAJOR}::Widgets pthread) set_property(TARGET harfbuzz::harfbuzz PROPERTY IMPORTED_IMPLIB "c:/msys64/mingw64/lib/libharfbuzz.dll.a" ) ``` But this approach is imperfect。

Do any experts know where they should be modified to help users add these dependencies without feeling? Should I patch the qmakespec folder as well as Qt*.cmake? ```qmake QMAKE_LIBS +=...

> No, you should fix qt6-static to pick static libraries instead of shared ones at CMake configuration time and make sure that no qt6-static library was linked against any shared...