Can you include glut.h in the mingw package, please?

Cosmin Truta <[email protected]>
Newsgroups gmane.comp.gnu.mingw.patches
Message-ID <[email protected]>
Hi,

I sent a similar message some time ago, but I got no reply. The mingw mail
archive shows the message buried into the _M_IX86 thread, and I thought
that the people who might be interested did not see it because of this.

This is why I am resposting it again. Sorry for the duplication.
Again, please Cc: your replies to me, because I am not subscribed to
the mingw list.

**

I was mentioning earlier the oddity of having the glut libraries
libglut.a, libglut32.a, but not the header glut.h, in the mingw package.
I think it would be not only painless, but also really nice if you could
just add the header to the package!

I was curious why I needed to do a certain hack on the latest glut.h
(specifically, to remove some prototypes that the linker expects and
dies when it doesn't find them in libglut32.a).
Eventually, I realized that libglut.a and libglut32.a currently supplied
with mingw belong to an older version, i.e. 3.6 (latest stable) instead
of 3.7.6 (late beta). That version works with mingw, without needing any
patch.

So I suggest to include glut.h from glut-3.6:
  http://www.opengl.org/developers/documentation/glut/
  http://www.opengl.org/developers/documentation/glut/glutdlls36.zip
into:
  /mingw/include/GL/


The nicest part is that it works unmodified with mingw, and even with
cygwin if -DWIN32 is passed to the cygwin-gcc cmd line.

As a side note (related to the first _M_IX86 message in its thread),
this is a version that does include <windows.h>, unlike the newer ones.
At least it's good that it *works*.


My tests show that the executables run well with GLUT32.DLL from 3.6
to 3.7.6. To test it yourself, you should find plenty of test programs.
But if you are in a hurry, you can get a very basic one from here:
  http://www.cs.toronto.edu/~cosmin/test/teapot.c
In case you wonder about the cmd line:
  gcc -oteapot teapot.c -lglut32 -lglu32 -lopengl32


Best regards,
Cosmin



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.