MSYS2: Setting up an Opengl development environment

msys2opengl

I have successfully installed Msys2 and mingw (mingws for 32 bit and 64 bit building). Now, I want to setup Opengl libraries for development. Which packages should I install using pacman? And for compiling an application using opengl and other popular opengl libraries which linker library flags do I need?
(My main needs are GLU, GLUT and GLEW but if you inform about the other libraries available in MSYS2 that would be great!)

Best Answer

That typically is done by (e.g)

pacman -Ss glew

and then picking the package that you want from that result and doing (again e.g.)

pacman -S  mingw-w64-i686-glew

Note that you need to use the correct bitness (i686 = 32 bit in this example).

Related Topic