Page 1 of 1
help compiling chipmunk with Netbeans 6.5.1
Posted: Tue Jun 23, 2009 3:29 pm
by evesira
Hello,
I've followed the tutorial for compiling Chipmunk in MSVC++, and I got it working fine. But for development reasons, I had to switch to Netbeans IDE.
I can't just use the .obj files I used for MSVC, can I?
Could anyone give me some guidance as to what I need to do to get Chipmunk working with Netbeans?
Once I get it working, I will gladly make a detailed post like the MSVC++ post, explaining all the steps required.
Much thanks
Re: help compiling chipmunk with Netbeans 6.5.1
Posted: Wed Jun 24, 2009 11:16 am
by slembcke
Netbeans for C/C++ development? Does it just use GCC? If so just follow what the build scripts do for the command line.
Re: help compiling chipmunk with Netbeans 6.5.1
Posted: Tue Jun 30, 2009 1:50 am
by evesira
I'm sorry, I don't understand what you mean.
I'm basically just trying to build the src folder in netbeans (yes, it uses gcc). I have gcc compiling in c99 mode, but i'm getting errors. First I get this error
Code: Select all
src/cpBody.c:92: error: `M_PI' undeclared (first use in this function)
src/cpBody.c:92: error: (Each undeclared identifier is reported only once
src/cpBody.c:92: error: for each function it appears in.)
So I replaced it with just a value for pi to see if that was the only error. But then I got this:
Code: Select all
/cygdrive/c/Documents and Settings/Vincent Rubinetti/My Documents/NetBeansProjects/Chipmunk2GM/src/cpShape.c:46: undefined reference to `___assert'
build/Debug/Cygwin-Windows/src/cpSpaceHash.o: In function `next_prime':
/cygdrive/c/Documents and Settings/Vincent Rubinetti/My Documents/NetBeansProjects/Chipmunk2GM/src/prime.h:64: undefined reference to `___assert'
build/Debug/Cygwin-Windows/src/cpHashSet.o: In function `next_prime':
/cygdrive/c/Documents and Settings/Vincent Rubinetti/My Documents/NetBeansProjects/Chipmunk2GM/src/prime.h:64: undefined reference to `___assert'
build/Debug/Cygwin-Windows/src/cpCollision.o: In function `cpCollideShapes':
/cygdrive/c/Documents and Settings/Vincent Rubinetti/My Documents/NetBeansProjects/Chipmunk2GM/src/cpCollision.c:386: undefined reference to `___assert'
Can you help me troubleshoot this situation? I'm not sure what to go after...
Re: help compiling chipmunk with Netbeans 6.5.1
Posted: Tue Jun 30, 2009 5:20 pm
by slembcke
It looks like you are having troubles with headers or header paths maybe. Having never used NetBeans before I have no idea as M_PI and assert are declared in standard C headers. You might have better luck asking on the NetBeans forum maybe.