Tag: pvrtc

PVR纹理工具构build阶段

我目前正在完成一个iPhone 3D编程书 本书说在xcode中将下面的python代码添加到构build阶段,以运行提供的texturetool。 书报价 一个。 将shell保留为/ bin / sh。 湾 直接input到脚本框中: 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。 添加到input文件: $(SRCROOT)/Textures/Grid16.png 添加到输出文件: $(SRCROOT)/Textures/Grid16.pvr 但是,当这样做时,我收到以下消息。 Failed to load image Failed to perform Encode Command /bin/sh failed with exit code 1 任何人都可以点亮这个?