Chipmunk build

17 篇文章 0 订阅
3 篇文章 0 订阅

How to build on Linux (Ubuntu)

Postby cuthbert » Sat Jun 05, 2010 7:05 pm

Hi

I really would like to try out this physics library with the Ruby bindings, however I have one major problem. I never can seem to get Chipmunk installed properly! I gave it a go now again on my fresh Linux Mint 64-bit install (based on Ubuntu), and after some rounds of installing required packages, I finally got the "cmake ." command to perform successfully. However, when trying to follow up with the "make" command, I get a lot of errors which I don't really understand how to tackle.

It would be really nice if you could give some more detailed instructions on how to install Chipmunk on Linux/Ubuntu.

Or alternatively, is there another easier way of getting started with Chipmunk and Ruby without compiling it from scratch (like a pre-compiled gem)?

The last lines of output from my failed make attempt:
/home/chris/Downloads/Chipmunk-5.2.0/src/._cpArbiter.c:1:204: error: invalid suffix "D03E69B4FCB" on integer constant
/home/chris/Downloads/Chipmunk-5.2.0/src/._cpArbiter.c:1:233: warning: null character(s) ignored
make[2]: *** [src/CMakeFiles/chipmunk.dir/._cpArbiter.c.o] Error 1
make[1]: *** [src/CMakeFiles/chipmunk.dir/all] Error 2
make: *** [all] Error 2
cuthbert
 
Posts: 1
Joined: Sat Jun 05, 2010 6:40 pm
Top

Re: How to build on Linux (Ubuntu)

Postby slembcke » Sun Jun 06, 2010 11:31 am

Oh weird. It looks like I've spilled some hidden resource fork files into the distribution... I wonder why those were even generated. The quick fix is to delete any of the files starting with "._". I'll have to clean that up though.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! ->  http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4161
Joined: Tue Aug 14, 2007 7:13 pm
Top

Re: How to build on Linux (Ubuntu)

Postby maximinus » Tue Jun 08, 2010 9:09 am

I ran into this problem. You can fix by doing the following:

Open a terminal, go to the Chipmunk-5.2.0 directory and enter this command:

find . -type f -name "._*" -exec rm -rvf {} \;

Then we can easily build and test the basic engine with:

cmake .
make
./Demo/chipmunk_demos


This works on Ubuntu 10.04. Hope it helps  8-)
maximinus
 
Posts: 1
Joined: Tue Jun 08, 2010 9:06 am
Top

Re: How to build on Linux (Ubuntu)

Postby slembcke » Tue Jun 08, 2010 9:31 am

The reason why the "._" files exist is legacy support in OS X for old Mac OS resource forks. (resource forks were basically a second file that contained structured binary data) I'm not sure why they would have gotten created to be honest. Their use has been deprecated for almost 10 years, and I can't think of a program that I would have that would still create them... Weird.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! ->  http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4161
Joined: Tue Aug 14, 2007 7:13 pm
Top

 Re: How to build on Linux (Ubuntu)

Postby danger89 » Fri Jul 09, 2010 9:39 pm

Finally that solved this strange error indeed, because the combi of the Mac files -,-

They could make 2 downloads OR they need to tell it at least in the readme...
danger89
 
Posts: 1
Joined: Fri Jul 09, 2010 9:37 pm
Top

Re: How to build on Linux (Ubuntu)

Postby slembcke » Mon Jul 12, 2010 3:46 pm

Blah. I finally fixed this. Sorry that it has taken me so long. I've had a lot going on lately.

So it turns out this is what happened:
I updated the README at some point a while back. Instead of rebuilding the archive from scratch, I just downloaded the latest, edited the README and tarred it back up. When you decompress files from the OS X Finder, it adds an extended metadata flag to the files marking them as being downloaded from the internet. (a reasonable security measure when running unsigned code) When I went back and recompressed the archive, it added the "._*" files to the archive containing the extended metadata. -_-

Annoying for sure. I'll have to be more careful about this in the future.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! ->  http://howlingmoonsoftware.com/wordpress/
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值