HelloWord 不显示图片,只有右下角的帧数,屏幕一直闪

是什么情况

你用的是哪个版本的cocos2d-x?运行的环境是?
我这里 2.1.4、2.1.5、2.2.0、2.2.1、2.2.2、3.0alpha0、3.0alpha1、3.0beta,在win32、Android、xcode,运行都没有问题。

我的2.2.2,vs2010 + cocos2dx2.2.2

是什么情况

好像是环境配置有问题, 图片没有找到, 调试一下看看呗

“Test.win32.exe”: 已加载“D:\code_cocos\Test\proj.win32\Debug.win32\Test.win32.exe”,已加载符号。
“Test.win32.exe”: 已加载“C:\Windows\System32\ntdll.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\kernel32.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\KernelBase.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\libcocos2d.dll”,已加载符号。
“Test.win32.exe”: 已加载“C:\Windows\System32\opengl32.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\msvcrt.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\advapi32.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\sechost.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\rpcrt4.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\gdi32.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\user32.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\lpk.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\usp10.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\glu32.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\ddraw.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\dciman32.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\setupapi.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\cfgmgr32.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\oleaut32.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\ole32.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\devobj.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\dwmapi.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\glew32.dll”,未使用调试信息生成二进制文件。
“Test.win32.exe”: 已加载“C:\Windows\System32\zlib1.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\libtiff.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcr90.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\pthreadVCE2.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\wsock32.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\ws2_32.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\nsi.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\shell32.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\shlwapi.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\msvcp100d.dll”,已加载符号。
“Test.win32.exe”: 已加载“C:\Windows\System32\msvcr100d.dll”,已加载符号。
“Test.win32.exe”: 已加载“C:\Windows\System32\libCocosDenshion.dll”,已加载符号。
“Test.win32.exe”: 已加载“C:\Windows\System32\winmm.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\imm32.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\msctf.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\uxtheme.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\ProgramData\Tencent\TSVulFw\TSVulFW.DAT”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\version.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\psapi.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Program Files\Kingsoft\kingsoft antivirus\kwsui.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\wtsapi32.dll”,Cannot find or open the PDB file
“Test.win32.exe”: 已加载“C:\Windows\System32\igdogl32.dll”,Cannot find or open the PDB file
Init SGL4 version:1.08.00.290036
OpenGL version = 3.0
Ready for GLSL
Ready for OpenGL 2.0
“Test.win32.exe”: 已加载“C:\Windows\System32\cryptbase.dll”,Cannot find or open the PDB file

cocos2d.x.version: 2.2.2 cocos2d.x.compiled_with_profiler: false cocos2d.x.compiled_with_gl_state_cache: true gl.vendor: Intel Corporation gl.renderer: Intel(R) Graphics Media Accelerator 3600 Series gl.version: 3.0 gl.max_texture_size: 8192 gl.max_texture_units: 16 gl.supports_PVRTC: true gl.supports_NPOT: true gl.supports_BGRA8888: false gl.supports_discard_framebuffer: false gl.supports_vertex_array_object: true “Test.win32.exe”: 已加载“C:\Program Files\Kingsoft\kingsoft antivirus\lblocker.dll”,Cannot find or open the PDB file BPP(32) DB(1N) W(480) H(320) Xclip(0) Yclip(0) PFD(12)

CCSprite* pSprite = CCSprite::create(“HelloWorld.png”);
嗯, 如果图片没有找到, pSprite=NULL, 走到下面会crash, 看来不是这个问题

难道是因为显卡? 我在Mac下从未发现此情况

有没有介绍vs2010+cocos2dx 2.2.2配置详细步骤的,我想看下,是不是我哪步有问题

我是将下载的cocos2dx 2.2.2版解压后将里面的vs2010项目编绎了一遍,没有运行 build-win32.bat 这个文件,这个是必须的吗

Cannot find or open the PDB file,大都是环境设置问题。
可以试试:
一:设置系统环境变量,比如
_NT_SYMBOL_PATH=SRVD:\apps\pdbhttp://msdl.microsoft.com/download/symbols
二:使用Ctrl + F5运行
或者在cmd命令行下执行程序。
三:调试–设置–符号 选了microsoft符号服务器
下载到符号 “TCPSrv.exe”: 已加载“C:\Windows\System32\kernel32.dll”,已加载符号(去除源信息)。
四:把项目的属性里Character Set 改成“User Multi_Byte Character Set”

果然是显卡问题,更新一下显卡就出来了,谢谢两位帮我解决问题

不客气, 欢迎加入cocos2dx家族:867::867::867: