Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Build Qt with -qt-gfx-vnc
QtWS25 Last Chance

Build Qt with -qt-gfx-vnc

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
14 Posts 2 Posters 5.2k Views
  • 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.
  • T Offline
    T Offline
    tushar
    wrote on last edited by
    #1

    Hi,

    I am cross compiling Qt 5.8.0 for raspberry pi. Following is my configure command.

    ./configure -opengl -icu -openssl -qt-gfx-vnc -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/RaspberryPi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -qreal float -prefix /usr/local/qt5pi -hostprefix /usr/local/qt5pi

    Without -qt-gfx-vnc it was fine but, I want to build my qt library with qt-gfx vnc. I am getting following error while configuring Qt.

    ERROR: Unknown command line option '-qt-gfx-vnc'.

    What does this error mean? Is there any way to compile qt with -qt-gfx-vnc?
    0_1504958762863_Screenshot_20170909_172850.png

    Thanks

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

      Hi and welcome to devnet,

      That's an old option for Qt 4, it doesn't exist with Qt 5. However there's a VNC backend for Qt 5 too.

      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
      • T Offline
        T Offline
        tushar
        wrote on last edited by tushar
        #3

        Hi,

        Thanks for the information.

        Would you please tell me that how should I enable/build vnc backend in Qt 5.4.1 for raspberry pi?

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

          If you stay with 5.4.1, you can't. It has been added in Qt 5.8 IIRC.

          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
          • T Offline
            T Offline
            tushar
            wrote on last edited by
            #5

            Hi

            I have tried to build qt-gfx-vnc with qt 5.8.0 version. See above picture. It was throwing error in qt 5.8.0. Please tell me which version should I try to fix this issue.

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

              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 ?

              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
              • T Offline
                T Offline
                tushar
                wrote on last edited by tushar
                #7

                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.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #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.

                  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
                  • T Offline
                    T Offline
                    tushar
                    wrote on last edited by
                    #9

                    Hi,

                    From where do I get the vnc plugin source code? If you have any vnc plugin source URL then kindly share with me.

                    Thanks

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

                      Did you try to look into the sources ?

                      It's under qtbase/src/plugins/platforms/vnc

                      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
                      1
                      • T Offline
                        T Offline
                        tushar
                        wrote on last edited by
                        #11

                        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

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

                          Don't forget to install it.

                          Then: ./your_application -platform inc

                          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
                          • T Offline
                            T Offline
                            tushar
                            wrote on last edited by tushar
                            #13

                            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 5900

                            Thanks

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

                              So basically you want to have several output at the same time ?

                              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

                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved