From: Joshua N. <jn...@ac...> - 2000-11-16 14:44:38
|
To get Mesa 3.4 to compile on Windows, I needed a few trivial changes: 1. windows.h wants to get included before mesa_wgl.h; it needs RCS file: /shared/development/CVS/hmesa/src-glu/gluP.h,v retrieving revision 1.1.1.1 diff -r1.1.1.1 gluP.h 33a34,40 > #ifdef _WIN32 > #define WIN32_LEAN_AND_MEAN 1 > #include <windows.h> > #undef WIN32_LEAN_AND_MEAN > #endif > > RCS file: /shared/development/CVS/hmesa/src-glut/glutbitmap.h,v retrieving revision 1.1.1.1 diff -r1.1.1.1 glutbitmap.h 11a12,18 > > #ifdef _WIN32 > #define WIN32_LEAN_AND_MEAN 1 > #include <windows.h> > #undef WIN32_LEAN_AND_MEAN > #endif > 2. Compiling for Windows, glut still looks for MESA to be defined to compile for Mesa. I just added the definition to the makefile, and it worked fine: RCS file: /shared/development/CVS/hmesa/WIN32/RULES/lib.glut32,v retrieving revision 1.1.1.1 diff -r1.1.1.1 lib.glut32 19c19 < CPPOPTS = $(CPPOPTS) /DBUILD_GLUT32 --- > CPPOPTS = $(CPPOPTS) /DBUILD_GLUT32 /DMESA 3. The make file for the demos adds too many 'd's to the debug .lib names: RCS file: /shared/development/CVS/hmesa/WIN32/RULES/progs.demos,v retrieving revision 1.1.1.1 diff -r1.1.1.1 progs.demos 16,22d15 < !IF ("$(USE_SYSGL)" == "0") && ("$(DEBUG)" == "1") < EXELIBS=$(EXELIBS:.lib=d.lib) < !IF "$(RUNTIMELIBS)" != "" < RUNTIMELIBS=$(RUNTIMELIBS:.dll=d.dll) < !ENDIF < !ENDIF < 4. All of the demo programs at need windows.h included before gl.h/glut.h. - Josh |