Jiaoma / chipmunk-physics

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

Make fail in ruby bundle (OSX 10.5) #4

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. compiling RUBY BUNDLE: ruby extconf.rb  

What is the expected output? What do you see instead?

I got this message: cp: ../src/constraints is a directory (not copied).

I resolve with: 

-system 'cp ../src/* ./'
+system 'cp -pR ../src/* ./'

But now when I run make:

gcc -I. -I/usr/local/lib/ruby/1.8/i686-darwin9.5.0 
-I/usr/local/lib/ruby/1.8/i686-darwin9.5.0 
-I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -D_XOPEN_SOURCE=1  -fno-
common -pipe -fno-common  -std=gnu99 -ffast-math  -c chipmunk.c
In file included from chipmunk.h:75,
                 from chipmunk.c:24:
constraints/cpConstraint.h:56:35: error: cpBreakableConstraint.h: No such file 
or directory
make: *** [chipmunk.o] Error 1

What version of the product are you using? On what operating system?

MAC OSX 10.5.5, ruby 1.8.7 installed in /usr/local/bin

Best regards

Original issue reported on code.google.com by davide.r...@gmail.com on 15 Oct 2008 at 12:03

GoogleCodeExporter commented 8 years ago
Please note that is only in the svn checkout (the 4.1.0 work well)

all the best

Original comment by davide.r...@gmail.com on 15 Oct 2008 at 12:10

GoogleCodeExporter commented 8 years ago
Sorry for the blast from the bast. I've been unintentionally avoiding the issue 
tracker, but I figured I should give these issues some closure.

The Ruby extension in 5.2 and trunk should compile on Linux/OS X by using 
CMake. Alternatively, there is a more actively maintained FFI based version. 
http://github.com/erisdiscord/chipmunk-ffi

Original comment by slemb...@gmail.com on 30 Jul 2010 at 2:15