PVR texturetool构建阶段

gar*_*ris 6 iphone xcode objective-c pvrtc ios

我正在完成一本iphone 3d编程书

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

书报价

一个.将shell保留为/ bin/sh.

湾 直接在脚本框中输入:

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
Run Code Online (Sandbox Code Playgroud)

C.将其添加到输入文件:

$(SRCROOT)/Textures/Grid16.png
Run Code Online (Sandbox Code Playgroud)

将其添加到输出文件:

$(SRCROOT)/Textures/Grid16.pvr
Run Code Online (Sandbox Code Playgroud)

但是,在执行此操作时,我收到以下消息.

Failed to load image
Failed to perform Encode
Command /bin/sh failed with exit code 1
Run Code Online (Sandbox Code Playgroud)

任何人都可以对此有所了解吗?

Sne*_*ess 1

您的目录中有空格!