How to avoid mixing different installations For convenience, you can use environment variables to set both triplets: export VCPKG_DEFAULT_TRIPLET=圆4-mingw-dynamicĮxport VCPKG_DEFAULT_HOST_TRIPLET=圆4-mingw-dynamic This is needed to resolve host dependencies. When Visual Studio is not installed, you must also set the host triplet to mingw. git clone įor building packages, you need to tell vcpkg that you want to use the mingw triplet. This command will download the official vcpkg.exe. The bootstrapping of vcpkg shall be done by running bootstrap-vcpkg.bat. The active subsystem is selected by running the MSYS2 MinGW app, or changed in a running terminal by source shell mingw64 # for 圆4, or "mingw32" for x86 architectureĪfter the basic installation of MSYS2, you will need to install a few additional packages for software development, for example, for 圆4: pacman -S -needed git base-devel mingw-w64-x86_64-toolchain When building software for native windows environments, you must use a mingw subsystem of MSYS2, and install some packages (with a specific prefix) for this subsystem. With MSYS2, it is possible to easily create a full environment for building ports with Mingw-w64 on a Windows PC. These triplets are not tested by continuous integration, so many portsĭo not build, and even existing ports may break on port updates.īecause of this, community involvement is paramount! The actual tools (g++ etc.) are expected to be named with particular prefixes. There are two variants of each triplet, selecting between static and dynamic linking. They don't depend on Visual Studio and can be used natively on Windows as well as for cross-compiling on other operating systems. Vcpkg includes 圆4, x86, arm64 and arm community triplets for Mingw-w64. PRs improving support are welcome! Mingw-w64 community triplets MinGW is not tested as part of vcpkg repository's CI process, so regressions can occur as part of library updates.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |