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. Undefined symbol when trying to run hellogl_es2 with QtEmbedded
Qt 6.11 is out! See what's new in the release blog

Undefined symbol when trying to run hellogl_es2 with QtEmbedded

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 2.6k Views 1 Watching
  • 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.
  • L Offline
    L Offline
    Luc4
    wrote on last edited by
    #1

    Hi! I'm trying to run a OpenGL enabled application using QtEmbedded. Examples which are not using OpenGL work correctly, but when I try hellogl_es2 this is what I get:

    @./hellogl_es2: symbol lookup error: /usr/local/Trolltech/QtEmbedded-rock-4.7.2_opengl/lib/libQtOpenGL.so.4: undefined symbol: _ZN11QEglContextC1Ev@

    I thought I made some mistakes in linking the EGL libraries, but it seems I compiled and I'm running with the same libraries. So, maybe something was defined in the headers and now cannot be found runtime. Is there anything I can do to solve this problem? I cannot modify the EGL and the OpenGL ES libraries cause those are provided with the board. Has anyone ever experienced something similar?
    Thanks!

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jbarron
      wrote on last edited by
      #2

      That symbol is exported from QtGui so either you are not linking against QtGui (unlikely) or QtGui has not been built with support for EGL. You can check if EGL support is enabled by adding this to your .pro file:

      @!contains(QT_CONFIG, egl) {
      message("No EGL support!");
      }@

      Alternatively you can check the contents of the QT_CONFIG variable manually in mkspecs\qconfig.pri. Note that adding "egl" to this file is not sufficient for enabling EGL, you also need to rebuild QtGui. Support for EGL should be enabled automatically when you configure Qt with "-opengl es2" (not sure about es1), but you can additionally configure with "-egl" to explicitly enable support for it.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Luc4
        wrote on last edited by
        #3

        You were right indeed. With strace I could see that it was taking some libraries (QtGui in this case) from another Qt build. Now I solved the problem. Thanks!

        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