Info::Notice pour installer un mingw64 sous Windows
De wiki_pcwiki2
Aller à la navigationAller à la recherche
KEYWORDS: WINDOWS, MSYS2, MINGW-64,
Le 15/08/2025: Mémo - Installation MSYS2
Téléchargement
1. Allez sur https://www.msys2.org/ 2. Téléchargez l'installateur Windows (msys2-x86_64-*.exe)
Installation
1. Lancez l'installateur en tant qu'administrateur 2. Acceptez le chemin par défaut : C:\msys64 3. Suivez l'assistant d'installation 4. NE PAS cocher "Run MSYS2 now" à la fin
Configuration initiale
1. Ouvrez MSYS2 MSYS depuis le menu Démarrer 2. Mettez à jour le système : pacman -Syu 3. Fermez la fenêtre quand demandé 4. Relancez MSYS2 MSYS 5. Finalisez la mise à jour : pacman -Su
Installation environnement MinGW
# Outils de développement pacman -S mingw-w64-x86_64-gcc pacman -S mingw-w64-x86_64-make pacman -S mingw-w64-x86_64-cmake pacman -S mingw-w64-x86_64-pkgconf
# Qt5 pour Windows pacman -S mingw-w64-x86_64-qt5-base pacman -S mingw-w64-x86_64-qt5-tools
# Outils supplémentaires pacman -S git pacman -S base-devel
Utilisation
- MSYS2 MSYS : Terminal Unix-like - MSYS2 MinGW 64-bit : Environnement de compilation Windows (recommandé) - MSYS2 UCRT64 : Version moderne (Windows 10+)
Variables PATH
MSYS2 ajoute automatiquement C:\msys64\mingw64\bin au PATH dans ses terminaux.
Commandes utiles
# Rechercher un package pacman -Ss nom_package
# Installer un package pacman -S nom_package
# Lister les packages installés pacman -Q
Important : Toujours utiliser MSYS2 MinGW 64-bit pour compiler des applications Windows.