How to compile OpenGL examples for Windows CE



  • Hello

    I managed to install Qt for Windows CE with this webpage : http://doc.qt.nokia.com/4.7-snapshot/install-wince.html
    Now I am trying to enable OpenGL for Qt and I would like to compile examples to test it. I have found this page : http://doc.qt.nokia.com/4.7-snapshot/windowsce-opengl.html
    So to install Qt for Windows CE, I am now using this command : "configure -platform win32-msvc2005 -xplatform wince60standard-x86-msvc2005 -opengl-es-cm" instead of "configure -platform win32-msvc2005 -xplatform wince60standard-x86-msvc2005"

    The problem is when I am trying now to build Qt libraries, I have those errors :
    c:\qt\4.6.2\include\qtgui\private../../../src/gui/egl/qeglproperties_p.h(62) :
    fatal error C1083: Cannot open include file: 'GLES/egl.h': No such file or direc
    tory
    qeglproperties.cpp
    c:\qt\4.6.2\src\gui\egl\qeglproperties_p.h(62) : fatal error C1083: Cannot open
    include file: 'GLES/egl.h': No such file or directory
    qegl_wince.cpp
    c:\qt\4.6.2\include\qtgui\private../../../src/gui/egl/qeglproperties_p.h(62) :
    fatal error C1083: Cannot open include file: 'GLES/egl.h': No such file or direc
    tory
    Generating Code...
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
    \cl.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
    \nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.

    Would someone have a solution to this problem ?

    Thank you for your help



  • bq. Ensure that the lib and includes paths include the OpenGL ES headers and libararies from your SDK.

    Did you? :)



  • If my SDK doesn't include the OpenGL ES headers and libraries, what can I do to get it ?



  • I need to do the same for a normal windows PC (The libs are there for Symbian and MeeGo but not for Desktop target), if anyone does have the solution please let us know



  • Theres no opengl es for desktops, but since desktop opengl 3/4 is pretty much API-compatible, just install GLEW/similar to provide those and get coding.

    Have no experience in using GLEW on windows though, on Linux it was the easiest solution.



  • Thank you, I'll try that, as am trying to run the cocos2d-x project on Windows desktop platform for fast testing


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.