cremes' CoreAudio and QuickTime Blog
Track the work I'm doing on a QuickTime Component to support the FLAC lossless compression codec via CoreAudio




Project Downloads:



My Other Projects:

External Links:














Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.
 

 

Saturday, February 14, 2004
 

When configuring the project and trying to get it to compile successfully, I ran into some problems with the *.r files (resource files). There is apparently a known bug (or feature) with ProjectBuilder and XCode that makes it necessary to do clean builds all the time when you have .r files in your project.

One of the annoying things about these files is you can't really specify the order in which they are "Rez-ed" by the Rez application. It looks like the Apple ElectricImage sample got around this by declaring a master .r file that #incluedes the other files in the order they like. To get this to work, after adding all the .r files to the project, you need to go in and uncheck all of the .r files except for this master one. If you don't do this, then PB/XCode just Rez them in whatever order they want which (in this case) results in a lot of errors about undefined variables.

Here's the example master .r file:

// Building PB Mac OS X Mach-O Component
#define TARGET_REZ_MAC_68K 0
#define TARGET_REZ_MAC_PPC 0
#define TARGET_REZ_CARBON_CFM 0
#define TARGET_REZ_CARBON_MACHO 1
#define TARGET_REZ_WIN32 0

#include "MovieImport.r"
//#include "MovieExport.r"
#include "Codec.r"

This example shows the definition of various TARGET variables that are used by the children .r files. This is the only file "checked" and available for compilation by the IDE.

If this isn't clear and someone wants a better explanation, mail me.

5:23:27 PM    comment []




Click here to visit the Radio UserLand website. © Copyright 2004 Chuck Remes.
Last update: 10/2/04; 11:47:29 AM.
This theme is based on the SoundWaves (blue) Manila theme.
February 2004
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29            
Jan   Mar