From: Jim G. <ge...@co...> - 2006-10-26 14:17:20
|
I have a G5 Mac with RubyCocoa 0.4.3d2 (universal) installed. I made a combination RubyCocoa/Obj-C application and had XCode produce a Universal binary (yes, it says "Universal" in the "get info" window). I ran that app through standaloneify.rb and it works just fine on not only my Mac, but also my wife's older iMac, on which I have never installed RubyCocoa or any updated version of Ruby. The problem: the app won't run on Intel-based Macs. The app closes right away. The following error came up: $ /Applications/Jim\'s\ Quoridor\ v0.8b.app/Contents/MacOS/Game; exit /Applications/Jim's Quoridor v0.8b.app/Contents/lib/nkf.bundle: Failed to load /Applications/Jim's Quoridor v0.8b.app/Contents/lib/ nkf.bundle (LoadError) from /Applications/Jim's Quoridor v0.8b.app/Contents/Frameworks/ RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/ cocoa_macros.rb:13 from /Applications/Jim's Quoridor v0.8b.app/Contents/Frameworks/ RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/cocoa.rb:14:in `require' from /Applications/Jim's Quoridor v0.8b.app/Contents/Frameworks/ RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/cocoa.rb:14 from /Applications/Jim's Quoridor v0.8b.app/Contents/Frameworks/ RubyCocoa.framework/Versions/A/Resources/ruby/osx/cocoa.rb:11:in `require' from /Applications/Jim's Quoridor v0.8b.app/Contents/Frameworks/ RubyCocoa.framework/Versions/A/Resources/ruby/osx/cocoa.rb:11 from /Applications/Jim's Quoridor v0.8b.app/Contents/Resources/ rb_main.rb:25:in `require' from /Applications/Jim's Quoridor v0.8b.app/Contents/Resources/ rb_main.rb:25 logout [Process completed] I am guessing that the problem is the nkf.bundle in the Jim's Quoridor/contents/lib folder. I know nothing about that bundle -- is it part of YARV? I have YARV installed, but I am not trying to use it here. Regardless, how do I fix the problem? Thank you for any help! Jim |
From: Eloy D. <elo...@gm...> - 2006-10-26 14:30:54
|
Sorry can't help you out on this one mate.... However, I would really appreciate it once your finished, if you could send me a short description of the steps you took to completely standaloneify-and-inteled-etc... Atm I am gathering documentation on everything that could be used in a simple IDE kind of app. Thanks in advance! Eloy. PS: I suppose this is the game you were talking about last time? Looking forward to it. On 10/26/06, Jim Getzen <ge...@co...> wrote: > I have a G5 Mac with RubyCocoa 0.4.3d2 (universal) installed. I made > a combination RubyCocoa/Obj-C application and had XCode produce a > Universal binary (yes, it says "Universal" in the "get info" window). > I ran that app through standaloneify.rb and it works just fine on not > only my Mac, but also my wife's older iMac, on which I have never > installed RubyCocoa or any updated version of Ruby. > > The problem: the app won't run on Intel-based Macs. The app closes > right away. The following error came up: > > $ /Applications/Jim\'s\ Quoridor\ v0.8b.app/Contents/MacOS/Game; exit > /Applications/Jim's Quoridor v0.8b.app/Contents/lib/nkf.bundle: > Failed to load /Applications/Jim's Quoridor v0.8b.app/Contents/lib/ > nkf.bundle (LoadError) > from /Applications/Jim's Quoridor v0.8b.app/Contents/Frameworks/ > RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/ > cocoa_macros.rb:13 > from /Applications/Jim's Quoridor v0.8b.app/Contents/Frameworks/ > RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/cocoa.rb:14:in > `require' > from /Applications/Jim's Quoridor v0.8b.app/Contents/Frameworks/ > RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/cocoa.rb:14 > from /Applications/Jim's Quoridor v0.8b.app/Contents/Frameworks/ > RubyCocoa.framework/Versions/A/Resources/ruby/osx/cocoa.rb:11:in > `require' > from /Applications/Jim's Quoridor v0.8b.app/Contents/Frameworks/ > RubyCocoa.framework/Versions/A/Resources/ruby/osx/cocoa.rb:11 > from /Applications/Jim's Quoridor v0.8b.app/Contents/Resources/ > rb_main.rb:25:in `require' > from /Applications/Jim's Quoridor v0.8b.app/Contents/Resources/ > rb_main.rb:25 > logout > [Process completed] > > I am guessing that the problem is the nkf.bundle in the Jim's > Quoridor/contents/lib folder. I know nothing about that bundle -- is > it part of YARV? I have YARV installed, but I am not trying to use it > here. > > Regardless, how do I fix the problem? Thank you for any help! > > Jim > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |
From: Jim G. <ge...@co...> - 2006-10-26 17:13:34
|
> > On Oct 26, 2006, at 11:02 AM, Fujimoto Hisa wrote: > > nkf.bundle is a ruby binding for the latter, and it's a standard > extend library of ruby 1.8. And cocoa_macro.rb depend on nkf.bundle > currently because of just handling Japanese string conversion. > > Could you try to copy the /usr/lib/ruby/1.8/universal-darwin8.0/ > nkf.bundle into a Resources in your application bundle. > -- > hisa > I do not have an nkf.bundle in /usr/lib/ruby/1.8/universal-darwin9.0/ Only header files reside in that folder. The *only* nkf.bundle on my system (other than inside the application bundle) is located in my yarv folder at: Applications/yarv-r545/lib/ruby/2.0/powerpc-darwin8.7.0/ Should I move or copy the nkf.bundle now located in the app at / Contents/lib/ to /Contents/Resources/ and give that a try on an Intel Mac (dang I wish I had one!)? Jim |
From: Fujimoto H. <hi...@fo...> - 2006-10-27 04:45:52
|
On 2006/10/27, at 2:13, Jim Getzen wrote: >> >> On Oct 26, 2006, at 11:02 AM, Fujimoto Hisa wrote: >> >> nkf.bundle is a ruby binding for the latter, and it's a standard >> extend library of ruby 1.8. And cocoa_macro.rb depend on nkf.bundle >> currently because of just handling Japanese string conversion. >> >> Could you try to copy the /usr/lib/ruby/1.8/universal-darwin8.0/ >> nkf.bundle into a Resources in your application bundle. >> -- >> hisa >> > > I do not have an nkf.bundle in /usr/lib/ruby/1.8/universal-darwin9.0/ > Only header files reside in that folder. I can't tell why nkf.bundle in there. But nkf.bundle is one of *standard* additional module for ruby, same as socket.bundle, it should be in the directory. in fact, it exists in there in my mac leopard volume, and /usr/lib/ruby/1.8/universal-darwin8.0/ in the tiger volume. I guess your RubyCocoa.framework is another libruby instead of the default /usr/lib/libruby. seems your pc installed yarv, so it link to yarv? you should check global variable $: of your rubycocoa app runtime. -- hisa |
From: Eloy D. <elo...@gm...> - 2006-10-27 07:54:05
|
I did a check on my tiger machine; In the standard /usr/lib/ruby/1.8/universal-darwin8.0/ there are indeed only headers: Eloy-Duran-PowerBoogie:~ eloy$ ls -ll /usr/lib/ruby/1.8/universal-darwin8.0/ total 256 -rw-r--r-- 1 root wheel 4291 Dec 25 2005 config.h -rw-r--r-- 1 root wheel 5808 Sep 6 2005 defines.h -rw-r--r-- 1 root wheel 8870 Dec 2 2003 dl.h -rw-r--r-- 1 root wheel 391 Dec 25 2005 dlconfig.h -rw-r--r-- 1 root wheel 773 Jan 16 2003 dln.h -rw-r--r-- 1 root wheel 1113 Oct 20 2003 env.h -rw-r--r-- 1 root wheel 18199 Dec 3 2004 intern.h -rw-r--r-- 1 root wheel 2566 Dec 22 2003 missing.h -rw-r--r-- 1 root wheel 10355 Oct 2 2004 node.h -rw-r--r-- 1 root wheel 962 Mar 4 2003 re.h -rw-r--r-- 1 root wheel 7703 Aug 3 2003 regex.h -rw-r--r-- 1 root wheel 19260 Mar 31 2004 ruby.h -rw-r--r-- 1 root wheel 2314 Nov 22 2004 rubyio.h -rw-r--r-- 1 root wheel 2828 Dec 6 2004 rubysig.h -rw-r--r-- 1 root wheel 1668 Dec 3 2004 st.h -rw-r--r-- 1 root wheel 1516 Sep 21 2004 util.h -rw-r--r-- 1 root wheel 434 Dec 25 2004 version.h The powerpc directory however is another story, there are all the bundles that you'd expect: Eloy-Duran-PowerBoogie:~ eloy$ ls -ll /usr/lib/ruby/1.8/powerpc-darwin8.0/ total 1904 -rwxr-xr-x 1 root wheel 43332 Mar 21 2005 bigdecimal.bundle -rwxr-xr-x 1 root wheel 41900 Mar 21 2005 curses.bundle -rwxr-xr-x 1 root wheel 18820 Mar 21 2005 dbm.bundle drwxr-xr-x 6 root wheel 204 Mar 26 2005 digest -rwxr-xr-x 1 root wheel 9356 Mar 21 2005 digest.bundle -rwxr-xr-x 1 root wheel 72408 Mar 21 2005 dl.bundle -rwxr-xr-x 1 root wheel 9312 Mar 21 2005 enumerator.bundle -rwxr-xr-x 1 root wheel 13796 Mar 21 2005 etc.bundle -rwxr-xr-x 1 root wheel 8360 Mar 21 2005 fcntl.bundle -rwxr-xr-x 1 root wheel 14896 Mar 21 2005 iconv.bundle drwxr-xr-x 3 root wheel 102 Mar 26 2005 io -rwxr-xr-x 1 root wheel 127800 Mar 21 2005 nkf.bundle -rwxr-xr-x 1 root wheel 215288 Mar 21 2005 openssl.bundle -rwxr-xr-x 1 root wheel 14508 Mar 21 2005 pty.bundle drwxr-xr-x 3 root wheel 102 Mar 26 2005 racc -rw-r--r-- 1 root wheel 6067 Feb 17 2006 rbconfig.rb -rwxr-xr-x 1 root wheel 23172 Mar 21 2005 sdbm.bundle -rwxr-xr-x 1 root wheel 37976 Mar 21 2005 socket.bundle -rwxr-xr-x 1 root wheel 19148 Mar 21 2005 stringio.bundle -rwxr-xr-x 1 root wheel 18500 Mar 21 2005 strscan.bundle -rwxr-xr-x 1 root wheel 82716 Mar 21 2005 syck.bundle -rwxr-xr-x 1 root wheel 13756 Mar 21 2005 syslog.bundle -rwxr-xr-x 1 root wheel 69824 Mar 21 2005 tcltklib.bundle -rwxr-xr-x 1 root wheel 23744 Mar 21 2005 tkutil.bundle -rwxr-xr-x 1 root wheel 37588 Mar 21 2005 zlib.bundle So it seems that the standard apple install doesn't supply a complete universal directory, on a powerpc mac that is. I don't have a intel mac so I can't check it there... Eloy. On 10/27/06, Fujimoto Hisa <hi...@fo...> wrote: > > On 2006/10/27, at 2:13, Jim Getzen wrote: > > >> > >> On Oct 26, 2006, at 11:02 AM, Fujimoto Hisa wrote: > >> > >> nkf.bundle is a ruby binding for the latter, and it's a standard > >> extend library of ruby 1.8. And cocoa_macro.rb depend on nkf.bundle > >> currently because of just handling Japanese string conversion. > >> > >> Could you try to copy the /usr/lib/ruby/1.8/universal-darwin8.0/ > >> nkf.bundle into a Resources in your application bundle. > >> -- > >> hisa > >> > > > > I do not have an nkf.bundle in /usr/lib/ruby/1.8/universal-darwin9.0/ > > Only header files reside in that folder. > > I can't tell why nkf.bundle in there. But nkf.bundle is one of > *standard* additional module for ruby, same as socket.bundle, it > should be in the directory. in fact, it exists in there in my mac > leopard volume, and /usr/lib/ruby/1.8/universal-darwin8.0/ in the > tiger volume. > > I guess your RubyCocoa.framework is another libruby instead of the > default /usr/lib/libruby. seems your pc installed yarv, so it link to > yarv? you should check global variable $: of your rubycocoa app runtime. > -- > hisa > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |
From: Jim G. <ge...@co...> - 2006-10-27 12:54:32
|
> > On Oct 27, 2006, at 3:54 AM, Eloy Duran wrote: > > I did a check on my tiger machine; > > In the standard /usr/lib/ruby/1.8/universal-darwin8.0/ there are > indeed only headers: > <snip> > > The powerpc directory however is another story, > there are all the bundles that you'd expect: > <snip> My computer is exactly the same. (In a previous email I wrote that the only nkf.bundle on my machine was located in the yarv folder. For some reason, Spotlight did not find the one in the powerpc directory.) > > I guess your RubyCocoa.framework is another libruby instead of the > default /usr/lib/libruby. seems your pc installed yarv, so it link to > yarv? you should check global variable $: of your rubycocoa app > runtime. > -- > hisa > I am a novice at this, so I am not sure what you mean. I can tell you, however, that in /usr/lib/ the libruby.dylib file is actually an alias pointing to libruby.1.dylib right next to it in the same folder. libruby.1.dylib is dated October 2, 2006. The only way I could find to check the global variable $: was to do "puts $:" in irb. Here is what came up: irb(main):001:0> puts $: /opt/local/lib/ruby/site_ruby/1.8 /opt/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.6.0 /opt/local/lib/ruby/site_ruby /opt/local/lib/ruby/vendor_ruby/1.8 /opt/local/lib/ruby/vendor_ruby/1.8/powerpc-darwin8.6.0 /opt/local/lib/ruby/vendor_ruby /opt/local/lib/ruby/1.8 /opt/local/lib/ruby/1.8/powerpc-darwin8.6.0 . => nil By the way, if anyone wants to try the game on his computer, Intel or otherwise, it is temporarily located at: http://home.comcast.net/~getzen/JimsQuoridor.zip I haven't moved/copied the nkf.bundle into the Resources folder in that app, as Hisa suggested, so I don't know if that will solve the Intel problem. Has anyone been able to create a standalone RubyCocoa app which works on Intel Macs (with the Apple-supplied Ruby installed and no RubyCocoa install)? Jim |
From: Eloy D. <elo...@gm...> - 2006-10-27 13:01:41
|
Well since your ruby resides in /opt/local/lib/ruby you are not using the standard apple ruby, but probably also from darwinports. I guess what Hisa san suggested is like what you did, but not to do it from the terminal/irb but from within your app... So just put the same commands somewhere in your app and it will be printed to the console, then you know for sure which ruby is being used by the rubycocoa framework. Eloy. On 10/27/06, Jim Getzen <ge...@co...> wrote: > > > > On Oct 27, 2006, at 3:54 AM, Eloy Duran wrote: > > > > I did a check on my tiger machine; > > > > In the standard /usr/lib/ruby/1.8/universal-darwin8.0/ there are > > indeed only headers: > > <snip> > > > > The powerpc directory however is another story, > > there are all the bundles that you'd expect: > > <snip> > > My computer is exactly the same. (In a previous email I wrote that > the only nkf.bundle on my machine was located in the yarv folder. For > some reason, Spotlight did not find the one in the powerpc directory.) > > > > > I guess your RubyCocoa.framework is another libruby instead of the > > default /usr/lib/libruby. seems your pc installed yarv, so it link to > > yarv? you should check global variable $: of your rubycocoa app > > runtime. > > -- > > hisa > > > > I am a novice at this, so I am not sure what you mean. I can tell > you, however, that in /usr/lib/ the libruby.dylib file is actually an > alias pointing to libruby.1.dylib right next to it in the same > folder. libruby.1.dylib is dated October 2, 2006. > > The only way I could find to check the global variable $: was to do > "puts $:" in irb. Here is what came up: > irb(main):001:0> puts $: > /opt/local/lib/ruby/site_ruby/1.8 > /opt/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.6.0 > /opt/local/lib/ruby/site_ruby > /opt/local/lib/ruby/vendor_ruby/1.8 > /opt/local/lib/ruby/vendor_ruby/1.8/powerpc-darwin8.6.0 > /opt/local/lib/ruby/vendor_ruby > /opt/local/lib/ruby/1.8 > /opt/local/lib/ruby/1.8/powerpc-darwin8.6.0 > . > => nil > > By the way, if anyone wants to try the game on his computer, Intel or > otherwise, it is temporarily located at: > http://home.comcast.net/~getzen/JimsQuoridor.zip > I haven't moved/copied the nkf.bundle into the Resources folder in > that app, as Hisa suggested, so I don't know if that will solve the > Intel problem. > > Has anyone been able to create a standalone RubyCocoa app which works > on Intel Macs (with the Apple-supplied Ruby installed and no > RubyCocoa install)? > > Jim > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |
From: Fujimoto H. <hi...@fo...> - 2006-10-27 13:11:43
|
On 2006/10/27, at 16:54, Eloy Duran wrote: > I did a check on my tiger machine; > > In the standard /usr/lib/ruby/1.8/universal-darwin8.0/ there are > indeed only headers: > Eloy-Duran-PowerBoogie:~ eloy$ ls -ll /usr/lib/ruby/1.8/universal- > darwin8.0/ (snip) > The powerpc directory however is another story, > there are all the bundles that you'd expect: > Eloy-Duran-PowerBoogie:~ eloy$ ls -ll /usr/lib/ruby/1.8/powerpc- > darwin8.0/ > total 1904 (snip) > So it seems that the standard apple install doesn't supply a complete > universal directory, on a powerpc mac that is. > I don't have a intel mac so I can't check it there... i did check both ppc and intel mac. # on PowerBook G4 $ cd /usr/lib/ruby/1.8/powerpc-darwin8.0 $ file nkf.bundle nkf.bundle: Mach-O bundle ppc # on MacBook $ file nkf.bundle nkf.bundle: Mach-O universal binary with 2 architectures nkf.bundle (for architecture i386): Mach-O bundle i386 nkf.bundle (for architecture ppc): Mach-O bundle ppc anyway, at least, using RubyCocoa 0.4.3d2 binary package (dmg) and / usr/lib/libruby (1.8.2 with osx 10.4), it's able to build an universal rubycocoa application on both intel mac and ppc mac. build universal rubycocoa app on ppc, check arch config (ppc and i386), and target SDK (10.4 universal). -- hisa |
From: Eloy D. <elo...@gm...> - 2006-10-27 13:26:25
|
I have not yet used standaloneify.rb, but I suspect it's a script that traces which files are needed by your application, right?? So if the script is run on a ppc mac and tries to collect all the files needed for a universal app, then you probably should have a universal nkf.bundle in /usr/lib/ruby/1.8/powerpc-darwin8.0/ right? (or maybe in the universal-darwin8 dir) Is standaloneify.rb THE way to make your self-contained universal RubyCocoa app?? Shouldn't you only include the framework and not all the files from the libruby?? Eloy. On 10/27/06, Fujimoto Hisa <hi...@fo...> wrote: > On 2006/10/27, at 16:54, Eloy Duran wrote: > > > I did a check on my tiger machine; > > > > In the standard /usr/lib/ruby/1.8/universal-darwin8.0/ there are > > indeed only headers: > > Eloy-Duran-PowerBoogie:~ eloy$ ls -ll /usr/lib/ruby/1.8/universal- > > darwin8.0/ > (snip) > > The powerpc directory however is another story, > > there are all the bundles that you'd expect: > > Eloy-Duran-PowerBoogie:~ eloy$ ls -ll /usr/lib/ruby/1.8/powerpc- > > darwin8.0/ > > total 1904 > (snip) > > So it seems that the standard apple install doesn't supply a complete > > universal directory, on a powerpc mac that is. > > I don't have a intel mac so I can't check it there... > > i did check both ppc and intel mac. > > # on PowerBook G4 > $ cd /usr/lib/ruby/1.8/powerpc-darwin8.0 > $ file nkf.bundle > nkf.bundle: Mach-O bundle ppc > > # on MacBook > $ file nkf.bundle > nkf.bundle: Mach-O universal binary with 2 architectures > nkf.bundle (for architecture i386): Mach-O bundle i386 > nkf.bundle (for architecture ppc): Mach-O bundle ppc > > anyway, at least, using RubyCocoa 0.4.3d2 binary package (dmg) and / > usr/lib/libruby (1.8.2 with osx 10.4), it's able to build an > universal rubycocoa application on both intel mac and ppc mac. > > build universal rubycocoa app on ppc, check arch config (ppc and > i386), and target SDK (10.4 universal). > -- > hisa > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |
From: Fujimoto H. <hi...@fo...> - 2006-10-27 14:25:50
|
Now I could get the cause of the issue maybe. I guess the file "/Applications/Jim's Quoridor v0.8b.app/Contents/lib/ nkf.bundle" was copied from "/usr/lib/ruby/1.8/powerpc-darwin8.0/ nkf.bundle" on ppc mac by standaloneify.rb. this nkf.bundle is a Mach- O bundle ppc just only. An intel mac includes /usr/lib/ruby/1.8/ universal-darwin8/nkf.bundle for both ppc and i386. So two nkf.bundle exist on the loadpath of the rubycocoa app runtime. And ppc only version was loaded unluckly becase of priority (the order of $: items). Well an ad-hoc solution, remove the nkf.bundle in the application bundle ("Jim's Quoridor v0.8b.app/Contents/lib/nkf.bundle") of intel mac. Perhaps all intel mac has /usr/lib/ruby/1.8/universal-darwin8.0/ nkf.bundle as universal Mach-O, so it may be work fine. cheers, -- hisa On 2006/10/27, at 22:26, Eloy Duran wrote: > I have not yet used standaloneify.rb, but I suspect it's a script > that traces which files are needed by your application, right?? > > So if the script is run on a ppc mac and tries to collect all the > files > needed for a universal app, then you probably should have a > universal nkf.bundle > in /usr/lib/ruby/1.8/powerpc-darwin8.0/ right? (or maybe in the > universal-darwin8 dir) > > Is standaloneify.rb THE way to make your self-contained universal > RubyCocoa app?? > Shouldn't you only include the framework and not all the files from > the libruby?? > > Eloy. > > On 10/27/06, Fujimoto Hisa <hi...@fo...> wrote: >> On 2006/10/27, at 16:54, Eloy Duran wrote: >> >>> I did a check on my tiger machine; >>> >>> In the standard /usr/lib/ruby/1.8/universal-darwin8.0/ there are >>> indeed only headers: >>> Eloy-Duran-PowerBoogie:~ eloy$ ls -ll /usr/lib/ruby/1.8/universal- >>> darwin8.0/ >> (snip) >>> The powerpc directory however is another story, >>> there are all the bundles that you'd expect: >>> Eloy-Duran-PowerBoogie:~ eloy$ ls -ll /usr/lib/ruby/1.8/powerpc- >>> darwin8.0/ >>> total 1904 >> (snip) >>> So it seems that the standard apple install doesn't supply a >>> complete >>> universal directory, on a powerpc mac that is. >>> I don't have a intel mac so I can't check it there... >> >> i did check both ppc and intel mac. >> >> # on PowerBook G4 >> $ cd /usr/lib/ruby/1.8/powerpc-darwin8.0 >> $ file nkf.bundle >> nkf.bundle: Mach-O bundle ppc >> >> # on MacBook >> $ file nkf.bundle >> nkf.bundle: Mach-O universal binary with 2 architectures >> nkf.bundle (for architecture i386): Mach-O bundle i386 >> nkf.bundle (for architecture ppc): Mach-O bundle ppc >> >> anyway, at least, using RubyCocoa 0.4.3d2 binary package (dmg) and / >> usr/lib/libruby (1.8.2 with osx 10.4), it's able to build an >> universal rubycocoa application on both intel mac and ppc mac. >> >> build universal rubycocoa app on ppc, check arch config (ppc and >> i386), and target SDK (10.4 universal). >> -- >> hisa >> >> >> --------------------------------------------------------------------- >> ---- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Brian K. <bke...@gm...> - 2006-10-27 14:37:27
|
On my intel mac mini with 10.4.8 the nkf.bundle is universal. See output below. Does this mean that one needs to run standaloneify.rb on an Intel Mac? Or does it mean that one needs to do extra steps to run standaloneify.rb on a PPC mac and produce a universal binary? Oh, and since I'm butting in and introducing myself for the first time, a huge (HUGE) thank you to those who are making Ruby Cocoa. intellimac:/usr/lib/ruby/1.8/universal-darwin8.0 briank$ ls bigdecimal.bundle fcntl.bundle rubyio.h config.h iconv.bundle rubysig.h curses.bundle intern.h sdbm.bundle dbm.bundle io socket.bundle defines.h missing.h st.h digest nkf.bundle stringio.bundle digest.bundle node.h strscan.bundle dl.bundle openssl.bundle syck.bundle dl.h pty.bundle syslog.bundle dlconfig.h racc tcltklib.bundle dln.h rbconfig.rb tkutil.bundle enumerator.bundle re.h util.h env.h regex.h version.h etc.bundle ruby.h zlib.bundle intellimac:/usr/lib/ruby/1.8/universal-darwin8.0 briank$ file nkf.bundle nkf.bundle: Mach-O universal binary with 2 architectures nkf.bundle (for architecture i386): Mach-O bundle i386 nkf.bundle (for architecture ppc): Mach-O bundle ppc intellimac:/usr/lib/ruby/1.8/universal-darwin8.0 briank$ |
From: Eloy D. <elo...@gm...> - 2006-10-27 14:42:50
|
I guess so, the weird thing though is that I have 2 dirs: /usr/lib/ruby/1.8/powerpc-darwin8.0 AND /usr/lib/ruby/1.8/universal-darwin8.0 But the universal one only contains headers.... So why don't we powerpc people have just one universal dir with everything included??? Do the intel people also have 2 dirs?? Eloy. On 10/27/06, Brian Ketelsen <bke...@gm...> wrote: > On my intel mac mini with 10.4.8 the nkf.bundle is universal. See > output below. Does this mean that one needs to run standaloneify.rb > on an Intel Mac? Or does it mean that one needs to do extra steps to > run standaloneify.rb on a PPC mac and produce a universal binary? > > Oh, and since I'm butting in and introducing myself for the first > time, a huge (HUGE) thank you to those who are making Ruby Cocoa. > > intellimac:/usr/lib/ruby/1.8/universal-darwin8.0 briank$ ls > bigdecimal.bundle fcntl.bundle rubyio.h > config.h iconv.bundle rubysig.h > curses.bundle intern.h sdbm.bundle > dbm.bundle io socket.bundle > defines.h missing.h st.h > digest nkf.bundle stringio.bundle > digest.bundle node.h strscan.bundle > dl.bundle openssl.bundle syck.bundle > dl.h pty.bundle syslog.bundle > dlconfig.h racc tcltklib.bundle > dln.h rbconfig.rb tkutil.bundle > enumerator.bundle re.h util.h > env.h regex.h version.h > etc.bundle ruby.h zlib.bundle > intellimac:/usr/lib/ruby/1.8/universal-darwin8.0 briank$ file nkf.bundle > nkf.bundle: Mach-O universal binary with 2 architectures > nkf.bundle (for architecture i386): Mach-O bundle i386 > nkf.bundle (for architecture ppc): Mach-O bundle ppc > intellimac:/usr/lib/ruby/1.8/universal-darwin8.0 briank$ > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |
From: Jim G. <ge...@co...> - 2006-10-27 14:57:16
|
Could I trouble somebody with an Intel Mac to download my app from: http://home.comcast.net/~getzen/JimsQuoridor.zip and replace the nkf.bundle in the app package at /Contents/lib/ with a copy of your universal one from: /usr/lib/ruby/1.8/universal-darwin8.0/ to see if the app runs? If it does, please email me a copy of your universal nkf.bundle! :-) Thanks, Jim |
From: Lon B. <lo...@sp...> - 2006-10-27 15:00:45
|
I have only one. universal-darwin8.0 Though I only use a newer version compiled into /usr/local/ instead. It is not a universal version. Another tripwire to keep in mind. Some RubyGems you may install will have native C portions that by default do not compile as a universal binary. It is something that will need to be addresses at some point by RubyGem creating UB versions of extensions. -- Lon |
From: Eloy D. <elo...@gm...> - 2006-10-27 15:09:39
|
I haven't tried the game yet, because I used my colleague's macbook to quickly try it... Oops, it bounced back... I'll email it to you directly! But just so everybody knows, it works by replacing it with a nkf.bundle from a intel mac. On 10/27/06, Eloy Duran <elo...@gm...> wrote: > It works! > I attached the universal one.... > > On 10/27/06, Jim Getzen <ge...@co...> wrote: > > Could I trouble somebody with an Intel Mac to download my app from: > > http://home.comcast.net/~getzen/JimsQuoridor.zip > > > > and replace the nkf.bundle in the app package at /Contents/lib/ with > > a copy of your universal one from: > > /usr/lib/ruby/1.8/universal-darwin8.0/ > > to see if the app runs? > > > > If it does, please email me a copy of your universal nkf.bundle! :-) > > > > Thanks, > > > > Jim > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Rubycocoa-talk mailing list > > Rub...@li... > > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > > > |
From: Jim G. <ge...@co...> - 2006-10-27 15:27:00
|
> On Oct 27, 2006, at 11:06 AM, Lon Baker wrote: > > Jim, > > It ran after I copied my UB version of NKF.bundle into the > application. > > Here you go. > > -- > Lon Woohoo! Thank you, thank you for everyone's help! The universal version of nkf.bundle also works, as expected, on ppc Macs too, so only one version of the app needs to be distributed. Hopefully, this situation will prompt a change in the RubyCocoa distribution to include only the universal version, even on ppc Macs, to eliminate the problem in the future. As a temporary workaround, I wonder if replacing the nkf.bundle in / usr/lib/ruby/1.8/powerpc-darwin8.0/ with the universal version would then cause standaloneify.rb to put that version in the resulting standalone app, thus requiring no file swapping by the developer? I don't see why that wouldn't work. I can't try it at the moment, but I will later today. Jim |
From: Fujimoto H. <hi...@fo...> - 2006-10-27 15:57:26
|
your game works fine on my MacBook as well. thank you for using rubycocoa! On 2006/10/28, at 0:26, Jim Getzen wrote: > Woohoo! Thank you, thank you for everyone's help! > > The universal version of nkf.bundle also works, as expected, on ppc > Macs too, so only one version of the app needs to be distributed. > > Hopefully, this situation will prompt a change in the RubyCocoa > distribution to include only the universal version, even on ppc Macs, > to eliminate the problem in the future. RubyCocoa binary (0.4.3d2 and 0.5 coming soon) is already build as universal binary. I guess standaloneify.rb is not aware about intel and universal binary. And I hope Apple will update all ruby's binary as universal. it's too complex to satisfy all in this situation ;) thanks -- hisa |
From: Jonathan P. <jp...@dc...> - 2006-11-02 16:23:17
|
Hi all, I'd like to add my comments to this thread. standaloneify.rb works by searching for *.dylib, *.bundle and *.rb dependencies in the application, and bundles all these files inside the output application. It's intended to be used on a non-Apple installation of ruby (e.g., darwinports from /opt/local), because things in /usr/lib are explicitly ignored. The reason for this was to ensure that the ruby runtime was bundled, so things would work on 10.3.9 where only ruby 1.6.8 is available. As far as the problems with universal libraries go, a temporary workaround would be to use 'lipo' to strip the libraries down to PowerPC-only, and let the application run using emulation on an Intel. e.g., lipo -output FILE -thin ppc FILE In fact, only the main application wrapper needs to be PowerPC-only, since that will force the app to start in emulation mode. Cheers, Jonathan |
From: Evan J. <ev...@ap...> - 2006-11-11 00:27:33
|
Hi All - I tried to install RubyCocoa 0.4.2 today on my MacBook Pro. I've had some problems. I may have confused things a little bit; I installed from the binary, and then when that didn't work, I installed from source as well. I did ruby install.rb config ruby install.rb setup ruby install.test all without problems. But, when I try to load rubyCocoa in irb, I get the following error: [jonese@Mailslot Desktop]$ irb irb(main):001:0> require 'osx/cocoa' LoadError: Failed to load /usr/lib/ruby/site_ruby/1.8/powerpc- darwin8.0/rubycocoa.bundle from /usr/lib/ruby/site_ruby/1.8/powerpc-darwin8.0/ rubycocoa.bundle from /usr/lib/ruby/site_ruby/1.8/osx/cocoa.rb:11 from (irb):1:in `require' from (irb):1 Looking at "/usr/lib/ruby/site_ruby/1.8", it contains three directories: osx powerpc-darwin8.0 universal-darwin8.0 rubycocoa.bundle is in powerpc-darwin8.0, and universal-darwin8.0 is empty. Looks like rubycocoa.bundle isn't being built for an intel system. Anybody know why that is? Is there some way I can get it to build universally? Thanks for the help, Evan |
From: Jonathan P. <jp...@dc...> - 2006-11-12 18:16:51
|
On 11 Nov 2006, at 0:27, Evan Jones wrote: > Hi All - > I tried to install RubyCocoa 0.4.2 today on my MacBook Pro. I've > had some problems. I'm confused - your subject line says Ruby 1.8.5, yet I thought that Tiger only ships with Ruby 1.8.2. Have you installed your own Ruby 1.8.5 on top of the ruby in /usr? I don't have an Intel mac so I'm afraid I haven't got much experience with universal building. Could you give more details of the problem you got when using the RubyCocoa binary package? What source package did you build from? If you didn't try it already, you could try building from the Subversion trunk. There's an experimental '--build-universal' option to install.rb there. Hope that helps - sorry for all the questions! Cheers, Jonathan |
From: Evan T. J. <eva...@ma...> - 2006-11-12 18:28:58
|
You're correct. I've just installed 1.8.5 as well. Anyway, I spent some more time poking at the source installation procedure and realized I had just neglected to do the actual installation-- ruby install.rb install. That fixed everything. Thanks for the ping, though! Evan On Nov 12, 2006, at 10:16 AM, Jonathan Paisley wrote: > On 11 Nov 2006, at 0:27, Evan Jones wrote: > >> Hi All - >> I tried to install RubyCocoa 0.4.2 today on my MacBook Pro. I've >> had some problems. > > I'm confused - your subject line says Ruby 1.8.5, yet I thought that > Tiger only ships with Ruby 1.8.2. Have you installed your own Ruby > 1.8.5 on top of the ruby in /usr? > > I don't have an Intel mac so I'm afraid I haven't got much experience > with universal building. > > Could you give more details of the problem you got when using the > RubyCocoa binary package? > > What source package did you build from? If you didn't try it already, > you could try building from the Subversion trunk. There's an > experimental '--build-universal' option to install.rb there. > > Hope that helps - sorry for all the questions! > Cheers, > Jonathan > > > > > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |