Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED] OpenGL support for WEC7
QtWS25 Last Chance

[SOLVED] OpenGL support for WEC7

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 2.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rizoritis
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Adrien Leravat
      wrote on last edited by
      #2

      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.

      Adeneo Embedded - www.adeneo-embedded.com

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rizoritis
        wrote on last edited by
        #3

        [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!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved