• 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
current working directory problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

current working directory problem


  • Subject: current working directory problem
  • From: Kaveh Kardan <email@hidden>
  • Date: Thu, 30 Sep 2004 12:11:09 -1000

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.

Kaveh

Kaveh Kardan                 Chief Technologist
email@hidden             Academy for Creative Media
(808)956-5302                University of Hawaii

_______________________________________________
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


  • Follow-Ups:
    • Re: current working directory problem
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: how to pass a flag to ld
  • Next by Date: Re: how to pass a flag to ld
  • Previous by thread: Re: cross development 10.2.8 to 10.3.5
  • Next by thread: Re: current working directory problem
  • Index(es):
    • Date
    • Thread