Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Error compiling .r resource file with XCode 2.5 and Intel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error compiling .r resource file with XCode 2.5 and Intel



Hi,

I encountered an error in compiling a resource file with Rez
on an Intel iMac (OSX 10.5.7) with XCode 2.5.
Here is the resource file named test.r:

#include <Carbon/Carbon.r>

resource 'crsr' ( 131 , "Green Arrow Plus" )
{
$"0000 4000 6000 7000 7800 7C00 7E00 7F00"
$"7F90 7C10 6C10 46FE 0610 0310 0310",
$"C000 E000 F000 F800 FC00 FE00 FF00 FFB8"
$"FFF8 FFF8 FEFF EFFF CFFF 87B8 07B8 03B8",
{1, 1},
1,
$"0000 4000 6000 7000 7800 7C00 7E00 7F00"
$"7F90 7C10 6C10 46FE 0610 0310 0310 0000",
0x0,
0,
{ /* array ColorSpec: 2 elements */
/* [1] */
0, 65535, 65535, 65535,
/* [2] */
1, 0, 40000, 0
}
};

I used the following command to compile it:

/XCode2.5/Tools/Rez -F /XCode2.5/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \
-arch ppc test.r -o test.rsrc

The output file test.rsrc is over 2MB large and is not valid.
Using option -arch i86 instead of -arch ppc does not make any difference.

On a PowerPC Mac (OSX 10.4.11) I compiled the same
resource file with the command

/Developer/Tools/Rez test.r -o test.rsrc

resulting in a valid file of only 202 bytes.

So it seems that the tool Rez for an Intel processor is incorrect.

Ed

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.