[SOLVED] OpenGL support for WEC7



  • Hello,

    I am able to build Qt for WEC7 both with and without openGL on my host. When building Qt without openGL I copy all of the contents of the lib folder, as well as the plugin folder and msvcr90.dll and msvcr90d.dll from my system. I then copy the .exe from the Qt application I want to run in the same folder and run it on my Windows Compact 7 target board. This works great, I have used many examples as well as my own applications. I am building Qt using the following command line : configure -platform win32-msvc2008 -xplatform wince70embedded-x86-msvc2008 -no-accessibility

    Now when rebuilding Qt with openGL support I use: configure -platform win32-msvc2008 -xplatform wince70embedded-x86-msvc2008 -no-accessibility -opengl es2

    Everything builds fine on the host, I followed the same procedure that I mentioned above. Now when I go to run the simplest of apps on my target board I see the message "Unable to import library QtGui4.dll! Program will exit". I was getting this error before when not extracting the contents of the lib folder in the same folder as the rest of the files where I run the .exe. When running the simple cube example I get a different message "Unable to import library QtOpenGL4.dll! Program will exit.". All of these dll's are present in the folder where the .exe is run.

    If I rebuild without the -opengl es2 option the qt programs without openGL run fine again. OpenGL support for WEC7 depends on the device manufacturer, does this sound like the board can't be used for openGL with Qt? Does anyone have a similar experience when trying to get opengl to run for WEC7? Any help would be appreciated, I've spent days trying to get this thing to work...

    Thanks!



  • Hi rizoritis,

    A missing (or not found) OpengGL library on the target would produce such an error, as Qt dlls will fail to dynamically link to OpenGL.

    Which board is it, and are you sure it supports OpenGL ES 2 ?

    You may try configuring Qt for OpenGL ES 1 which may be supported, or manually looking for the dll on the target. I don't remember the usual name on WEC, but it surely contains "gl" and/or "es".

    Edit: You'd also need the EGL library for OpenGL context initialization.



  • [quote author="Adrien Leravat" date="1374222905"]Hi rizoritis,

    A missing (or not found) OpengGL library on the target would produce such an error, as Qt dlls will fail to dynamically link to OpenGL.

    Which board is it, and are you sure it supports OpenGL ES 2 ?

    You may try configuring Qt for OpenGL ES 1 which may be supported, or manually looking for the dll on the target. I don't remember the usual name on WEC, but it surely contains "gl" and/or "es".

    Edit: You'd also need the EGL library for OpenGL context initialization.[/quote]

    Hello,

    After hearing back from the EBOX3310 supplier they do not support OpenGL2.0ES, and that would explain a lot. I'm not on the hunt for a board which supports WEC7 and OpenGLES, thanks for the info!


Log in to reply
 

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