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
Forum Updated to NodeBB v4.3 + New Features

Build Qt with -qt-gfx-vnc

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
14 Posts 2 Posters 5.3k 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.
  • 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