Installation des outils msys2  (version 30/09/2015)

sous windows 

version sept. 2015  F. Hecht. 


from stacker flow web site (http://stackoverflow.com/questions/30069830/how-to-install-mingw-w64-and-msys2)

typo remark: all line in green  are shell command under msys2 shell


accepted

Unfortunately, the MinGW-w64 installer you used sometimes has this issue. I myself am not sure about why this happens (I think it has something to do with Sourceforge URL redirection or whatever that the installer currently can't handle properly enough).

Anyways, if you're already planning on using MSYS2, there's no need for that installer.

  1. Download MSYS2 from this page (choose 32 or 64-bit according to what version of Windows you are going to use it on, not what kind of executables you want to build, both versions can build both 32 and 64-bit binaries).
  2. After the install completes, click on the newly created "MSYS2 Shell" option under either MSYS2 64-bit or MSYS2 32-bit in the Start menu. Update MSYS2 according to the wiki (although I just do a 
  3.     pacman -Syu,
  4. ignore all errors and close the window and open a new one, this is not recommended and you should do what the wiki page says).
  5. Install a toolchain  for 64-bit:
    pacman -S mingw-w64-x86_64-gcc
  6. install any libraries/tools you may need. You can search the repositories by doing
    pacman -Ss package_name_of_something_i_want_to_install
  7. Open a MinGW-w64 shell:
    a) To build 32-bit things, open the "MinGW-w64 32-bit Shell"
    b) To build 64-bit things, open the "MinGW-w64 64-bit Shell"
  8. Verify that the compiler is working by doing
    gcc -v


after Install a good text editor like notepad++ https://notepad-plus-plus.org

and to finish install the freeglut pakage  to build graphique application.


pour compiler freeglut 


Suivre les instruction de

http://www.transmissionzero.co.uk/computing/using-glut-with-mingw/


telecharger http://files.transmissionzero.co.uk/software/development/GLUT/freeglut-MinGW.zip


Dans le shell faire 

wget http://files.transmissionzero.co.uk/software/development/GLUT/freeglut-MinGW.zip