Re: [MacRuby-devel] [MacRuby] #141: Building MacRuby 0.3 - Rake fails during openssl compilation
#141: Building MacRuby 0.3 - Rake fails during openssl compilation
+---
Reporter: nucleus_...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby |Keywords:
+---
Comment(by sandor.szu...@…):
Hi,
I had the same problem right now.
I solved it via resetting my $PATH.
{{{
$ PATH="/bin:/sbin:/usr/bin:/usr/sbin"
$ rake
$ sudo rake install
}}}
It should work, please reply if not.
My settings are a new MacBook, OSX 10.5.6, xcode 3.1.1.
I also have fink and macports installed.
regards sandor
--
Ticket URL:
MacRuby
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
[MacRuby-devel] [MacRuby] #181: hotcocoa command with Macruby 0.3, patches attached
#181: hotcocoa command with Macruby 0.3, patches attached
+---
Reporter: sandor.szu...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: critical| Milestone: MacRuby 0.3
Component: MacRuby |Keywords:
+---
Hi,
the hotcocoa commandline program doesn't work as expected.
I get the following:
{{{
$ hotcocoa test
/Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa/template.rb:14:in
`initialize:': No such file or directory - test/Rakefile (Errno::ENOENT)
from
/Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa/template.rb:14:in
`open'
from
/Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa/template.rb:14:in
`block in copy_to'
from
/Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa/template.rb:9:in
`each'
from
/Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa/template.rb:9:in
`copy_to'
from /usr/local/bin/hotcocoa:23:in `'
zsh: exit 1 hotcocoa test
}}}
Fix is attached.
regards sandor
--
P.S. maybe the default priority souldn't be "blocker"
--
Ticket URL:
MacRuby
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
[MacRuby-devel] Exposing c structs and functions
Is there a way to expose some c structs and functions from a custom
Objective-C framework to MacRuby?
For instance, in my framework I have a 3-D point struct, such as:
typedef struct {
CGFloat x, y, z;
} JPoint3;
In addition, I have creation functions such as 'JPoint3Make(x, y, z)'
etc.
How do I make these usable from MacRuby, like NSPoint and NSMakePoint
are?
Jim
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Exposing c structs and functions
Hi Jim,looks like no one who really knows this stuff is offering anything -
so I will suggest some of my naive solutions / possibilities:
- as far as I know C functions, structs etc are brought into macruby by the
bridgesupport project: http://bridgesupport.macosforge.org/trac/ - however I
cannot seem to find much information on it - however they do their stuff,
you could copy - if you could find some docs ;-)
- you could just use C in ruby the normal way via the inline gem
http://www.zenspider.com/ZSS/Products/RubyInline/ - works for me so far with
simple stuff. I thought I read somewhere you could also use Objective C with
this gem - but I cannot find anything on google at the moment.
- or you could proxy through a custom objective C class - eg I managed to
proxy some opengl function calls (not that there is a need to if you have a
NSOpenGLView class - it was more a proof of concept) - alas it failed when
calling GLUT functions (malloc errors).
Hope one of those helps you, I would be curious as to how you finally do it.
Cheers,
John
On Thu, Dec 18, 2008 at 4:29 PM, Jim Getzen wrote:
> Is there a way to expose some c structs and functions from a custom
> Objective-C framework to MacRuby?
>
> For instance, in my framework I have a 3-D point struct, such as:
> typedef struct {
>CGFloat x, y, z;
> } JPoint3;
>
> In addition, I have creation functions such as 'JPoint3Make(x, y, z)' etc.
>
> How do I make these usable from MacRuby, like NSPoint and NSMakePoint are?
>
> Jim
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Exposing c structs and functions : Addendum
Hi again Jim,
another note, down the bottom of the MacRuby tutorial
http://www.macruby.org/trac/wiki/MacRubyTutorial, you will see the words:
"On some occasions. you will want to load bridge support files that you
personally generated using gen_bridge_metadata(1). To do that, you can use
the Kernel#load_bridge_support_file method."
And then an example follows, perhaps that will work for you.
Best of luck,
John
On Thu, Dec 18, 2008 at 4:29 PM, Jim Getzen wrote:
> Is there a way to expose some c structs and functions from a custom
> Objective-C framework to MacRuby?
>
> For instance, in my framework I have a 3-D point struct, such as:
> typedef struct {
>CGFloat x, y, z;
> } JPoint3;
>
> In addition, I have creation functions such as 'JPoint3Make(x, y, z)' etc.
>
> How do I make these usable from MacRuby, like NSPoint and NSMakePoint are?
>
> Jim
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
