Не удается запустить пример приложения cocos2dx win32 в Windows 7

Следуя этому руководству, я успешно запускаю build-win32 .bat, а также создание решения Visual Studio 2010 для cocos2dx. Но я не могу запустить HelloCPP.exe, HelloLua.exe, testcpp.exe и т.д.

Я использую последнюю версию cocos2dx (cocos2d-2.0-x-2.0.2), работаю под управлением 64-разрядной версии Windows 7 и устанавливаю PowerVR Insider SDK.

Когда я попытался запустить HelloCpp и HelloLua из Visual Studio 2010 (версия Ultimate), отладчик сломался в CCGLProgram.cpp:

bool CCGLProgram::initWithVertexShaderByteArray(const GLchar* vShaderByteArray, const GLchar* fShaderByteArray)
{
    m_uProgram = glCreateProgram();

Сообщение об ошибке: (показано в консоли отладки VS 2010)

'HelloCpp.exe': Loaded 'D:\cocos2d-2.0-x-2.0.2\Release.win32\HelloCpp.exe', Symbols loaded.
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'D:\cocos2d-2.0-x-2.0.2\Release.win32\libcocos2d.dll', Symbols loaded.
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\msvcr100.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\opengl32.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'D:\cocos2d-2.0-x-2.0.2\Release.win32\glew32.dll', Binary was not built with debug information.
'HelloCpp.exe': Loaded 'D:\cocos2d-2.0-x-2.0.2\Release.win32\libxml2.dll', Binary was not built with debug information.
'HelloCpp.exe': Loaded 'D:\cocos2d-2.0-x-2.0.2\Release.win32\zlib1.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'D:\cocos2d-2.0-x-2.0.2\Release.win32\libtiff.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'D:\cocos2d-2.0-x-2.0.2\Release.win32\pthreadVCE2.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\msvcp100.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\glu32.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\ddraw.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\wsock32.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'D:\cocos2d-2.0-x-2.0.2\Release.win32\iconv.dll', Binary was not built with debug information.
'HelloCpp.exe': Loaded 'C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6871_none_50944e7cbcb706e5\msvcr90.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\combase.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\dciman32.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file
'HelloCpp.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file
Not totally ready :( 

OpenGL 2.0 not supported

First-chance exception at 0x00000000 in HelloCpp.exe: 0xC0000005: Access violation.
Unhandled exception at 0x00000000 in HelloCpp.exe: 0xC0000005: Access violation.

person Agung Pratama    schedule 16.09.2012    source источник


Ответы (1)


Я не знаю, что такое PowerVR Insider SDK. Если вы загрузили все решение cocos2d в msvc, вы не можете его запустить, вместо этого щелкните правой кнопкой мыши проект и выберите debug->startnewinstance, проект запустится. исполняемый файл находится в Release.win32 или debug.win32, если вы хотите открыть его по отдельности.

person srikanth chitturi    schedule 17.09.2012
comment
Это то, что я сделал, и отладчик остановился на коде строки, который я написал выше. - person Agung Pratama; 17.09.2012