Page 1 of 1

Simple Demo Fails When not built in main chipmunk project

Posted: Sun Jan 02, 2011 11:36 am
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?

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

Posted: Tue Jan 04, 2011 11:37 am
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?

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

Posted: Tue Jan 11, 2011 12:54 am
by paramonkreel
https://github.com/gaffo/chipmunktest Just pull and build on linux or adjust the links.

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

Posted: Wed Jan 26, 2011 12:04 pm
by paramonkreel
Any chance to try it or should I step through with a debugger and see what's going on?

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

Posted: Wed Jan 26, 2011 1:12 pm
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.