Open fjcheng opened 1 month ago
I have successfully installed brotli:x64-mingw-dynamic with the command vcpkg install brotli:x64-mingw-dynamic
. But the error message that is "error: building brotli:x64-windows failed with: BUILD_FAILED" still appears when installing qt5 with the command vcpkg install qt5:x64-mingw-dynamic
.
What can I do to solve this problem?
You must (also) set the host triplet to a mingw triplet (e.g. x64-mingw-dynamic), or vcpkg will try to build host dependencies with MSVC (x64-windows).
encountered the same problem since i forgot to include windows 11 sdk, but i fixed it by installing Build Tools for Visual Studio 2022 with these packages checked
also make sure to have cmake
ninja
vcpkg
in env path.
@mihkuno I don't think your hints can be used here. Mingw is for not using Visual Studio and not using the Window SDK. And users don't reach that point in the presented log without cmake, ninja, vcpkg.
I'm unsure by what you mean. I recently started using vcpkg and assumed it handles path variables automatically - a mistake. docs didnt say ninja generator as prerequisite while also assuming vcpkg handles it which was a pain to figure out. I use mingw 13.2, cloned vcpkg repo, and don't use visual studio except its build tools, however, vcpkg looks for 'cmake tools for windows and it required msvc' on to some sort of visual studio directory which gives an error when not found given this issue i encountered, the windows 11 sdk fixes op's log. afaik the repo doesn't work right out the box.
@mihkuno You probably didn't set the host triplet to mingw. off-topic here.
It worked fine after I reinstalled the OS. But eventually I switched to msys2's UCRT64.
Operating system
win11
Compiler
Mingw
Steps to reproduce the behavior
Failure logs
D:\dev\vcpkg\buildtrees\abseil\install-x64-mingw-dynamic-dbg-out.log
Additional context
I have already tried the command git pull and vcpkg update , but still have this issue.