help compiling chipmunk with Netbeans 6.5.1

Official forum for the Chipmunk2D Physics Library.
Post Reply
evesira
Posts: 2
Joined: Tue Jun 23, 2009 3:25 pm
Contact:

help compiling chipmunk with Netbeans 6.5.1

Post 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
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: help compiling chipmunk with Netbeans 6.5.1

Post 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.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
evesira
Posts: 2
Joined: Tue Jun 23, 2009 3:25 pm
Contact:

Re: help compiling chipmunk with Netbeans 6.5.1

Post 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...
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: help compiling chipmunk with Netbeans 6.5.1

Post 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.
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 20 guests