b2djson and Cocos2d-x?

Is anybody using b2djson in XCode 4, preferably with Cocos2d-x? I can't get it to build with my project, and this is blocking me from using R.U.B.E.

Code: Select all

#ifdef __APPLE__
   #include <GLUT/glut.h>
#else
   #include "freeglut/freeglut.h"
#endif


If I remove the #ifdef __APPLE__ and try to add freeglut to my project (which worked for the Testbed) but in my game can't find various other gl heads (gl.h, glu.h).
Are you using the Cocos2d sample loader source code as a starting point? https://www.iforce2d.net/rube/?panel=loaders
I took a look around that sample loader and I could not find this header inclusion anywhere.

I guess you are using the 'vanilla' version of the loader from the github repo, which does indeed include headers for GLUT. But if you're using Cocos2d I doubt you need anything GLUT has to offer anyway. Take a look at the cocos2d sample loader project if you haven't already.

Original thread: https://box2d.org/forum/viewtopic.php?t=9450