环境:Windows7 64bit,VirtualBox4。08 +Mac OS X 10。6。6,Xcode4,cocos2d-iphone 1。0。0
问题1:
今天尝试test/zwoptex与transitionsTest都比较顺利,只要把需要的图片加进resources就能正常运行了。但是Texture2dtest就不行了,报错
:
Ld /Users/marcus/Library/Developer/Xcode/DerivedData/coco-texture-emmkatdfoiagvpaizjpabxwhpomm/Build/Products/Debug-iphonesimulator/coco-texture.app/coco-texture normal i386
cd /Users/marcus/Desktop/MyFolder/coco-texture
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L/Users/marcus/Library/Developer/Xcode/DerivedData/coco-texture-emmkatdfoiagvpaizjpabxwhpomm/Build/Products/Debug-iphonesimulator -F/Users/marcus/Library/Developer/Xcode/DerivedData/coco-texture-emmkatdfoiagvpaizjpabxwhpomm/Build/Products/Debug-iphonesimulator -filelist /Users/marcus/Library/Developer/Xcode/DerivedData/coco-texture-emmkatdfoiagvpaizjpabxwhpomm/Build/Intermediates/coco-texture.build/Debug-iphonesimulator/coco-texture.build/Objects-normal/i386/coco-texture.LinkFileList -mmacosx-version-min=10.6 -lz -Xlinker -objc_abi_version -Xlinker 2 -framework QuartzCore -framework OpenGLES -framework OpenAL -framework AudioToolbox -framework AVFoundation -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/marcus/Library/Developer/Xcode/DerivedData/coco-texture-emmkatdfoiagvpaizjpabxwhpomm/Build/Products/Debug-iphonesimulator/coco-texture.app/coco-texture
Undefined symbols for architecture i386:
"_png_sig_cmp", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_create_read_struct", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_create_info_struct", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_init_io", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_set_sig_bytes", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_read_info", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_get_image_width", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_get_image_height", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_get_bit_depth", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_get_color_type", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_set_palette_to_rgb", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_set_expand_gray_1_2_4_to_8", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_get_valid", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_set_tRNS_to_alpha", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_set_strip_16", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_set_packing", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_read_update_info", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_get_IHDR", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_read_image", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_read_end", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
"_png_destroy_read_struct", referenced from:
-[TextureLibPNG loadPNG:] in Texture2dTest.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
答:
问题2: 为什么我的Mac OS X用 command+shift+3或4不能抓图??桌面上没有看到保存下来的文件
答: