Imagination PowerVR SDK Blog

PODPlayer in Windows PC OpenGL ES2.0 emulation SDK


#1

Hi,

I cannot compile the PODPlayer code in the Windows PC OpenGL ES 2.0 emulation SDK 2.06.0649. Apparently the output filename is incorrect, but even with a corrected name, it doesn’t work for me. Cry

I wanted to recompile it to see whether the use of
   (1000 * clock()) / CLOCKS_PER_SEC
is more precise than
   GetTickCount()
in PVRShellInit::OsGetTime() because the animation in the PODPlayer application is not completely smooth.   At least I found clock() to be more precise on my Windows machine.



#2

The output direcory is a bug and it will be fixed for future releases.

What is the build output after correcting the output directory?


#3

Well, after setting the output file to $(OutDir)/OGLES2PODPlayer.exe I can actually compile the code but the program terminates instantly. Here is the output when I try to debug it:

‘OGLES2PODPlayer.exe’: Loaded ‘C:Imagination TechnologiesPOWERVR SDKOGLES2_WINDOWS_PCEMULATION_2.06.26.0649ExtrasPODPlayerSourceOGLES2BuildWindowsPCDebugOGLES2PODPlayer.exe’, Symbols loaded.
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32ntdll.dll’
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32kernel32.dll’
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32libGLESv2.dll’, Binary was not built with debug information.
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32user32.dll’
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32gdi32.dll’
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32libEGL.dll’, Binary was not built with debug information.
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32advapi32.dll’
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32rpcrt4.dll’
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32secur32.dll’
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32shell32.dll’
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32msvcrt.dll’
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32shlwapi.dll’
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32imm32.dll’
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32lpk.dll’
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32usp10.dll’
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32APSHook.dll’
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32opengl32.dll’
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32glu32.dll’
‘OGLES2PODPlayer.exe’: Loaded ‘C:WINDOWSsystem32ddraw.dll’
‘OGLES2PODPlayer.exe’: Loaded 'C:WINDOWSsystem32dciman32.dll’
First-chance exception at 0x7c91b21a in OGLES2PODPlayer.exe: 0xC0000005: Access violation writing location 0x00000010.
‘OGLES2PODPlayer.exe’: Unloaded ‘C:WINDOWSsystem32opengl32.dll’
‘OGLES2PODPlayer.exe’: Unloaded ‘C:WINDOWSsystem32ddraw.dll’
‘OGLES2PODPlayer.exe’: Unloaded ‘C:WINDOWSsystem32dciman32.dll’
‘OGLES2PODPlayer.exe’: Unloaded 'C:WINDOWSsystem32glu32.dll’
The program ‘[0xE18] OGLES2PODPlayer.exe: Native’ has exited with code -1 (0xffffffff).

I don’t know how to debug this since apparently the execution doesn’t even reach WinMain. Ermm