It is still not working yet.
Let me describe the step that i first configure Vincent and SDK Pocket PC 2003
1- I download “ogl-es-bin-0.83”. That folder has “ogl-es-bin-0.83\dist\bin” and “ogl-es-bin-0.83\dist\include”
2- Copy “GLES” folder and “ug.h” file to
“Windows CE Tools\wce420\POCKET PC 2003\Include\Emulator”
3- There are 5 files in “ogl-es-bin-0.83\dist\bin\emu\Debug”. I copy “libGLES_CM.dll” to WINDOWNS\System32
and “libGLES_CM.lib”, “ug.lib” and “codegen.lib” to “POCKET PC 2003\Lib\emulator”
4- download “ogles-0.82-samples\ogles-0.82-samples\redbook” and put the redbook folder on my desktop. Open “hello.c” with eVC++4.
I select “POCKET PC 2003”, “Win32(WCE Emulator)Debug” and “POCKET PC Emulator”.
When I click build, it shows many erros:
--------------------Configuration: hello - Win32 (WCE emulator) Debug--------------------
Linking…
hello.obj : error LNK2019: unresolved external symbol _ugSwapBuffers referenced in function _display
hello.obj : error LNK2019: unresolved external symbol __imp__glFlush referenced in function _display
hello.obj : error LNK2019: unresolved external symbol __imp__glDrawArrays referenced in function _display
hello.obj : error LNK2019: unresolved external symbol __imp__glColor4f referenced in function _display
hello.obj : error LNK2019: unresolved external symbol __imp__glClear referenced in function _display
hello.obj : error LNK2019: unresolved external symbol __imp__glEnableClientState referenced in function _init
hello.obj : error LNK2019: unresolved external symbol __imp__glVertexPointer referenced in function _init
hello.obj : error LNK2019: unresolved external symbol __imp__glOrthof referenced in function _init
hello.obj : error LNK2019: unresolved external symbol __imp__glLoadIdentity referenced in function _init
hello.obj : error LNK2019: unresolved external symbol __imp__glMatrixMode referenced in function _init
hello.obj : error LNK2019: unresolved external symbol __imp__glClearColor referenced in function _init
hello.obj : error LNK2019: unresolved external symbol _ugMainLoop referenced in function _main
hello.obj : error LNK2019: unresolved external symbol _ugDisplayFunc referenced in function _main
hello.obj : error LNK2019: unresolved external symbol _ugCreateWindow referenced in function _main
hello.obj : error LNK2019: unresolved external symbol _ugInit referenced in function _main
corelibc.lib(pegwmain.obj) : error LNK2019: unresolved external symbol _WinMain referenced in function _WinMainCRTStartup
emulatorDbg/hello.exe : fatal error LNK1120: 16 unresolved externals
Error executing link.exe.
hello.exe - 17 error(s), 0 warning(s)
So, I go to Project->Setting and Select setting for Win32(WCE Emulator)Debug. Then, I click on the Link tab and add “libGLES_CM.lib ug.lib” to Objects and Library modules.
I click build again and then i still get some errors:
--------------------Configuration: hello - Win32 (WCE emulator) Debug--------------------
Linking…
ug.lib(ug_win32.obj) : error LNK2019: unresolved external symbol __imp__SHSipInfo referenced in function _UpdateWindowPosition
ug.lib(ug_win32.obj) : error LNK2019: unresolved external symbol __imp__SHCreateMenuBar referenced in function _ugCreateWindow
ug.lib(ug_win32.obj) : error LNK2019: unresolved external symbol __imp__SHHandleWMSettingChange referenced in function _WndProc
ug.lib(ug_win32.obj) : error LNK2019: unresolved external symbol __imp__SHHandleWMActivate referenced in function _WndProc
emulatorDbg/hello.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
hello.exe - 5 error(s), 0 warning(s)
I do not clearly understand your explanation. I still could not config it. Did I miss any step of cofiguration?
Thank you very much
Sophea