本文介绍了PVR texturetool构建阶段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在填写

本书说要将以下python代码添加到xcode的构建阶段,以运行提供的texturetool。

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

报价

b。直接在脚本框中输入:

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。将其添加到输入文件:

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?

推荐答案

你的目录中有空格!

这篇关于PVR texturetool构建阶段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 02:30