Compiling CEGUI under MacOS X

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Exsortis
CEGUI Team (Retired)
Posts: 42
Joined: Mon Feb 07, 2005 17:13
Location: Palmdale, CA
Contact:

Re: Compiling CEGUI under MacOS X

Postby Exsortis » Wed May 11, 2005 14:05

zakalawe wrote:

...

- pbxcp (used by the helper script) seems to have been vanished. Though, I can't quite figure out why this step isn't done with a 'Copy Files' phase.


You're almost right: they should use the 'Copy Headers' phase. However, Apple was apparently short-sighted (or I don't know how to configure it) by not including support for recursive copying of files in this phase. There is an 'elements' subdirectory that gets eliminated during the Copy Headers phase (which will break dependent builds), so I created a helper script to copy those headers to their correct location. As you've noticed, it relies on pbxcp, which I used because it intelligently ignores CVS directories and such. Perhaps a Copy Files phase, instead of the helper script, might be better.

I'd say "I'll look into it," but as renchap has discovered, I just don't have the time right now. I started a new job 2 months ago, and the schedule is insane. With other commitments, programming has to take a back seat at the moment. (I really don't even have the time to write this post! :shock: )

I'm tempted to surrender this portion of the project to another dev, perhaps temas (since that would round out the Ogre-involved parties ;) ).

_mental_, if you want to give access to temas to update the Mac stuff (if he doesn't have it already, and is willing), please do so.

Thanks for your patience, guys.

-E

User avatar
zakalawe
Just popping in
Just popping in
Posts: 7
Joined: Mon May 09, 2005 07:17
Location: Edinburgh, Scotland
Contact:

Re: Compiling CEGUI under MacOS X

Postby zakalawe » Wed May 11, 2005 20:11

Well, the reason Copy Headers isn't recursive is that Apple don't want you doing that - officially framework header trees are supposed to be flat, though you can find exceptions everywhere you look! I presume part of the goal is to allow frameworks to use the pre-compiled header files, as the Carbon framework does, to speed up compiles. But I've never seen docs on how to do this in your own frameworks.

The approach I've used in the past is one 'Copy Files' phase for each Headers sub dir: set the destination to 'Product Directory' and the path to: <pre>$(PUBLIC_HEADERS_FOLDER_PATH)/my_subdir_name</pre> and everything works out right.

User avatar
_mental_
CEGUI Team (Retired)
Posts: 157
Joined: Wed Jan 12, 2005 12:06
Contact:

Re: Compiling CEGUI under MacOS X

Postby _mental_ » Thu May 12, 2005 01:58

@Exsortis: thanks for letting me know. I'll check with temas to see if he has time to update the OSX build. If anyone else out there wants to take a stab, feel free and submit a patch to the tracker.

User avatar
zakalawe
Just popping in
Just popping in
Posts: 7
Joined: Mon May 09, 2005 07:17
Location: Edinburgh, Scotland
Contact:

Re: Compiling CEGUI under MacOS X

Postby zakalawe » Thu May 12, 2005 09:25

I will submit the two trivial code patches required to the tracker tonight (the int -> GLint changes, and removal of Xerces includes from DefaultResourceProvider). I can also submit an updated project file ('build script'), but one thing worries me - does X-Code 1.5 read X-Code 2.0 projects?

I guess I'll post my project file here, and some kind panther user can test.

User avatar
renchap
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sun Mar 06, 2005 11:22
Location: France
Contact:

Re: Compiling CEGUI under MacOS X

Postby renchap » Thu May 12, 2005 10:15

i can try your patch with my imac (XCode 1.5 - panther) if you want

User avatar
munkeball
Just popping in
Just popping in
Posts: 1
Joined: Sat Jun 18, 2005 20:09

Re: Compiling CEGUI under MacOS X

Postby munkeball » Sat Jun 18, 2005 20:42

Found where pbxcp is.

It's under:
/System/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp

So I modified the script. Seems to work now.


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 21 guests