pacman
(a port from arch-linux) and has about 2000 precompiled mingw-packages. MSYS2 is designed to build standalone software: the binaries built with mingw-w64 compilers do not depend on MSYS2 itself[^1].mingw-w64-curl
package can be found on the msys2 website: https://packages.msys2.org/base/mingw-w64-curl. Here we can also find installation instructions for the various available flavors. For example to install the default x64 binary for curl we run:curl
command line tool as well as libcurl headers and shared libraries. The default curl
packages are built with the OpenSSL backend and hence depend on mingw-w64-x86_64-openssl
. There are also mingw-w64-x86_64-curl-gnutls
and mingw-w64-x86_64-curl-gnutls
packages, refer to the msys2 website for more details.pkg-config
to query the flags needed to build against libcurl. Start msys2 using the mingw64 shell (which automatically sets the path to include /mingw64
) and run:mingw-w64-curl
package. We can easily modify the file to rebuild the package ourselves.autoconf
, patch
and git
. Start the msys2 shell and run:mingw-packages
repository and go to the mingw-w64-curl
package:--syncdeps
parameter will automatically check and prompt to install dependencies of mingw-w64-curl
if these are not yet installed. Once the process is complete you will have 3 new files in the current directory, for example:pacman -U mingw-w64-x86_64-curl-7.80.0-1-any.pkg.tar.zst
pacman -U mingw-w64-x86_64-curl-gnutls-7.80.0-1-any.pkg.tar.zst
pacman -U mingw-w64-x86_64-curl-winssl-7.80.0-1-any.pkg.tar.zst
pacman -u
command to install such a local package file:mingw-w64-curl
with the msys-packages curl
and curl-devel
. The latter are part of msys2 environment itself (e.g. to support pacman downloads), but not suitable for redistribution. To build redistributable software that does not depend on MSYS2 itself, you always need mingw-w64-…
packages and toolchains.