Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Quick Renderer 2D
Forum Updated to NodeBB v4.3 + New Features

Qt Quick Renderer 2D

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
22 Posts 4 Posters 9.1k 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.
  • SGaistS SGaist

    Hi,

    Unless I'm mistaken you can clone it from here.

    A Offline
    A Offline
    Andrey Shmelew
    wrote on last edited by Andrey Shmelew
    #3

    @SGaist
    Hello all!

    there is a Qt Quick 2D Renderer, that works instead OpnGL ES 2 on boards without GPU,for example, BeagleBone Black , seems to be good for me.
    As described, i should use :
    export QMLSCENE_DEVICE=softwarecontext
    but i have no idea what does this string mean.
    can someone please help me to disable opengl for qt quick?
    Any thoughts?

    jsulmJ 1 Reply Last reply
    0
    • A Andrey Shmelew

      @SGaist
      Hello all!

      there is a Qt Quick 2D Renderer, that works instead OpnGL ES 2 on boards without GPU,for example, BeagleBone Black , seems to be good for me.
      As described, i should use :
      export QMLSCENE_DEVICE=softwarecontext
      but i have no idea what does this string mean.
      can someone please help me to disable opengl for qt quick?
      Any thoughts?

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

      @Andrey-Shmelew I explained this in another thread. Just execute that line before you start your application:

      export QMLSCENE_DEVICE=softwarecontext
      ./my_app
      

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

      A 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Andrey-Shmelew I explained this in another thread. Just execute that line before you start your application:

        export QMLSCENE_DEVICE=softwarecontext
        ./my_app
        
        A Offline
        A Offline
        Andrey Shmelew
        wrote on last edited by
        #5

        @jsulm ```

        root@beaglebone:/media/rootfs/media# export QMLSCENE_DEVICE=softwarecontext
        root@beaglebone:/media/rootfs/media# ./noopengl 
        failed to get the current screen resources
        xkbcommon: ERROR: failed to add default include path auto
        Qt: Failed to create XKB context!
        Use QT_XKB_CONFIG_ROOT environmental variable to provide an additional search path, add ':' as separator to provi
        de several search paths and/or make sure that XKB configuration data directory contains recent enough contents, t
        o update please see http://cgit.freedesktop.org/xkeyboard-config/ .
        QXcbConnection: XCB error: 170 (Unknown), sequence: 156, resource id: 90, major code: 146 (Unknown), minor code: 
        20
        QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
        Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redB
        ufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBeh
        avior 2, swapInterval 1, profile  0) 
        Aborted
        

        what is wrong?

        jsulmJ 1 Reply Last reply
        0
        • A Andrey Shmelew

          @jsulm ```

          root@beaglebone:/media/rootfs/media# export QMLSCENE_DEVICE=softwarecontext
          root@beaglebone:/media/rootfs/media# ./noopengl 
          failed to get the current screen resources
          xkbcommon: ERROR: failed to add default include path auto
          Qt: Failed to create XKB context!
          Use QT_XKB_CONFIG_ROOT environmental variable to provide an additional search path, add ':' as separator to provi
          de several search paths and/or make sure that XKB configuration data directory contains recent enough contents, t
          o update please see http://cgit.freedesktop.org/xkeyboard-config/ .
          QXcbConnection: XCB error: 170 (Unknown), sequence: 156, resource id: 90, major code: 146 (Unknown), minor code: 
          20
          QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
          Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redB
          ufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBeh
          avior 2, swapInterval 1, profile  0) 
          Aborted
          

          what is wrong?

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

          @Andrey-Shmelew Probably you do not have Qt Quick 2D Renderer. See here how to build and use it: http://doc.qt.io/QtQuick2DRenderer/qtquick2drenderer-installation-guide.html

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

          A 1 Reply Last reply
          1
          • jsulmJ jsulm

            @Andrey-Shmelew Probably you do not have Qt Quick 2D Renderer. See here how to build and use it: http://doc.qt.io/QtQuick2DRenderer/qtquick2drenderer-installation-guide.html

            A Offline
            A Offline
            Andrey Shmelew
            wrote on last edited by
            #7

            @jsulm
            I do not get you. These instructions need to execute directly on the BBB, or on a machine where installed qtcreator?

            jsulmJ 1 Reply Last reply
            0
            • A Andrey Shmelew

              @jsulm
              I do not get you. These instructions need to execute directly on the BBB, or on a machine where installed qtcreator?

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

              @Andrey-Shmelew On your host machine since you're cross-compiling

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

              A 1 Reply Last reply
              1
              • jsulmJ jsulm

                @Andrey-Shmelew On your host machine since you're cross-compiling

                A Offline
                A Offline
                Andrey Shmelew
                wrote on last edited by Andrey Shmelew
                #9

                @jsulm said in Qt Quick Renderer 2D:

                not exactly understand.
                Do you mean i can build Qt Quick 2D Renderer only before QT cross-compiling, so i need to rebuild my QT again?

                jsulmJ 1 Reply Last reply
                0
                • A Andrey Shmelew

                  @jsulm said in Qt Quick Renderer 2D:

                  not exactly understand.
                  Do you mean i can build Qt Quick 2D Renderer only before QT cross-compiling, so i need to rebuild my QT again?

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

                  @Andrey-Shmelew If you used -opengl es2 to build Qt then no need to rebuild it, else you need to rebuild Qt with -opengl es2 (described in the link I posted).

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

                  A 1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @Andrey-Shmelew If you used -opengl es2 to build Qt then no need to rebuild it, else you need to rebuild Qt with -opengl es2 (described in the link I posted).

                    A Offline
                    A Offline
                    Andrey Shmelew
                    wrote on last edited by
                    #11

                    @jsulm
                    if i can build and run qtquick 2.0 application on my machine, it means that QT already supports OpenGL and i can skip Building Qt Quick 2D Renderer, and as stated:

                    Build Qt Quick 2D Renderer like any other Qt module:
                    
                    qmake
                    make
                    make install
                    

                    sorry for the annoyance

                    jsulmJ 1 Reply Last reply
                    0
                    • A Andrey Shmelew

                      @jsulm
                      if i can build and run qtquick 2.0 application on my machine, it means that QT already supports OpenGL and i can skip Building Qt Quick 2D Renderer, and as stated:

                      Build Qt Quick 2D Renderer like any other Qt module:
                      
                      qmake
                      make
                      make install
                      

                      sorry for the annoyance

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

                      @Andrey-Shmelew You need it for BBB not your host PC right? Whether Qt supports OpenGL on your host PC or not is completely irrelevant for BBB. Isn't the absence of OpenGL on BBB the reason you want to have Qt Quick 2D Renderer?
                      So, the question is: did you build your BBB Qt with -opengl es2 ?

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

                      A 2 Replies Last reply
                      0
                      • jsulmJ jsulm

                        @Andrey-Shmelew You need it for BBB not your host PC right? Whether Qt supports OpenGL on your host PC or not is completely irrelevant for BBB. Isn't the absence of OpenGL on BBB the reason you want to have Qt Quick 2D Renderer?
                        So, the question is: did you build your BBB Qt with -opengl es2 ?

                        A Offline
                        A Offline
                        Andrey Shmelew
                        wrote on last edited by
                        #13

                        @jsulm said in Qt Quick Renderer 2D:

                        did you build your BBB Qt with -opengl es2 ?

                        i don't really know...

                        1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          @Andrey-Shmelew You need it for BBB not your host PC right? Whether Qt supports OpenGL on your host PC or not is completely irrelevant for BBB. Isn't the absence of OpenGL on BBB the reason you want to have Qt Quick 2D Renderer?
                          So, the question is: did you build your BBB Qt with -opengl es2 ?

                          A Offline
                          A Offline
                          Andrey Shmelew
                          wrote on last edited by
                          #14

                          @jsulm

                          so after tons hours of googling i decided to instal on BBB the lastest image of debian.

                          then, i updated and upgraded a system on the board.
                          Now there are no errors about opengl es,
                          so now when i start application with QTQuick 2.0 only these errors appear:
                          QXcbConnection: Failed to get the primary output of the screen
                          QXcbConnection: XCB error: 170 (Unknown), sequence: 164, resource id: 90, major code: 146 (Unknow
                          n), minor code: 20.

                          and... nothing else happens

                          jsulmJ 1 Reply Last reply
                          0
                          • A Andrey Shmelew

                            @jsulm

                            so after tons hours of googling i decided to instal on BBB the lastest image of debian.

                            then, i updated and upgraded a system on the board.
                            Now there are no errors about opengl es,
                            so now when i start application with QTQuick 2.0 only these errors appear:
                            QXcbConnection: Failed to get the primary output of the screen
                            QXcbConnection: XCB error: 170 (Unknown), sequence: 164, resource id: 90, major code: 146 (Unknow
                            n), minor code: 20.

                            and... nothing else happens

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

                            @Andrey-Shmelew Do you have a X server running on BBB?

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

                            A 1 Reply Last reply
                            0
                            • jsulmJ jsulm

                              @Andrey-Shmelew Do you have a X server running on BBB?

                              A Offline
                              A Offline
                              Andrey Shmelew
                              wrote on last edited by
                              #16

                              @jsulm said in Qt Quick Renderer 2D:

                              X server

                              sorry i dont know what is this

                              jsulmJ 1 Reply Last reply
                              0
                              • A Andrey Shmelew

                                @jsulm said in Qt Quick Renderer 2D:

                                X server

                                sorry i dont know what is this

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

                                @Andrey-Shmelew Then you should read about it. It is the graphics environment used on UNIX/Linux machines. Do you have ANY graphics on your BBB (connected display with graphics, not text mode)?

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

                                A 1 Reply Last reply
                                1
                                • jsulmJ jsulm

                                  @Andrey-Shmelew Then you should read about it. It is the graphics environment used on UNIX/Linux machines. Do you have ANY graphics on your BBB (connected display with graphics, not text mode)?

                                  A Offline
                                  A Offline
                                  Andrey Shmelew
                                  wrote on last edited by
                                  #18

                                  @jsulm
                                  yes, i have 10 inch display with HDMI, and applications that are not qtquick are running excellent on it,
                                  also i can run these applicastions on my host machine throught SmartTTY XmingX

                                  jsulmJ 1 Reply Last reply
                                  0
                                  • A Andrey Shmelew

                                    @jsulm
                                    yes, i have 10 inch display with HDMI, and applications that are not qtquick are running excellent on it,
                                    also i can run these applicastions on my host machine throught SmartTTY XmingX

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

                                    @Andrey-Shmelew Are those applications GUI applications? How do you start them? And how do you start your application?

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

                                    A 1 Reply Last reply
                                    0
                                    • jsulmJ jsulm

                                      @Andrey-Shmelew Are those applications GUI applications? How do you start them? And how do you start your application?

                                      A Offline
                                      A Offline
                                      Andrey Shmelew
                                      wrote on last edited by Andrey Shmelew
                                      #20

                                      @jsulm
                                      yes.
                                      i take an GUI example (for example - Composition), compile it in my host machine for BBB, then i upload binary file to BBB, then i open linux on BBB and check this binary file as "make file executable" , then double click on the file and it starts,
                                      all the same steps are for GUI with qtquick2.

                                      while i write this post i started example clocks on my beaglebone black and it started well!

                                      Thank you

                                      jsulmJ 1 Reply Last reply
                                      0
                                      • A Andrey Shmelew

                                        @jsulm
                                        yes.
                                        i take an GUI example (for example - Composition), compile it in my host machine for BBB, then i upload binary file to BBB, then i open linux on BBB and check this binary file as "make file executable" , then double click on the file and it starts,
                                        all the same steps are for GUI with qtquick2.

                                        while i write this post i started example clocks on my beaglebone black and it started well!

                                        Thank you

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

                                        @Andrey-Shmelew Are you still trying to use software renderer?

                                        root@beaglebone:/media/rootfs/media# export QMLSCENE_DEVICE=softwarecontext
                                        root@beaglebone:/media/rootfs/media# ./noopengl
                                        

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

                                        A 1 Reply Last reply
                                        0
                                        • jsulmJ jsulm

                                          @Andrey-Shmelew Are you still trying to use software renderer?

                                          root@beaglebone:/media/rootfs/media# export QMLSCENE_DEVICE=softwarecontext
                                          root@beaglebone:/media/rootfs/media# ./noopengl
                                          
                                          A Offline
                                          A Offline
                                          Andrey Shmelew
                                          wrote on last edited by
                                          #22

                                          @jsulm

                                          no, i am not using software renderer,
                                          i just compile and download clocks example, but it works slowly

                                          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