Can't get chipmunk to work with CodeBlocks

Official forum for the Chipmunk2D Physics Library.
Post Reply
cr33p
Posts: 3
Joined: Sun Sep 04, 2011 5:35 am
Contact:

Can't get chipmunk to work with CodeBlocks

Post by cr33p »

Hi there,

I've been trying for almost 2 hours now to get chipmunk to work with CodeBlocks.
I've tried including it statically, dynamically but neither of it works.

Not even the generated CodeBlocks template from cmake works.

What should I do next?
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Can't get chipmunk to work with CodeBlocks

Post by slembcke »

What's the error? Can you just build the static library using cmake/makefile and import that into your project? I've never used code blocks personally.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
cr33p
Posts: 3
Joined: Sun Sep 04, 2011 5:35 am
Contact:

Re: Can't get chipmunk to work with CodeBlocks

Post by cr33p »

As I said, I tried linking the static library but that didn't work out.

The Error is, that it doesn't find chipmunk.h (be it "chipmunk.h" or <chipmunk.h>), so I guess something's gone completely wrong with linking. (I also set the Search Directories to /usr/local/include and /usr/local/lib)
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Can't get chipmunk to work with CodeBlocks

Post by slembcke »

Oh, sorry I missed that.

Chipmunk headers get imported into a "chipmunk" directory under include. Try including "chipmunk/chipmunk.h" instead or adding the chipmunk directory to your search paths.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
cr33p
Posts: 3
Joined: Sun Sep 04, 2011 5:35 am
Contact:

Re: Can't get chipmunk to work with CodeBlocks

Post by cr33p »

Sorry for replying so late, but your advice worked.

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests