Nat! bio photo


Senior Mull

Twitter Github Twitch

Failed to build RubyCocoa by hand

Aden:/Volumes/Source/src/Ruby/rubycocoa-0.4.0 nat$ ruby install.rb setup
/Volumes/Source/src/Ruby/rubycocoa-0.4.0/metaconfig:7: warning: don't put space before argument parentheses
/Volumes/Source/src/Ruby/rubycocoa-0.4.0/metaconfig:9: warning: don't put space before argument parentheses
install.rb: entering setup phase...
---> framework
setup failed
'system pbxbuild' failed
try 'ruby install.rb --help' for usage

Curiously, this isn't working with XCode. Or maybe a good sign :) So I replaced pbxbuild with xcodebuild in install.rb. But the next problem, was right around the corner:

CompileC /Library/Developer/BuildArea/
/usr/bin/gcc-3.3 -c -F/Volumes/Source/src/Ruby/rubycocoa-0.4.0/framework/build -I/Volumes/Source/src/Ruby/rubycocoa-0.4.0/framework/build/include -I/usr/local/lib/ruby/1.8/powerpc-darwin -Isrc/objc/cocoa -arch ppc -fno-common -fpascal-strings -Os -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -pipe "-fmessage-length=0" -g -Wp,-header-mapfile,/Library/Developer/BuildArea/ "-fno-common" src/objc/cocoa/rb_NSGraphicsContext.m -o /Library/Developer/BuildArea/
src/objc/cocoa/rb_NSGraphics.m: In function `init_NSGraphics': src/objc/cocoa/rb_NSGraphics.m:1483: error: `NSAlphaEqualToData' undeclared (first use in this function)
src/objc/cocoa/rb_NSGraphics.m:1483: error: (Each undeclared identifier is reported only once
src/objc/cocoa/rb_NSGraphics.m:1483: error: for each function it appears in.)
src/objc/cocoa/rb_NSGraphics.m:1484: error: `NSAlphaAlwaysOne' undeclared (first use in this function)
/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h: At top level:
src/objc/cocoa/rb_NSGraphics.m:8: warning: `VA_MAX' defined but not used
...failed CompileC /Library/Developer/BuildArea/ ...
setup failed

Maybe I should have used the CVS version. Anyway I will discontinue my exploration of RubyCocoa for now. None of the two demo applications I downloaded worked. The build process is obsolete and hosed. Last framework update was one year ago. The project has all the signs of being abandoned.

Chances are just too good that more problems will appear around the corner.