Qt Virtual Frame Buffer / VNC on Qt Desktop?
-
Hello,
Can the "Qt embedded vnc":http://doc.qt.nokia.com/4.7/qt-embedded-vnc.html system be used by Qt Desktop applications?
The use case is that I have a beefy Windows 7 box that can run several instances of my application indefinitely, and I'd like to let a couple of users from nearby machines access them. (On different port numbers, obviously.)
I know that Microsoft's Terminal Server is an option, but that's getting too complex for my simple application. Plus, I'd like to move to Linux eventually, and this time/money investment would be wasted.
Just being able to spin up in instance of my app and have it export it's display to VNC rather than the local screen would be awesome.
Thank you
-
Mainly, configuring Qt with -embedded just enables the building of the QWS (Qt window system) subsystem of which the vnc driver is a part. The embedded builds are meant to be run in the absence of any X11 server (usually on the framebuffer device).
All the usual Qt facilities are also available.
-
Download it from "here":http://qt.nokia.com/downloads. Choose LGPL then on the right hand side pick the platform of your choice.
Once you have the source unpack it somewhere and configure it with something similar to what is shown in this "article":http://developer.qt.nokia.com/wiki/Building_Qt_for_Embedded_Linux#3944e0763954b4c26dc7d15394b35b3d in the Host Build section but remember to add in the -qt-gfx-vnc option too since you need that for your requirements.
Come back with questions if it is not clear.
Good luck!
-
ZapB,
I tried to build using the source and MinGW I downloaded from the Qt site, and got this error:
@C:\Qt\4.7.3-mingw-src>configure -prefix C:\Qt\4.7.3 -embedded -qt-gfx-vnc
Unknown option -qt-gfx-vnc
Usage: configure [-buildkey <key>]
[-release] [-debug] [-debug-and-release] [-shared] [-static]
[-no-fast] [-fast] [-no-exceptions] [-exceptions]
[-no-accessibility] [-accessibility] [-no-rtti] [-rtti]
[-no-stl] [-stl] [-no-sql-<driver>] [-qt-sql-<driver>]
[-plugin-sql-<driver>] [-system-sqlite] [-arch <arch>]
[....SNIP.....]@I also tried the full configure command as listed in that page you linked to, but to no avail.
What should I try next?
Thank you
-
I don't think so directly. You could look into incorporating VNC into your app yourself or maybe extracting the VNC stuff from the QWS support. MIght be a good time to recompile your app on Linux though since you said you were aiming for that in the long-term anyway?