Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QVTKOpenGLWidget cannot be displayed with Remote Desktop xfce.
Forum Updated to NodeBB v4.3 + New Features

QVTKOpenGLWidget cannot be displayed with Remote Desktop xfce.

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 3 Posters 847 Views 2 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.
  • WaingW Offline
    WaingW Offline
    Waing
    wrote on last edited by
    #1

    Hello,
    I have been trying to use QVTKOpenGLWidget with PCL in Jetson nano. It's working fine in Jetson nano but I need to run the program with remote desktop in windows10. When I open Qt Creator in remote desktop(xfce), the Plugin Loader Messages window shows as follows.
    8b0441f1-c2a1-4243-93f1-335de973b748-Screenshot from 2022-07-13 13-58-06.png
    I also try to run my code but the program crashed with the following error messages.

    Starting ~/Codes/build-gui_test-Desktop-Release/gui_test...
    QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
    QOpenGLWindow::beginPaint: Failed to create context
    QOpenGLWindow::beginPaint: Failed to make context current
    ERROR: In ~/Software/VTK-8.2.0/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 741
    vtkGenericOpenGLRenderWindow (0x5584affbf0): GLEW could not be initialized: Missing GL version

    QOpenGLFunctions created with non-current context
    The program has unexpectedly finished.
    The process was ended forcefully.
    ~/Codes/build-gui_test-Desktop-Release/gui_test crashed.

    Is there any thing that I need to do in Qt or opengl and RDP ? ? As I'm a beginner, I lost the way after searching many topics on the internet.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What are you using on both side for the RDP ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • WaingW Offline
        WaingW Offline
        Waing
        wrote on last edited by
        #3

        Hello! @SGaist .
        I'm using xfce4 in Jetson and just use remote desktop in windows 10.

        1 Reply Last reply
        0
        • WaingW Offline
          WaingW Offline
          Waing
          wrote on last edited by Waing
          #4

          I installed VirtualGL and TurboVNC for remote desktop and use TurboVNC viewer in my client PC(Windows 10).
          I try to open qtcreator from the terminal with the following line.
          $ sudo /opt/VirtualGL/bin/vglrun qtcreator
          But it gives the same error.

          jsulmJ 1 Reply Last reply
          0
          • WaingW Waing

            I installed VirtualGL and TurboVNC for remote desktop and use TurboVNC viewer in my client PC(Windows 10).
            I try to open qtcreator from the terminal with the following line.
            $ sudo /opt/VirtualGL/bin/vglrun qtcreator
            But it gives the same error.

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

            @Waing said in QVTKOpenGLWidget cannot be displayed with Remote Desktop xfce.:

            $ sudo /opt/VirtualGL/bin/vglrun qtcreator

            Don't use sudo!
            By default root is not allowed to start GUI applications (for security reasons)! And there is really no need to start QtCreator (and most other applications) with sudo!

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

            1 Reply Last reply
            0
            • WaingW Offline
              WaingW Offline
              Waing
              wrote on last edited by
              #6

              Thanks @jsulm . I tried again without sudo. But there are File Error messages "Cannot overwrite file ~/.config/QtProject/qtcreator/qtversion.xml:Permission denied" and " Cannot overwrite file ~/.config/QtProject/qtcreator/default.qws: Permission denied".

              jsulmJ 1 Reply Last reply
              0
              • WaingW Waing

                Thanks @jsulm . I tried again without sudo. But there are File Error messages "Cannot overwrite file ~/.config/QtProject/qtcreator/qtversion.xml:Permission denied" and " Cannot overwrite file ~/.config/QtProject/qtcreator/default.qws: Permission denied".

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

                @Waing Probably you executed QtCreator before as root. Simply fix access rights for these files, so your user can write them...

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

                1 Reply Last reply
                0
                • WaingW Offline
                  WaingW Offline
                  Waing
                  wrote on last edited by
                  #8

                  Thanks @jsulm . I fixed it. But the program crashed with same error messages as before .

                  jsulmJ 1 Reply Last reply
                  0
                  • WaingW Waing

                    Thanks @jsulm . I fixed it. But the program crashed with same error messages as before .

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

                    @Waing The problem is probably that X over VNC does not support OpenGL in your configuration. You can see that in the error message you posted: "QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled"
                    You can try to change the X server configuration, or VNC configuration to enable OpenGL.

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

                    1 Reply Last reply
                    0
                    • WaingW Offline
                      WaingW Offline
                      Waing
                      wrote on last edited by
                      #10

                      I just used Team Viewer for remote desktop though I can't solve "xfce" .

                      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