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. QT 5.9.8 declarative fails to compile with "-no-opengl"
Qt 6.11 is out! See what's new in the release blog

QT 5.9.8 declarative fails to compile with "-no-opengl"

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 699 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.
  • A Offline
    A Offline
    Ashishx88
    wrote on last edited by
    #1

    Hi All ,

    I am trying to compile QT (meta-qt version 5.9.8 ) without opengl support .
    by PACKAGECONFIG_append = " no-opengl" in qtbase_git.bbappend

    Due to this the qtdeclatrative fails to compile with below mentioned error :

    g .obj/qsgvertexcolormaterial.o:(.data.rel.ro+0x20): undefined reference to QSGMaterialShader::compile()' | .obj/qsgvertexcolormaterial.o:(.data.rel.ro+0x28): undefined reference to QSGMaterialShader::vertexShader() const'
    | .obj/qsgvertexcolormaterial.o:(.data.rel.ro+0x2c): undefined reference to QSGMaterialShader::fragmentShader() const' | .obj/qquickgraphicsinfo.o: In function QQuickGraphicsInfo::updateInfo()':
    | /usr/src/debug/qtdeclarative/5.9.8+gitAUTOINC+145485bec9-r0.1/git/src/quick/items/qquickgraphicsinfo.cpp:264: undefined reference to `QOpenGLContext::format() const'
    | collect2: error: ld returned 1 exit status
    | make[2]: *** [Makefile:784: ../../lib/libQt5Quick.so.5.9.8] Error 1

    Can group member please provide any pointer .
    I was trying to get the QT compiled with "-no-opengl"
    Or let me know if i am missing any part here

    Thanks ,
    Ashish

    jsulmJ 1 Reply Last reply
    0
    • A Ashishx88

      Hi All ,

      I am trying to compile QT (meta-qt version 5.9.8 ) without opengl support .
      by PACKAGECONFIG_append = " no-opengl" in qtbase_git.bbappend

      Due to this the qtdeclatrative fails to compile with below mentioned error :

      g .obj/qsgvertexcolormaterial.o:(.data.rel.ro+0x20): undefined reference to QSGMaterialShader::compile()' | .obj/qsgvertexcolormaterial.o:(.data.rel.ro+0x28): undefined reference to QSGMaterialShader::vertexShader() const'
      | .obj/qsgvertexcolormaterial.o:(.data.rel.ro+0x2c): undefined reference to QSGMaterialShader::fragmentShader() const' | .obj/qquickgraphicsinfo.o: In function QQuickGraphicsInfo::updateInfo()':
      | /usr/src/debug/qtdeclarative/5.9.8+gitAUTOINC+145485bec9-r0.1/git/src/quick/items/qquickgraphicsinfo.cpp:264: undefined reference to `QOpenGLContext::format() const'
      | collect2: error: ld returned 1 exit status
      | make[2]: *** [Makefile:784: ../../lib/libQt5Quick.so.5.9.8] Error 1

      Can group member please provide any pointer .
      I was trying to get the QT compiled with "-no-opengl"
      Or let me know if i am missing any part here

      Thanks ,
      Ashish

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Ashishx88 said in QT 5.9.8 declarative fails to compile with "-no-opengl":

      qtdeclatrative

      As far as I know OpenGL is hard requirement for this module. If you don't need it then disable it.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Ashishx88
        wrote on last edited by
        #3

        Thanks for sharing input jsulm !!

        Is there any way / mechanism / tool by which we can determine such dependencies for required modules.
        I checked the qtdeclarative recipe DEPENDS macro but could not see any dependency for opengl mentioned there.

        Hence can you let me know if there is any standard way to determine such dependency .

        Thanks
        Ashish

        JKSHJ 1 Reply Last reply
        0
        • A Ashishx88

          Thanks for sharing input jsulm !!

          Is there any way / mechanism / tool by which we can determine such dependencies for required modules.
          I checked the qtdeclarative recipe DEPENDS macro but could not see any dependency for opengl mentioned there.

          Hence can you let me know if there is any standard way to determine such dependency .

          Thanks
          Ashish

          JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          @Ashishx88 said in QT 5.9.8 declarative fails to compile with "-no-opengl":

          Is there any way / mechanism / tool by which we can determine such dependencies for required modules.
          I checked the qtdeclarative recipe DEPENDS macro but could not see any dependency for opengl mentioned there.

          Hence can you let me know if there is any standard way to determine such dependency .

          I'm not aware of any tool for checking such dependencies, but this documentation is a good place to start https://wiki.qt.io/Building_Qt_5_from_Git

          In a nutshell, qtdeclarative.git contains Qt's most advanced graphics features. In the past, OpenGL was the obvious choice for implementing cross-platform graphics -- that's why OpenGL is a hard dependency. However, more backends have become available recently so from Qt 6 onwards, OpenGL will become optional.

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          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