Hello,
I ve modified the Makefile from KIAaze:
viewtopic.php?f=5&t=103
to compile box2d to MacOS.
Basically you need to change all the
#include <GL/glut.h>
by
#include <GLUT/glut.h>
and in the makefiles:
use:
g++ -o $(LIBNAME) *.o -fpic -dynamiclib
to create the dynamic libraries
Use:
-framework GLUT -framework OpenGL
for the compiler options and for the linker options
And to compile the examples you ll need to change the options:
CFLAGSL32=-I../../Include -I../../Contrib/ -framework GLUT -framework OpenGL
LDFLAGSL32=-I../../Include -I../../Contrib/ -framework GLUT -framework OpenGL ../../Library/libbox2d.so ../../Library/libglui.so
I ve modified the Makefile from KIAaze:
viewtopic.php?f=5&t=103
to compile box2d to MacOS.
Basically you need to change all the
#include <GL/glut.h>
by
#include <GLUT/glut.h>
and in the makefiles:
use:
g++ -o $(LIBNAME) *.o -fpic -dynamiclib
to create the dynamic libraries
Use:
-framework GLUT -framework OpenGL
for the compiler options and for the linker options
And to compile the examples you ll need to change the options:
CFLAGSL32=-I../../Include -I../../Contrib/ -framework GLUT -framework OpenGL
LDFLAGSL32=-I../../Include -I../../Contrib/ -framework GLUT -framework OpenGL ../../Library/libbox2d.so ../../Library/libglui.so