"Hughes, Gareth" wrote:
> 
> Man, Win32 development really annoys me at times :)  Oh, to be at home
> working on my Linux box...
> 
> I'm not sure if anyone has tried this in a while, but the src-glut/
> directory basically won't compile under Windows.  Maybe it's just the use of
> the old DSP files from 3.0, but even starting from scratch was a nightmare.
> I've hacked up a project file that will build the thing (Brian, I had to
> take out your changes to src-glut/glutint.h), but of course I get debug
> assertions with each event complaining about different calling conventions.
> 

Well I have compiled glut succesfully using the 
makefile.fx (in src-glut). (Compiled with
VisualStudio 97 == VC++ 5.0)

I had to do two changes:

1) clean the makefile.fx line endings
        (I used GNUEmacs on windows and deleted
        the ^M characters)


2) Applied the attached  patch to glutint.h


AFAIK the fact that the glut is compiled with
Makefile.fx does not make it 3dfx specific.
(Actually I have used it with TNT2 system
also)

Brian/Ted/Gareth, could you do the clean operations
to the CVS tree?

                Eero
Index: glutint.h
===================================================================
RCS file: /cvs/mesa3d/Mesa/src-glut/glutint.h,v
retrieving revision 1.1
diff -c -r1.1 glutint.h
*** glutint.h   1999/08/19 13:58:21     1.1
--- glutint.h   1999/09/14 06:12:01
***************
*** 22,30 ****
--- 22,32 ----
  #endif
  
  /* added by BrianP: */
+ #ifndef _WIN32
  #define APIENTRY GLAPIENTRY
  #define __cdecl GLAPIENTRY
  #define CDECL GLAPIENTRY
+ #endif
  
  
  #define GLUT_BUILDING_LIB  /* Building the GLUT library itself. */

Reply via email to