Installation des outils mingw32
sous windows
version sept. 2014 F. Hecht.
typo remark: all line in green are shell command under mingw32 shell
1. Telecharger et installer MINGW64 / MSYS
form http://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download
j’ai regarde le site http://www.sqlpac.com/referentiel/docs/mingw-minimalist-gnu-pour-windows.htm#.VBG0Ikv-j7U
Pour installer MINGW Intaller
ne pas doubler clique sur installeur mingw-w64-installer
manque les packages pour l’installation:
basic Setup: tout sauf ada.
dans le menu installation->Apply Change
Ferme a la fenetre d’installer
menu Installation->Quit.
2) Pour lancer un terminal msys
aller avec exporateur window dans le dossier
C:\MinGW\msys\1.0
la commande terminal est msys.bat
cree un alais windows et mettre sur le bureau pour lance facilement des shell/terminal msys.
c’est a dire clique droite sur icon msys.tar et creer un raccourci
deplace le racourci sur le bureau.
3) install mingw dans msys
lance terminal msys (double cliquer sur le raccourci de msys.bat)
dans le fenetre terminal entrer les mots en bleu et aller à la ligne svp.
$ /postinstall/pi.sh
rreponse en blue.
This is a post install process that will try to normalize between
your MinGW install if any as well as your previous MSYS installs
if any. I don't have any traps as aborts will not hurt anything.
Do you wish to continue with the post install? [yn ] y
Do you have MinGW installed? [yn ] y
Please answer the following in the form of c:/foo/bar.
Where is your MinGW installation? C:/mingw
blabla add mount . . . [yn ] y
Creating /etc/fstab with mingw mount bindings.
Normalizing your MSYS environment.
You have script /bin/cmd
Oh joy, you do not have C:/mingw/bin/make.exe. Keep it that way.
Maintenant presque tout marche.
test
$ gcc
gcc.exe fatal error … blabla
4. installer les commandes wget and unzip
mingw-get install msys-wget
mingw-get.exe install msys-unzip
5) la bibliotheque freeglut/ glut .. of win32 pour le graphique
Sous le shell mingw32 pour obtenir freeglut is tou installer:
wget http://files.transmissionzero.co.uk/software/development/GLUT/freeglut-MinGW.zip
unzip freeglut-MinGW-2.8.0-1.mp.zip
cp freeglut/include/* /c/MinGW/include/GL/.
cp freeglut/lib*.a /c/MinGW/lib/.
cp freeglut/freeglut.dll /bin
pour compiler et editer de lien un program avec freeglut
g++ -c -o xxx.o xxx.cpp
g++ -o xxxj xxxj.o -Wl,--enable-stdcall-fixup -lfreeglut -lglu32 -lopengl32