chipmunk-rb / chipmunk-ffi

chipmunk ruby bindings using ffi
26 stars 6 forks source link

How to install #13

Closed shawn42 closed 13 years ago

shawn42 commented 13 years ago

I have downloaded and compiled Chipmunk, but how do I specify the path for chipmunk-ffi to load? Also, what file should I be loading? Sorry for the kinda stupid-sounding questions, but I can't seem to figure it out by looking at the instructions for ffi, and the page for chipmunk-ffi on github doesn't say either.

shawn42 commented 13 years ago

chipmunk-ffi uses nice-ffi to load the library.. so depending on your OS you can look here to see the paths: https://github.com/jacius/nice-ffi/blob/master/lib/nice-ffi/pathset.rb#L567-L591

RavensKrag commented 13 years ago

Thanks for the information. However, I only have libchipmunk.a not libchipmunk.so. I believe this has something to do with building Chipmunk 5.3.4. If I build 5.3.1 instead, I do get the libchipmunk.so.

I suppose this means I should just use 5.3.1 for now, but I thought I'd make a note of it. It seems it's a problem regarding Chipmunk more than your bindings anyway.

RavensKrag commented 13 years ago

Problem is confirmed to be with the Chipmunk 5.3.4 code, I assume something in the makefile.

slembcke commented 13 years ago

The dynamic library was made optional. You just need to enable it when running cmake: cmake -D BUILD_SHARED=ON .

RavensKrag commented 13 years ago

Thank you for your help, it all seems to be in working order now.

shawn42 commented 13 years ago

great, thanks slembcke for the help.