[MacRuby-devel] MacRuby Build Issues

2009-08-05 Thread John-Paul Bader
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey guys, i'm relatively new in the world of MacRuby but I'm hooked already. I tried to build it from source (trunk and experimental) but didn't have any luck with it. The experimental branch exits here: …

Re: [MacRuby-devel] experimental branch: status update

2009-08-05 Thread John-Paul Bader
On 04.08.2009, at 22:59, Laurent Sansonetti wrote: I will proceed with the merge tomorrow at 3PM California time (midnight Amsterdam time, 7AM Tokyo time). Feel free to commit before, but please hold off your commits at that time :) This screams for a DVCS but I guess you already had that

Re: [MacRuby-devel] MacRuby Build Issues

2009-08-05 Thread Laurent Sansonetti
Hi John, What's your environment (OS) and CPU? Also, could you paste a few more lines? I assume it's failing to link miniruby here. Thanks, Laurent On Aug 5, 2009, at 1:32 AM, John-Paul Bader wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey guys, i'm relatively new in the

Re: [MacRuby-devel] experimental branch: status update

2009-08-05 Thread Laurent Sansonetti
Hi Conrad, On Aug 5, 2009, at 2:00 AM, Conrad Taylor wrote: Laurent I'm seeing the following warning messages after sudo rake install: unknown: warning: File::new() does not take block; use File::open() instead Sorry about that, I just fixed that in r2219. Also, running rake spec:ci

Re: [MacRuby-devel] experimental branch: status update

2009-08-05 Thread Conrad Taylor
On Wed, Aug 5, 2009 at 2:13 AM, Laurent Sansonetti lsansone...@apple.comwrote: Hi Conrad, On Aug 5, 2009, at 2:00 AM, Conrad Taylor wrote: Laurent I'm seeing the following warning messages after sudo rake install: unknown: warning: File::new() does not take block; use File::open()

Re: [MacRuby-devel] experimental branch: status update

2009-08-05 Thread Conrad Taylor
On Wed, Aug 5, 2009 at 2:17 AM, Conrad Taylor conra...@gmail.com wrote: On Wed, Aug 5, 2009 at 2:13 AM, Laurent Sansonetti lsansone...@apple.comwrote: Hi Conrad, On Aug 5, 2009, at 2:00 AM, Conrad Taylor wrote: Laurent I'm seeing the following warning messages after sudo rake

Re: [MacRuby-devel] MacRuby Build Issues

2009-08-05 Thread John-Paul Bader
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, I'm on the following hard and software: Model Identifier: MacBookPro4,1 Processor Name: Intel Core 2 Duo Processor Speed:2.6 GHz OS: Mac OS X 10.5.7 RakeVersion 0.8.7 Longer

Re: [MacRuby-devel] experimental branch: status update

2009-08-05 Thread Eloy Duran
The latter seems a good option to me, if you have a patch I'll gladly apply it. Eloy On Aug 5, 2009, at 12:25 PM, M. Scott Ford wrote: This is the last experimental branch status update, we accomplished I think all the goals required to merge the branch into trunk. There will be more status

[MacRuby-devel] How to use custom C struct's?

2009-08-05 Thread Clay Bridges
Hi all, I'm writing an iPhone app. I made the audacious step of trying to test my ObjC model classes using MacRuby. I create and load a dynlib (bundle) of these classes. So far, so good. However, I have a C struct that I use all over the place: struct MapPoint { int row; int col; }; typedef

Re: [MacRuby-devel] How to use custom C struct's?

2009-08-05 Thread Jeremy Voorhis
When MacRuby's FFI support is more mature, declaring an FFI::Struct subclass like this will be another option. class MapPoint FFI::Struct layout :row, :int, :col, :Int end You instantiate an FFI::Struct with a pointer. I'm hacking away on a Ruby interface to a C library, and I'm slinging

Re: [MacRuby-devel] How to use custom C struct's?

2009-08-05 Thread Clay Bridges
Yes, use RubyCocoa I'm afraid I'm already hooked. ;) If it comes down to it, I've already put a testing-only category wrapper around one method, e.g. #import Cell.h @interface Cell (TestUtil) @property (readonly) NSArray* mapPointAsArray; @end @implementation Cell (TestUtil) @dynamic

Re: [MacRuby-devel] How to use custom C struct's?

2009-08-05 Thread Laurent Sansonetti
On Aug 5, 2009, at 8:41 AM, Eloy Duran wrote: Hi, On Aug 5, 2009, at 5:31 PM, Clay Bridges wrote: The google didn't yield much guidance on this. Before I started a deep-dive on the MacRuby source, and/or the standard ruby way to handle this sort of thing, I thought I would ask a couple of

Re: [MacRuby-devel] experimental branch: status update

2009-08-05 Thread Laurent Sansonetti
It seems that the following command could be used: $ sysctl hw.cpu64bit_capable On my machines (all 64-bit unfortunately) this returns 1. Could one on 32-bit check that it returns 0? Thanks, Laurent On Aug 5, 2009, at 3:29 AM, Eloy Duran wrote: The latter seems a good option to me, if you

Re: [MacRuby-devel] experimental branch: status update

2009-08-05 Thread Niket Patel
On Aug 6, 2009, at 1:49 AM, Laurent Sansonetti wrote: It seems that the following command could be used: $ sysctl hw.cpu64bit_capable On my machines (all 64-bit unfortunately) this returns 1. Could one on 32-bit check that it returns 0? $ sysctl hw.cpu64bit_capable hw.cpu64bit_capable:

Re: [MacRuby-devel] How to use custom C struct's?

2009-08-05 Thread Jordan K. Hubbard
On Aug 5, 2009, at 1:09 PM, Laurent Sansonetti wrote: Here is an example on how to do this automatically. [ SNIP ] Gee, if this were to go up on, say, the wiki for bridgesupport, this sort of explicit advice could help future generations too! Oh what the heck, done.

Re: [MacRuby-devel] experimental branch: status update

2009-08-05 Thread Laurent Sansonetti
On Aug 4, 2009, at 1:59 PM, Laurent Sansonetti wrote: I will proceed with the merge tomorrow at 3PM California time (midnight Amsterdam time, 7AM Tokyo time). Feel free to commit before, but please hold off your commits at that time :) OK, I wasn't able to really merge the branch into

Re: [MacRuby-devel] How to use custom C struct's?

2009-08-05 Thread Clay Bridges
Thank you, Laurent. That was *incredibly* helpful and kind of you, and worked perfectly. Being able to add MapPoint#to_a and MapPoint[row,col] methods was the oh, ruby, you *are* magic moment of it all. I was going to try to pay it back by putting it up on a wiki, but Jordan beat me to it. I

[MacRuby-devel] [MacRuby] #302: 0.5 in trunk does not compile

2009-08-05 Thread MacRuby
#302: 0.5 in trunk does not compile -+-- Reporter: kieran...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker |