kripken / box2d.js

Port of Box2D to JavaScript using Emscripten
1.33k stars 196 forks source link

build with box2d v2.3 #44

Open conversy opened 10 years ago

conversy commented 10 years ago

on macosx, with emscripten 1.7.8

I got to replace CppHeaderParser with v2.4, had to remove a few '$'s in box2d.clean.h since CppHeaderParser cannot parse them, until I encountered this result:

python emsdk_portable/emscripten/1.7.8//tools/bindings_generator.py box2d_bindings box2d.clean.h -- '{ "ignored": "b2Shape::m_type,b2BroadPhase::RayCast,b2BroadPhase::UpdatePairs,b2BroadPhase::Query,b2DynamicTree::RayCast,b2DynamicTree::Query,b2ChainShape::m_nextVertex,b2ChainShape::m_hasNextVertex,b2EdgeShape::m_hasVertex3,b2EdgeShape::m_vertex2,b2EdgeShape::m_vertex3,b2Mat22,b2Mat33" }' > bindings.out Traceback (most recent call last): File "emsdk_portable/emscripten/1.7.8//tools/bindings_generator.py", line 404, in explore(clazz) File "emsdk_portable/emscripten/1.7.8//tools/bindings_generator.py", line 394, in explore template_name = classes[parent]['template_typename'] KeyError: 'template_typename' make: *\ [box2d_bindings.cpp] Error 1

smashplug commented 10 years ago

I hit similar issues with the same class, CppHeaderParser, on both my Windows and Linux machines.

Did you end up finding any luck with this?

conversy commented 10 years ago

No, I did not try to fix it: I thought that someone with a deeper understanding of the inner architecture would be much more efficient than me trying to first understand it, then fix it.

Le 27 janv. 2014 à 21:42, Brian Poole notifications@github.com a écrit :

I hit similar issues with the same class both my Windows and Linux machines.

Did you end up finding any luck with this?

— Reply to this email directly or view it on GitHub.

smashplug commented 10 years ago

Ah, alright. Thanks!

I tried going the vagrant route to take out any variables in the environment and I hit the same exact errors. I'll keep playing with it and report back if I'm at all successful.

Relequestual commented 9 years ago

@smashplug Did you have any luck with this?

smashplug commented 9 years ago

Unfortunately not, but I haven't tried since my last post either... still no progress on this?

conversy commented 9 years ago

no sorry, and I won't try in the future, I changed my mind and have no plan to do it...

Le 22 oct. 2014 à 15:47, Brian Poole notifications@github.com a écrit :

Unfortunately not, but I haven't tried since my last post either... still no progress on this?

— Reply to this email directly or view it on GitHub.

Stéphane Conversy Associate Professor in Computer Science - ENAC http://lii-enac.fr/~conversy +33 5 62 17 40 19