How to compile MoonBuggyTutorial code

Official forum for the Chipmunk2D Physics Library.
Post Reply
Posts: 1
Joined: Fri Apr 03, 2009 4:00 am

How to compile MoonBuggyTutorial code

Post by vicnes »


I'm a beginner in programming. The OS that i'm using is ubuntu. I successfully build the Chipmunk-4.1.0 by using cmake then make, i'm able to view the chipmunk_demos but can anyone out there can help me how to compile the MoonBuggyTutorial code, i have try it compile the code as (gcc main.c) i'm getting error, which is :-

vicnes@vicnes-Machine:~/Documents/MoonBuggyTutorial$ ls
chipmunk.c cpArbiter.c cpBB.h cpHashSet.c cpPolyShape.h cpSpaceHash.c libchipmunk.a Makefile README.txt
chipmunk.h cpArbiter.h cpBody.c cpHashSet.h cpShape.c cpSpaceHash.h moon_buggy.c src
CMakeFiles cpArray.c cpBody.h cpJoint.c cpShape.h cpVect.c MoonBuggy-Info.plist static_lib
cmake_install.cmake cpArray.h cpCollision.c cpJoint.h cpSpace.c cpVect.h main.c MoonBuggy.xcodeproj
CMakeLists.txt cpBB.c cpCollision.h cpPolyShape.c cpSpace.h error.txt main.c~ prime.h

vicnes@vicnes-Machine:~/Documents/MoonBuggyTutorial$ gcc main.c
main.c: In function ‘drawObject’:
main.c:107: error: ‘cpShape’ has no member named ‘type’

Thank you in advance.


Hare Krshna
Om Namah Shivaya
User avatar
Site Admin
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: How to compile MoonBuggyTutorial code

Post by slembcke »

I'll look into this tomorrow as it came up somewhere else today too. I haven't looked at the Moon Buggy code in ages, so it's entirely possible that it's broken.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! ->
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests