PVR texturetool build phase

自古美人都是妖i 提交于 2019-12-19 02:49:22

问题


I'm currently completing an iphone 3d programming book

The book says to add following python code into a build phase in xcode, to run the provided texturetool.

Book Quote

a. Leave the shell as /bin/sh.

b. Enter this directly into the script box:

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

c. Add this to Input Files:

$(SRCROOT)/Textures/Grid16.png

Add this to Output Files:

$(SRCROOT)/Textures/Grid16.pvr

However when doing this I receive the following message.

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

Could anyone shed a light on this?


回答1:


You have spaces in your directories!




回答2:


Replace $(SRCROOT) with ${SRCROOT}



来源:https://stackoverflow.com/questions/6671680/pvr-texturetool-build-phase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!