Hello!
Here is makefile for linux (see http://scons.org).
auto*hell free. Type `scons` to compile library and examples.
scons -c to delete build targets.
You'll need to install freeglut.
Also, apply some patches (point headers to your glut.h):
--- Box2D_v1.4.3/Box2D/Contrib/glui/GL/glui.h
+++ Box2D/Contrib/glui/GL/glui.h
@@ -50,7 +50,7 @@
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
- #include "../../freeglut/gl/glut.h"
+ #include "GL/glut.h"
//#include <GL/glut.h>
#endif
--- Box2D_v1.4.3/Box2D/Examples/TestBed/Framework/Main.cpp
+++ Box2D/Examples/TestBed/Framework/Main.cpp
@@ -18,7 +18,7 @@
#include <cstdio>
-#include "glui/gl/glui.h"
+#include "GL/glui.h"
#include "Render.h"
#include "Test.h"
--- Box2D_v1.4.3/Box2D/Examples/TestBed/Framework/Render.cpp
+++ Box2D/Examples/TestBed/Framework/Render.cpp
@@ -21,7 +21,7 @@
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
-#include "freeglut/gl/glut.h"
+#include "GL/glut.h"
#endif
#include <cstdio>
--- Box2D_v1.4.3/Box2D/Examples/TestBed/Framework/Test.cpp
+++ Box2D/Examples/TestBed/Framework/Test.cpp
@@ -23,7 +23,7 @@
#include <GLUT/glut.h>
#define APIENTRY
#else
-#include "freeglut/gl/glut.h"
+#include "GL/glut.h"
#endif
#include <cstdio>
--- Box2D_v1.4.3/Box2D/Examples/TestBed/Tests/TestEntries.cpp
+++ Box2D/Examples/TestBed/Tests/TestEntries.cpp
@@ -22,7 +22,7 @@
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
-#include "freeglut/gl/glut.h"
+#include "GL/glut.h"
#endif
#include "ApplyForce.h"
Here is makefile for linux (see http://scons.org).
auto*hell free. Type `scons` to compile library and examples.
scons -c to delete build targets.
You'll need to install freeglut.
Also, apply some patches (point headers to your glut.h):
--- Box2D_v1.4.3/Box2D/Contrib/glui/GL/glui.h
+++ Box2D/Contrib/glui/GL/glui.h
@@ -50,7 +50,7 @@
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
- #include "../../freeglut/gl/glut.h"
+ #include "GL/glut.h"
//#include <GL/glut.h>
#endif
--- Box2D_v1.4.3/Box2D/Examples/TestBed/Framework/Main.cpp
+++ Box2D/Examples/TestBed/Framework/Main.cpp
@@ -18,7 +18,7 @@
#include <cstdio>
-#include "glui/gl/glui.h"
+#include "GL/glui.h"
#include "Render.h"
#include "Test.h"
--- Box2D_v1.4.3/Box2D/Examples/TestBed/Framework/Render.cpp
+++ Box2D/Examples/TestBed/Framework/Render.cpp
@@ -21,7 +21,7 @@
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
-#include "freeglut/gl/glut.h"
+#include "GL/glut.h"
#endif
#include <cstdio>
--- Box2D_v1.4.3/Box2D/Examples/TestBed/Framework/Test.cpp
+++ Box2D/Examples/TestBed/Framework/Test.cpp
@@ -23,7 +23,7 @@
#include <GLUT/glut.h>
#define APIENTRY
#else
-#include "freeglut/gl/glut.h"
+#include "GL/glut.h"
#endif
#include <cstdio>
--- Box2D_v1.4.3/Box2D/Examples/TestBed/Tests/TestEntries.cpp
+++ Box2D/Examples/TestBed/Tests/TestEntries.cpp
@@ -22,7 +22,7 @@
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
-#include "freeglut/gl/glut.h"
+#include "GL/glut.h"
#endif
#include "ApplyForce.h"