What is the last box2d version that works with the iPhone?

Hi friends!

What is the last box2d version that works with the iPhone? I mean, without any compiler error.
SVN revision or normal version.

Thanks a lot.
I would also like to know that. I have tried several new revisions, and each and everyone of them fail to build in xcode, iphone or not.
i trying this right now!

After some test, i get all the files inside my build, but by now i have some problems with missing functions..

Now i get this errors:

Code:
error: cannot convert 'b2PolygonShape*' to 'b2ShapeType' in assignment


Code:
error: 'struct b2FixtureDef' has no member named 'shape'


Code:
error: 'class b2Body' has no member named 'SetTransform'

Seens now you have 2 methods ->SetPosition and ->SetAngle

Code:
error: no matching function for call to 'b2World::b2World(b2Vec2&, bool)'

The worlds now is created by another way oO

Code:
error: no matching function for call to 'GLESDebugDraw::GLESDebugDraw(int)'

The Debug Draw not working on the same way to.

Code:
error: cannot declare variable 'callback' to be of abstract type 'QueryCallback'


Code:
error: 'class b2World' has no member named 'QueryAABB'


Code:
Box2D/Dynamics/b2World.h:222: error: 'void b2World::DrawDebugData()' is private


Code:
error: no matching function for call to 'b2Body::GetMassData(b2MassData*)'


I Hope some good souls can help us with this.
badawe wrote:
i trying this right now!

I Hope some good souls can help us with this.



Don't count on it, i have been asking questions for weeks now and not ONE helpful person to answer anything i ask, no one whats to help on this forum, its terrible! 🙄
Yeah, thats not good, i want the freeze function, but i can make work updating box2d, now i upgrade box2d myself with the functions i need!
You cannot expect an answer to every question. But you shouldn't have expected any, for the following reasons:
  • Build issues - these are very tricky to solve, and hard to give a solution for
  • Basic questions - How do I use source control? How do I follow instructions on the wiki? How do I fix obvious compiler errors? There's no motivation to answer those questions as they are inevitably followed up 3 seconds later by another question. Not to mention it usually means you haven't put in any effort before asking a question.
  • Using the last copy of the source, rather than official releases. This is undocumented code, and changing all the time. It would be a waste of everyone's resources to work with it. It is provided for those keen/smart enough to work it out for themselves, and hopefully contribute back to the development process.

Building for odd targets (iPhone, Gameboy) goes double BTW. Those targets are usually created by one keen person, and then supported as people find it doesn't work, fix it, and post the changes required. They virtually never work in SVN HEAD, and are flakey in releases, and few of the devs or regulars here can fix them.
First I would like to thank you for your efforts on this awesome project Boris.
I don't really think that just answering what revision worked the last with the iphone is an unreasonable question, might be a good idea to keep the revision number of confirmed successful platform builds somewhere.

After doing some digging though I figured out that the current example is broken because of b2Fixtures are now used instead of shapes so I suggest checking revisions before 211.

I have gotten the newest revision to a buildable state (and runnable state) on the iphone, but it is still somewhat unstable since I haven't truly understood the fixtures yet and how to use them instead of shapes.

I will keep you posted and when it is good enough I will most likely send a patch to update the iphone version, unless someone beats me to it.
If any of you wants an alpha ,no guarantees version of these changes just pm me, and I will send you a link.

Sincere regards and best of luck,
Ævar Örn Kvaran

Edit: just found out that it is a lot easier to get the google version of the code to build (forgot about the transfer)
The fixture thing has apparently been taken care of only had to fix a few lines to get it to run.

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