-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hi!
I was curious to see this in action on Linux. Here's the quick hack to get it running:
diff --git a/main.c b/main.c
index c73f8f6..686216e 100644
--- a/main.c
+++ b/main.c
@@ -1,6 +1,6 @@
-#include <OpenGL/gl.h>
-#include <OpenGL/glu.h>
-#include <GLUT/glut.h>
+#include <GL/gl.h>
+#include <GL/glu.h>
+#include <GL/glut.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
@@ -248,7 +248,7 @@ int main(int argc, char **argv)
}
if (visualization) {
- //glutInit(&argc, argv); // Initializes glut
+ glutInit(&argc, argv); // Initializes glut
// Sets up a double buffer with RGBA components and a depth component
glutInitDisplayMode(GLUT_DOUBLE | GLUT_DEPTH | GLUT_RGBA);
diff --git a/makefile b/makefile
index 710470f..bfdc62d 100644
--- a/makefile
+++ b/makefile
@@ -1,2 +1,2 @@
amp: main.c
- gcc -std=c11 -o play main.c -framework OpenGL -framework GLUT -L/usr/local/lib -lportaudio -lsndfile
+ gcc -std=c11 -o play main.c -lGL -lglut -L/usr/local/lib -lportaudio -lsndfileBest, Sebastian
Metadata
Metadata
Assignees
Labels
No labels