bunnyhero

Results 19 comments of bunnyhero

I had to make these changes to get it to build on Mac OS X: https://github.com/bunnyhero/box2d.js/commit/0ef6eacc07996a7b8f1f4aabb05fb308fcbc8612#Makefile

Oh yeah, I forgot. You also have to add a line like this: ``` EMSCRIPTEN=/Users/bunnyhero/dev/github/emscripten ``` except substituting the path to your emscripten directory. You can either add that line...

I am also getting runtime errors with box2d.js when building it on my Mac. I am using the binary release of LLVM 3.2 (clang+llvm-3.2-x86_64-apple-darwin11 as specified in this gist https://gist.github.com/dweekly/5873953...

I don't know if this is a valid thing to do, but: because I noticed that all of the generated .bc files were the same on Mac and Linux (except...

More investigation: I used the same Linux-generated `box2d.bc` on Mac and on Linux, and ran ``` ../emscripten/emcc --clear-cache rm -f /tmp/emscripten_temp/* EMCC_DEBUG=1 EMCC_CORES=1 ../emscripten/emmake make ``` on both platforms, and...

Last comment before I see if I can fix or work around this: the problem seems to be with the C preprocessor on the Mac. The `box2d.clean.h` file it generates...

Calling `GetNext()` on a body results in the same problem. A loop like the following will never exit: ``` javascript for (var body = world.GetBodyList(); body; body = body.GetNext()) {...

When looping through Bodies, `.ptr` resulted in an error. I had to use `Box2D.getPointer(body) !== 0`

I'm still confused 😅 . Can someone demonstrate with a detailed example? I am definitely missing something. Thank you. EDIT: Oh never mind, I just figured it out. In case...