• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
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


  • Subject: Error compiling .r resource file with XCode 2.5 and Intel
  • From: Ed Gronenschild <email@hidden>
  • Date: Thu, 25 Jun 2009 14:32:33 +0200

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

  • Prev by Date: Info.plist Preprocessing Doesn't work for a -sectcreate Info.plist
  • Next by Date: Re: GC pros and cons
  • Previous by thread: Info.plist Preprocessing Doesn't work for a -sectcreate Info.plist
  • Next by thread: XCode 3.1.2 Crashing Regularly
  • Index(es):
    • Date
    • Thread