iphone - PVR 纹理工具构建阶段

标签 iphone objective-c ios xcode pvrtc

我目前正在完成 iphone 3d programming book

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

书名

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

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

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

任何人都可以阐明这一点吗?

最佳答案

您的目录中有空格!

关于iphone - PVR 纹理工具构建阶段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6671680/

相关文章:

ios - @protocol(DelegateType) 的 Swift 等价物

iOS - 无法从其数据源获取单元格

ios - 如何在点击时禁用 UIButton 突出显示?

iPhone - 使用哪些 View Controller 方法

iphone - 使用不同的 Bundle Identifiers 自动构建 iOS

C# 从 Guid 结合 40Char 十六进制字符串 (UUID) 创建一个 Auth Token

objective-c - 沙盒核心WLAN?

objective-c - addGlobalMonitorForEventsMatchingMask 只返回鼠标位置

iphone - 从应用程序委托(delegate)调用 View Controller 方法

ios - 使用 unwind segue 传递数据