Simple Demo Fails When not built in main chipmunk project

Official forum for the Chipmunk2D Physics Library.
Post Reply
paramonkreel
Posts: 3
Joined: Sun Jan 02, 2011 11:34 am
Contact:

Simple Demo Fails When not built in main chipmunk project

Post by paramonkreel »

Make a simple makefile, copy in all of the files in Demo, and build it with no special flags. I just dropped it into an eclipse managed makefile and set -std=c99. If you run the simple demo (have to enable it) it just falls through the floor. If you build it under the full chipmunk project, it hits the floor and stops. Any advice?
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Simple Demo Fails When not built in main chipmunk project

Post by slembcke »

I have no idea why that would happen. There shouldn't be any compiler flags that change how the program works, just the optimization settings. Could you post a copy of the makefile?
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
paramonkreel
Posts: 3
Joined: Sun Jan 02, 2011 11:34 am
Contact:

Re: Simple Demo Fails When not built in main chipmunk project

Post by paramonkreel »

https://github.com/gaffo/chipmunktest Just pull and build on linux or adjust the links.
paramonkreel
Posts: 3
Joined: Sun Jan 02, 2011 11:34 am
Contact:

Re: Simple Demo Fails When not built in main chipmunk project

Post by paramonkreel »

Any chance to try it or should I step through with a debugger and see what's going on?
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Simple Demo Fails When not built in main chipmunk project

Post by slembcke »

Sorry for he late reply, I guess this post slipped by me. I have no clue what the problem would be.

I Can't replicate it on OS X, and don't have a Linux machine or VM handy at the moment. I guess what I would do is to move the ball in that demo to a place where it starts in contact with the ground, then try stepping through it. That should make it much easier to trace as it should be calling queryFunc() in cpSpaceStep.c as a callback from the spatial hashing code. If it doesn't call that, then there is something wrong with the spatial hashing, if it does then there is something wrong with the collision detection code.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests