Page 1 of 1
Can't get chipmunk to work with CodeBlocks
Posted: Sun Sep 04, 2011 5:39 am
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?
Re: Can't get chipmunk to work with CodeBlocks
Posted: Sun Sep 04, 2011 9:28 pm
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.
Re: Can't get chipmunk to work with CodeBlocks
Posted: Mon Sep 05, 2011 12:01 am
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)
Re: Can't get chipmunk to work with CodeBlocks
Posted: Mon Sep 05, 2011 2:09 am
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.
Re: Can't get chipmunk to work with CodeBlocks
Posted: Wed Sep 07, 2011 1:01 pm
by cr33p
Sorry for replying so late, but your advice worked.
Thanks!