Jiaoma / chipmunk-physics

Automatically exported from code.google.com/p/chipmunk-physics
MIT License
0 stars 0 forks source link

Demos fail to build on arch linux g++ 4.6.1 #44

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. svn checkout http://chipmunk-physics.googlecode.com/svn/trunk/ 
chipmunk-physics-read-only
2. cmake .
3. make

What is the expected output? What do you see instead?
Expect to see build succeed, instead see:

---
[j0n@myhost chipmunk-physics-read-only]$ make
[ 37%] Built target chipmunk
[ 74%] Built target chipmunk_static
[ 75%] Building C object Demo/CMakeFiles/chipmunk_demos.dir/Buoyancy.c.o
/home/j0n/code/lib/chipmunk-physics-read-only/Demo/Buoyancy.c: In function 
‘waterPreSolve’:
/home/j0n/code/lib/chipmunk-physics-read-only/Demo/Buoyancy.c:83:2: warning: 
implicit declaration of function ‘sprintf’ [-Wimplicit-function-declaration]
/home/j0n/code/lib/chipmunk-physics-read-only/Demo/Buoyancy.c:83:2: warning: 
incompatible implicit declaration of built-in function ‘sprintf’ [enabled 
by default]
/home/j0n/code/lib/chipmunk-physics-read-only/Demo/Buoyancy.c:99:9: error: 
‘TRUE’ undeclared (first use in this function)
/home/j0n/code/lib/chipmunk-physics-read-only/Demo/Buoyancy.c:99:9: note: each 
undeclared identifier is reported only once for each function it appears in
make[2]: *** [Demo/CMakeFiles/chipmunk_demos.dir/Buoyancy.c.o] Error 1
make[1]: *** [Demo/CMakeFiles/chipmunk_demos.dir/all] Error 2
make: *** [all] Error 2

---

What version of the product are you using? On what operating system?
Latest svn, rev 818. Arch Linux. 

Please provide any additional information below.
Can confirm that if you replace TRUE with 1, the build succeeds. Maybe this 
needs to be defined on a gnu platform?

Original issue reported on code.google.com by jonathan...@gmail.com on 4 Oct 2011 at 9:13

GoogleCodeExporter commented 8 years ago
Chipmunk has moved to github:
https://github.com/slembcke/Chipmunk-Physics

Try the latest source from there.

Original comment by slemb...@gmail.com on 4 Oct 2011 at 9:53