PVR texturetool构建阶段 [英] PVR texturetool build phase

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

问题描述

我目前正在填写 iphone 3d编程手册

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

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

报价


a。将shell保留为/ bin / sh。

a. Leave the shell as /bin/sh.

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构建阶段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆