QVTKOpenGLWidget cannot be displayed with Remote Desktop xfce.
-
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.
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 versionQOpenGLFunctions 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.
-
Hi and welcome to devnet,
What are you using on both side for the RDP ?
-
-
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.@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! -
-
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".
-
@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.