From: Eloy D. <e....@su...> - 2008-02-04 08:54:11
|
Hi Rich, It's true that andy Leopard install will have RubyCocoa installed. However iirc standaloneify will completely empty your load path before starting the application. This means that unless you've bundled the framework it won't be found. So my guess is that you haven't bundled the framework inside your app, which is ok of course, but in wich case you'll have to edit your rb_main.rb file after it has been standalonified to setup the correct load path or maybe even better; instead of doing "require 'osx/cocoa'" try to specify the full path. Cheers, Eloy On 4 feb 2008, at 02:12, Rich Warren wrote: > Hi, > > I'm trying to embed some RubyGem libraries into a stand alone app. > According to the web site, I used the following command: > > ruby standaloneify.rb -d RubyRSS_StandAlone.app RubyRSS.app > > Everything seemed fine. But when I tried to run the stand alone app, > It fails to launch. I get the following message in the console: > > 2/3/08 3:03:57 PM > [0x0-0x31031].com.apple.rubycocoa.NEWCOREDATAPROJECT.RubyRSSApp[278] / > Users/rikiwarren/Desktop/RubyRSS_StandAlone.app/Contents/Resources/ > rb_main.rb:25:in `require': no such file to load -- osx/cocoa > (LoadError) > > 2/3/08 3:03:57 PM > [0x0-0x31031].com.apple.rubycocoa.NEWCOREDATAPROJECT.RubyRSSApp[278] > from /Users/rikiwarren/Desktop/RubyRSS_StandAlone.app/Contents/ > Resources/rb_main.rb:25 > > 2/3/08 3:03:57 PM com.apple.launchd[63] > ([0x0-0x31031].com.apple.rubycocoa.NEWCOREDATAPROJECT.RubyRSSApp[278]) > Exited with exit code: 1 > > If I'm reading this right, it's having trouble finding the osx/cocoa > library. However, since I'm working on Leopard, all Leopard machines > should have osx/cocoa installed by default, right? > > Am I doing something wrong? How do I get standaloneify to work on > Leopard? > > Thanks, > > -Rich- > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |