Imagination PowerVR SDK Blog

(Solved)Intregrate openGLES SDK with Nokia program


#1

Hello Dear Friends,




 

I want to integrate PowerVR OpenGL ES Sdk to my program (suppose Nokia OpenGL ES ES's simplecube example) based on Symbian S60 3rd SDK.

 

Basically for first time I  try to use CPVRTPrint3D function to display the text..so that i add all the .cpp,.h file under tools folder in to my .mmp file.but when i try to run the program show's two errro.which is occur SimpleCubeContainer.cpp file such that following line

 


iEglDisplay = eglGetDisplay( EGL_DEFAULT_DISPLAY );


The error is :

 

error:   invalid conversion from `void*' to `EGLNativeDisplayType'

error:   initializing argument 1 of `void* eglGetDisplay(EGLNativeDisplayType)

 

 

I think the problem is about graphics display related...

 

here is simplecube .mmp file

 

 

.......................

......................


MACRO BUILD_OGLES


SOURCEPATH ..src


SOURCE SimpleCube.cpp


SOURCE SimpleCubeapp.cpp


SOURCE SimpleCubeappui.cpp


SOURCE SimpleCubedocument.cpp


SOURCE SimpleCubecontainer.cpp


 


USERINCLUDE .


USERINCLUDE ..inc


USERINCLUDE ......BuildsOGLESInclude


USERINCLUDE ......BuildsOGLESIncludeGLES


USERINCLUDE ......ToolsOGLES


SOURCEPATH ......ToolsOGLES


SOURCE PVRTPrint3DAPI.cpp PVRTglesExt.cpp PVRTTextureAPI.cpp PVRTBackground.cpp


USERINCLUDE ......Tools


SOURCEPATH ......Tools


SOURCE PVRTFixedPoint.cpp PVRTMatrixF.cpp PVRTMisc.cpp PVRTTrans.cpp PVRTVertex.cpp PVRTModelPOD.cpp PVRTDecompress.cpp PVRTTriStrip.cpp PVRTTexture.cpp PVRTPrint3D.cpp PVRTResourceFile.cpp PVRTString.cpp PVRTVector.cpp PVRTError.cpp PVRTQuaternionF.cpp


SYSTEMINCLUDE .


SYSTEMINCLUDE epoc32include


SYSTEMINCLUDE epoc32includevariant


SYSTEMINCLUDE epoc32includestdapis


SYSTEMINCLUDE epoc32includestdapissys


SYSTEMINCLUDE epoc32includestdapisstlport


LIBRARY euser.lib apparc.lib cone.lib eikcore.lib


LIBRARY avkon.lib fbscli.lib efsrv.lib bafl.lib


LIBRARY estor.lib hal.lib estlib.lib flogger.lib


LIBRARY libgles_cm.lib


LIBRARY ws32.lib ecam.lib gdi.lib


LIBRARY libc.lib libstdcpp.lib libpthread.lib ImageConversion.lib


LIBRARY eikcoctl.lib


LIBRARY bitgdi.lib


LIBRARY scdv.lib


LIBRARY aknnotify.lib


.......................

.....................

 

So, anyone can help me..where is the problem..how can i fix the errors...

 

Thanks

Rassall

 

 

 

 
rassall_jubair2009-09-02 08:25:48

#2
rassall_jubair wrote:

iEglDisplay = eglGetDisplay( EGL_DEFAULT_DISPLAY );


The error is :

 

error:   invalid conversion from `void*' to `EGLNativeDisplayType'

error:   initializing argument 1 of `void* eglGetDisplay(EGLNativeDisplayType)


 

Hi,

 

To fix this error change the line to


iEglDisplay = eglGetDisplay(  (EGLNativeDisplayType) EGL_DEFAULT_DISPLAY );


Thanks,

 

Scott

#3
Scott wrote:
rassall_jubair wrote:

iEglDisplay = eglGetDisplay( EGL_DEFAULT_DISPLAY );


The error is :

 

error:   invalid conversion from `void*' to `EGLNativeDisplayType'

error:   initializing argument 1 of `void* eglGetDisplay(EGLNativeDisplayType)


 

Hi,

 

To fix this error change the line to


iEglDisplay = eglGetDisplay(  (EGLNativeDisplayType) EGL_DEFAULT_DISPLAY );


Thanks,

 

Scott








 

Thanks its work...