Re: current working directory problem
Re: current working directory problem
- Subject: Re: current working directory problem
- From: Chris Espinosa <email@hidden>
- Date: Thu, 30 Sep 2004 15:49:52 -0700
On Sep 30, 2004, at 3:11 PM, Kaveh Kardan wrote:
I'm coming across an odd problem having to do with relative pathnames
having different behaviors on different machines.
We are trying to load jpeg files using relative pathnames, and on
different machines, we have to specify different pathnames for the
same file. Here are the two different calls we need to make:
One machine A:
MAKE_TEXTURE_SHADER(floorShader,
"../../projects/RPG/data/tex/tile.jpg");
On machine B:
MAKE_TEXTURE_SHADER(floorShader,
"../projects/RPG/data/tex/tile.jpg");
The problem is that Xcode thinks that the current working directory is
different on each machine. One machine A, it is inside the RPG.app
folder, while on machine B it is at the level of RPG.app. We can see
the difference by doing a call to:
system("ls ..");
before trying to load the image.
In Xcode 1.5, select the executable (in the Executables group), choose
Get Info, and in the first tab there's a control for what to set the
working directory to for launch and debug. Give that a try.
Chris
_______________________________________________
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