RubyCocoa

Adam Salter adam.q.salter at gmail.com
Sun Nov 4 16:33:15 PST 2007


Sorry it took a while to get back to you...

No I didn't install anything on Leopard... is that my mistake?

Ok to confirm step by step:
1. I open RoundTransparentWindow.xcodeproj from Examples folder
2. I do Build from build menu.
3. I get:

CompileC /Developer/Examples/Ruby/RubyCocoa/RoundTransparentWindow/ 
build/RoundTransparentWindow.build/Deployment/ 
RoundTransparentWindow.build/Objects-normal/i386/main.o main.m
     /Developer/usr/bin/gcc-4.0  -c -I/Developer/Examples/Ruby/ 
RubyCocoa/RoundTransparentWindow/build/RoundTransparentWindow.build/ 
Deployment/RoundTransparentWindow.build/RoundTransparentWindow.hmap   - 
F/Developer/Examples/Ruby/RubyCocoa/RoundTransparentWindow/build/ 
Deployment  -I/Developer/Examples/Ruby/RubyCocoa/ 
RoundTransparentWindow/build/Deployment/include  -arch i386 -fno- 
common -fpascal-strings -Os -Wmost -Wno-four-char-constants -Wno- 
unknown-pragmas -pipe "-fmessage-length=0" -mdynamic-no-pic -g        
main.m  -o /Developer/Examples/Ruby/RubyCocoa/RoundTransparentWindow/ 
build/RoundTransparentWindow.build/Deployment/ 
RoundTransparentWindow.build/Objects-normal/i386/main.o
main.m:1:32: error: RubyCocoa/RBRuntime.h: No such file or directory
main.m: In function 'main':
main.m:5: warning: implicit declaration of function 'RBApplicationMain'

RubyCocoa is listed in linked frameworks...

I noticed that new RubyCocoa projects import Cocoa.h, so if I try that  
I get:

CompileC /Developer/Examples/Ruby/RubyCocoa/RoundTransparentWindow/ 
build/RoundTransparentWindow.build/Deployment/ 
RoundTransparentWindow.build/Objects-normal/i386/main.o
...failed CompileC /Developer/Examples/Ruby/RubyCocoa/ 
RoundTransparentWindow/build/RoundTransparentWindow.build/Deployment/ 
RoundTransparentWindow.build/Objects-normal/i386/main.o ...

CompileC /Developer/Examples/Ruby/RubyCocoa/RoundTransparentWindow/ 
build/RoundTransparentWindow.build/Deployment/ 
RoundTransparentWindow.build/Objects-normal/i386/main.o main.m
     /Developer/usr/bin/gcc-4.0  -c -I/Developer/Examples/Ruby/ 
RubyCocoa/RoundTransparentWindow/build/RoundTransparentWindow.build/ 
Deployment/RoundTransparentWindow.build/RoundTransparentWindow.hmap   - 
F/Developer/Examples/Ruby/RubyCocoa/RoundTransparentWindow/build/ 
Deployment  -I/Developer/Examples/Ruby/RubyCocoa/ 
RoundTransparentWindow/build/Deployment/include  -arch i386 -fno- 
common -fpascal-strings -Os -Wmost -Wno-four-char-constants -Wno- 
unknown-pragmas -pipe "-fmessage-length=0" -mdynamic-no-pic -g        
main.m  -o /Developer/Examples/Ruby/RubyCocoa/RoundTransparentWindow/ 
build/RoundTransparentWindow.build/Deployment/ 
RoundTransparentWindow.build/Objects-normal/i386/main.o
In file included from /System/Library/Frameworks/ 
ApplicationServices.framework/Headers/ApplicationServices.h:20,
                  from /System/Library/Frameworks/Foundation.framework/ 
Headers/NSAppleEventDescriptor.h:8,
                  from /System/Library/Frameworks/Foundation.framework/ 
Headers/Foundation.h:104,
                  from /System/Library/Frameworks/Cocoa.framework/ 
Headers/Cocoa.h:12,
                  from main.m:1:
[...Snip...]
/System/Library/Frameworks/Foundation.framework/Headers/ 
NSAppleEventDescriptor.h:14: error: syntax error before 'AEDesc'
/System/Library/Frameworks/Foundation.framework/Headers/ 
NSAppleEventDescriptor.h:24: error: syntax error before 'DescType'
/System/Library/Frameworks/Foundation.framework/Headers/ 
NSAppleEventDescriptor.h:26: error: syntax error before 'DescType'
/System/Library/Frameworks/Foundation.framework/Headers/ 
NSAppleEventDescriptor.h:30: fatal error: method definition not in  
@implementation context
compilation terminated.
{standard input}:32:FATAL:.abort  detected.  Assembly stopping.


A brand new RubyCocoa project compiles fine though... so I'm at a loss  
as to what it is...

-Adam

On 02/11/2007, at 4:45 PM, Bill Bumgarner wrote:

> On Nov 1, 2007, at 10:09 PM, Adam Salter wrote:
>> I have the RubyCocoa framework installed, but it still can't find  
>> RubyCocoa/RBRuntime.h
>
> Leopard?
>
> You installed RubyCocoa.framework on Leopard?
>
> Did you try with stock Leopard Dev Tools?
>
> For PyObjC, the one person that reported failures had a legacy  
> Python 2.5 install when he upgraded from Tiger.   Removal of that  
> fixed everything.
>
> What is the exact set of errors?
>
> b.bum
>



More information about the MacOSX-dev mailing list