Mesa3D (OpenGL) and MinGW
23 Sep 2008I’ve just managed to compile and install Mesa3D version 7.2 under Microsoft Windows (using MinGW). Here are the steps in case anyone else needs to know:
- Install MinGW and MSYS
- Download and unpack MesaLib, MesaGLUT, and MesaDemos into the same directory. The files are available on SourceForge.
- Open the file Mesa-7.2/Makefile.mgw in an editor and replace
<pre>copy progs\samples\star.exe lib</pre> with
<pre>cp progs/samples/star.exe lib</pre> - Compile Mesa3D by executing make -f Makefile.mgw under MSYS
- Copy the files Mesa-7.2/lib/lib*.a to the directory /mingw/lib
- Copy the files Mesa-7.2/lib/*.dll to the directory /mingw/bin
- Copy the content of Mesa-7.2/include to the directory /mingw/include
To test Mesa3D you can for example download SGI’s cube.c and compile it by executing
gcc -o cube cube.c -lopengl32 -lglu32 -lglut32