Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSYS2: Setting up an Opengl development environment

Tags:

opengl

msys2

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!)

like image 289
jnbrq -Canberk Sönmez Avatar asked Oct 14 '25 04:10

jnbrq -Canberk Sönmez


1 Answers

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).

like image 118
thoni56 Avatar answered Oct 18 '25 06:10

thoni56



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!