PVR texture build phase

I am currently completing an iphone 3d programming book

The book says to add the following python code to the build phase in xcode to run the provided texture tool.

Book offer

a. Leave the shell as / bin / sh.

b. Enter this directly into the script field:

BIN=${PLATFORM_DIR}/../iPhoneOS.platform/Developer/usr/bin INFILE=${SRCROOT}/Textures/Grid16.png OUTFILE=${SRCROOT}/Textures/Grid16.pvr ${BIN}/texturetool -m -f PVR -e PVRTC $INFILE -o $OUTFILE 

from. Add this to the input files:

 $(SRCROOT)/Textures/Grid16.png 

Add this to the output files:

 $(SRCROOT)/Textures/Grid16.pvr 

However, when doing this, I get the following message.

 Failed to load image Failed to perform Encode Command /bin/sh failed with exit code 1 

Can anyone shed some light on this?

+6
source share
2 answers

There are spaces in your catalogs!

+1
source

Replace $ (SRCROOT) with $ {SRCROOT}

0
source

Source: https://habr.com/ru/post/892618/


All Articles