Thursday, September 3, 2020

Pacman


Familiarizing with Pacman


After properly installing MSYS2 you'll be able to use pacman in order to complete your installation.
Pacman is a package manager similar to Red Hat's 
yum and Debian's apt-get, and will make really easy the task to prepare a complete build environment.

  1. Start an MSYS2 shell.
    Just click the icon of one between 
    msys2.exemingw32i.exe or mingw64.exe you'll find into the C:\dev\msys64 folder (the one or the other is not relevant in this context).
  2. Then execute the following commands from the shell:
    • pacman -S --needed base-devel
      This will install 
      makepkg-config and many others useful tools.
    • pacman -S --needed mingw-w64-i686-toolchain
      This will install the 
      32-bit compiler.
    • pacman -S --needed mingw-w64-x86_64-toolchain
      This will install the 64-bit compiler.
    • pacman -S --needed mingw-w64-i686-cmake mingw-w64-x86_64-cmake
      This will install 
      CMake for both 32 and 64 bits.
  3. all right: you've now completed your MinGW64 + MSYS2 installation, and you are ready to start building your Windows binary executables.
Note: may well be you'll discover before or after that some tool is still missing. You can easily install it when required.
Example: the well-known 
vim text editor is still missing; you can easily install it by executing: pacman -S vim
Hint: you can easily check all packages declaring a matching name and if they are already installed or not by executing: 
pacman -Ss package-name:


No comments:

Post a Comment