Build Qt with -qt-gfx-vnc
-
If you stay with 5.4.1, you can't. It has been added in Qt 5.8 IIRC.
-
Again,
-qt-gfx-vnc
is not a valid option value for Qt 5, whatever the minor release number is.You may have to compile the plugin by hand.
By the way, why go with 5.8 rather than the latest available if you upgrade anyway ?
-
Hi,
Thanks for the quick reply. If you have any source code url of vnc plugin then please share with me. I will compile it by hand.
I have downloaded qt 5.9.0. While configuring got following error ./configure : /bin/sh^M : bad interpreter. So, I switched to qt 5.8.
-
The current version is 5.9.1 which 5.9.2 not so far in the future.
Looks like you downloaded the zip version which has Windows line endings. Download one of the other type of archives.
-
Did you try to look into the sources ?
It's under
qtbase/src/plugins/platforms/vnc
-
Hi
Qt/qt-everywhere-opensource-src-5.8.0/qtbase/src/plugins/platforms/vnc$ ls
main.cpp qvncclient.cpp qvncclient.h qvnc.cpp qvncintegration.cpp qvncintegration.h qvnc_p.h qvncscreen.cpp qvncscreen.h vnc.json vnc.pro
Yes, It's there. So, I want to compile this module manually right? After compile how do I test vnc server? Let me know the method of test.
Thanks
-
Don't forget to install it.
Then:
./your_application -platform inc
-
Hi,
I have run qt vnc by exporting following environment variable.
export QT_QPA_PLATFORM=vnc
Now, My application is using opengl widget to display video. I have compiled Qt by passing argument -opengl. So, When I am running vnc server with my application. I am getting following error. Also, my application was not able to display UI on server screen. It only shows desktop instead of full screen Qt UI.
./wellostation -platfrom vnc:5900
This plugin does not support createPlatformOpenGLContext!
This plugin does not support createPlatformOpenGLContext!
QOpenGLWidget: Failed to create context
This plugin does not support createPlatformOpenGLContext!
QOpenGLWidget: Failed to create context
QVncServer created on port 5900Thanks
-
So basically you want to have several output at the same time ?