[Qtce-preview-feedback] Compile errors with OpenGL ES CL
Patrick Riess
patrick.riess at igd.fraunhofer.de
Tue May 20 16:36:22 CEST 2008
Hi,
first I have to say, I'm very happy about your WinCE release of QT,
great job :)
When compiling I had two errors.
My system:
----------
Microsoft (R) C/C++ Optimizing Compiler Version 14.00.60131 for ARM
nmake Version 8.00.50727.762
Windows XP Professional SP2
QT 4.4.0
configure -platform win32-msvc2005 -xplatform wincewm50pocket-msvc2005
-opengl-es-cl
EGL version 1.1
Error #1:
---------
qglframebufferobject.cpp
.\qglframebufferobject.cpp(154) : error C3861: 'glTexParameterf':
identifier not found
.\qglframebufferobject.cpp(155) : error C3861: 'glTexParameterf':
identifier not found
.\qglframebufferobject.cpp(156) : error C3861: 'glTexParameterf':
identifier not found
.\qglframebufferobject.cpp(157) : error C3861: 'glTexParameterf':
identifier not found
I fixed it by including qgl_cl_p.h in qglframebufferobject.cpp:
#ifdef QT_OPENGL_ES_CL
#include "qgl_cl_p.h"
#endif
Error #2:
---------
.\qgl_wince.cpp(162) : error C2664: 'eglGetDisplay' : cannot convert
parameter 1 from 'HDC' to 'NativeDisplayType
There is no context in which this conversion is possible
Fixed this by replacing line 162 in qgl_wince.cpp:
original line: d->dpy = eglGetDisplay(myDc);
modified line: d->dpy = eglGetDisplay((NativeDisplayType)myDc);
I attached the egl and gles headers I used for compiling, the latter
error could be caused by the old EGL version (1.1). I will check this.
Maybe I did something wrong but otherwise I hope, it can be helpful for
you.
Bye,
Patrick
--
Patrick Riess | Fraunhofer IGD
email: patrick.riess at igd.fraunhofer.de | Fraunhofer Str. 5
tel : +49 (0)6151 155-288 | 64283 Darmstadt
web : http://www.igd.fhg.de/igd-a4 | Germany
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gl.h
Url: http://lists.trolltech.com/pipermail/qtce-preview-feedback/attachments/20080520/f0bc1f05/attachment-0003.h
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: egl.h
Url: http://lists.trolltech.com/pipermail/qtce-preview-feedback/attachments/20080520/f0bc1f05/attachment-0004.h
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: egltypes.h
Url: http://lists.trolltech.com/pipermail/qtce-preview-feedback/attachments/20080520/f0bc1f05/attachment-0005.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3750 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.trolltech.com/pipermail/qtce-preview-feedback/attachments/20080520/f0bc1f05/attachment-0001.bin
More information about the Qtce-preview-feedback
mailing list