hello all,
newby at unix. c, etc…
i got my hands on a patch which i am hoping will
fix up opengl to compile properly for os x.
it’s just i’m not sure what to do with it.
any ideas?
thanks much,
c
— extconf.rb.org Sat Jul 06 00:29:30 2002
+++ extconf.rb Sat Jul 06 00:33:16 2002
@@ -30,7 +30,7 @@
glu_libname = "glu32"
glut_libname = "glut32"
else
- $CFLAGS += " -I."
-
$CFLAGS += " -I. -I/System/Library/Frameworks/OpenGL.framework/Headers
-I/System/Library/Frameworks/GLUT/Headers"dir_config(“x11”, “/usr/X11R6”)
— ogl.c.org Sat Jul 06 00:34:36 2002
+++ ogl.c Sat Jul 06 00:35:10 2002
@@ -5,7 +5,8 @@
#if defined (WIN32)
include “windows.h”
#endif
-#include “GL/gl.h”
+/#include “GL/gl.h”/
+#include “gl.h”
#include “rbogl.h”
#if defined CYGWIN
— glut.c.org Sat Jul 06 00:34:24 2002
+++ glut.c Sat Jul 06 00:35:28 2002
@@ -5,7 +5,8 @@
#if defined(WIN32)
include “windows.h”
#endif
-#include “GL/glut.h”
+/*#include “GL/glut.h” */
+#include “glut.h”
#include “ruby.h”
static int callId; /* ‘call’ method id */
— glu.c.org Sat Jul 06 00:37:42 2002
+++ glu.c Sat Jul 06 00:38:24 2002
@@ -5,8 +5,12 @@
#if defined(WIN32)
include “windows.h”
#endif
+/*
#include “GL/gl.h”
#include “GL/glu.h”
+*/
+#include “gl.h”
+#include “glu.h”
#include “rbogl.h”
#ifdef WIN32
— rbogl.c.org Sat Jul 06 00:37:32 2002
+++ rbogl.c Sat Jul 06 00:38:08 2002
@@ -6,7 +6,8 @@
include “windows.h”
#endif
#include “rbogl.h”
-#include “GL/gl.h”
+/* #include “GL/gl.h” */
+#include “gl.h”
#ifdef NO_NUM2DBL
extern double