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. Raspberry and QT: application not visible on VNC
Forum Updated to NodeBB v4.3 + New Features

Raspberry and QT: application not visible on VNC

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
19 Posts 3 Posters 4.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.
  • A Andreagugu

    ah, ok.. for sure you are right.. but I don't have an idea how to build with this option.
    First of all.. makes sense to check if xcb is correctly installed?

    Again.. the issue is more on Ubuntu setup or raspberry?

    I did some test using installed template like linuxfb ecc.. and in this case it works, means the application starts but in this specific case the result is really strange: the visualization seems mixed with desktop.. moving the mouse pointer in some areas the display shows desktop, and sometime the HMI... really strange! Using this plugin the VNC shows exaclty the same!! so it seems the right direction.
    I'm the opinion that installing xcb on raspberry, allows me to lauch with -platform xcb and maybe it works as expected.

    but where to find the plugin?

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #8

    @Andreagugu If you run configure (from Qt source code tree) with -v parameter you will see whether xcb support is activated and if not what is missing.

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Andreagugu
      wrote on last edited by
      #9

      Hi, I added "-v" as run argument. But I don't understand how this could show if the xcb support is missing.
      I mean, I'm not using or calling nothing that uses xcb.. Only if I add "-platform xcb" I'm specifying that.

      So I tried to add both: -v -platform xcb
      but the result is the same, the application crashes at boot and in the output I can see this:

      ![Output](0_1534492762813_e45ff7f5-17e9-4272-bbd1-736dfb72e822-image.png image url)

      Can someone explain me how to install xcb that is obviously missing? Should be installed in the target (RPi) or in the developemnt VM (Ubuntu)?

      jsulmJ 1 Reply Last reply
      0
      • A Andreagugu

        Hi, I added "-v" as run argument. But I don't understand how this could show if the xcb support is missing.
        I mean, I'm not using or calling nothing that uses xcb.. Only if I add "-platform xcb" I'm specifying that.

        So I tried to add both: -v -platform xcb
        but the result is the same, the application crashes at boot and in the output I can see this:

        ![Output](0_1534492762813_e45ff7f5-17e9-4272-bbd1-736dfb72e822-image.png image url)

        Can someone explain me how to install xcb that is obviously missing? Should be installed in the target (RPi) or in the developemnt VM (Ubuntu)?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #10

        @Andreagugu I was talking about adding -v to configure command you can find in Qt source code...

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Andreagugu
          wrote on last edited by
          #11

          Not sure to understand what you mean sorry. I'm not an expert of QT..

          @jsulm said in Raspberry and QT: application not visible on VNC:

          adding -v to configure command you can find in Qt source code...

          for me this tell me nothing.

          I tried to find the file "libqxcb.so" and I placed it into plugins/platforms/ folder and it is recognized somehow because calling the app with argument "-platform xcb" still not working but xcb is into the list.. maybe copy&paste doesn't mean correctly installed.

          Any help?

          Pablo J. RoginaP 1 Reply Last reply
          0
          • A Andreagugu

            Not sure to understand what you mean sorry. I'm not an expert of QT..

            @jsulm said in Raspberry and QT: application not visible on VNC:

            adding -v to configure command you can find in Qt source code...

            for me this tell me nothing.

            I tried to find the file "libqxcb.so" and I placed it into plugins/platforms/ folder and it is recognized somehow because calling the app with argument "-platform xcb" still not working but xcb is into the list.. maybe copy&paste doesn't mean correctly installed.

            Any help?

            Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on last edited by
            #12

            @Andreagugu said in Raspberry and QT: application not visible on VNC:

            adding -v to configure command you can find in Qt source code...

            Did you cross-compile Qt yourself?
            If so, at some point you run command like this on your host PC:

            ./configure -release -opengl es2 -device ...
            

            in that case, @jsulm is asking you to run the command below and provide its output:

            ./configure -v
            

            you can also get same information by looking at file config.opt in that same folder where you configured/built Qt framework

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            1
            • A Offline
              A Offline
              Andreagugu
              wrote on last edited by
              #13

              I'm not cross-compile Qt by myself.
              I installed Qt on Ubuntu, I configured device inside options.. when I run the application I simply press on Debug button!
              What do you mean with cross-compile by yourself?!

              I found something like you speak about inside the folder "device" in the installation path:
              ![alt text](0_1534517335849_a1592b09-bfea-4bfa-86e4-a98998fa0674-image.png image url)

              this is something that can help?

              I try to ask it again: if I need xcb plugin platform, there is a way to install? all tentative was not successful.
              the problem is in the Ubuntu installation or raspberry in your opinion? at which level this xcb should work?

              in my understanding, based on the fact that having a program build I should add argument "-platform xcb" and should work
              means simply that on raspberry the plugin is missing, right?

              jsulmJ 1 Reply Last reply
              0
              • A Andreagugu

                I'm not cross-compile Qt by myself.
                I installed Qt on Ubuntu, I configured device inside options.. when I run the application I simply press on Debug button!
                What do you mean with cross-compile by yourself?!

                I found something like you speak about inside the folder "device" in the installation path:
                ![alt text](0_1534517335849_a1592b09-bfea-4bfa-86e4-a98998fa0674-image.png image url)

                this is something that can help?

                I try to ask it again: if I need xcb plugin platform, there is a way to install? all tentative was not successful.
                the problem is in the Ubuntu installation or raspberry in your opinion? at which level this xcb should work?

                in my understanding, based on the fact that having a program build I should add argument "-platform xcb" and should work
                means simply that on raspberry the plugin is missing, right?

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #14

                @Andreagugu Looks like we need to clarify some things:

                • Do you build your app on your Raspberry Pi or on a host machine?
                • How did you install Qt for your Raspberry Pi?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Andreagugu
                  wrote on last edited by
                  #15

                  I build the application in the host machine (Ubuntu).
                  I followed some guide on the web.. after some tentatives :-P I found the way to make it working.
                  Basically I configure the device as remove device linux with his IP address, etc.. and then Qt could build and deploy the application built. I could also debug, breakpoints, etc.. it works quite well.
                  ![alt text](0_1534776841120_9e8351c1-963d-4ee8-b1e9-a94f44906526-image.png image url)

                  jsulmJ 1 Reply Last reply
                  0
                  • A Andreagugu

                    I build the application in the host machine (Ubuntu).
                    I followed some guide on the web.. after some tentatives :-P I found the way to make it working.
                    Basically I configure the device as remove device linux with his IP address, etc.. and then Qt could build and deploy the application built. I could also debug, breakpoints, etc.. it works quite well.
                    ![alt text](0_1534776841120_9e8351c1-963d-4ee8-b1e9-a94f44906526-image.png image url)

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #16

                    @Andreagugu Glad to hear this!
                    Please mark your thread as solved then.

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      Andreagugu
                      wrote on last edited by Andreagugu
                      #17

                      Sorry but.. what I solved??
                      From the first post I wrote that the tool chain is working.
                      Is not this the problem! I can run the application shown on the physical display HDMI but not on VNC as I need finally.

                      The problem that I still having is that the visualization is shown as framebuffers and I'm not able to show my application in
                      the standard display :0 !!

                      The question is: developing an application with QT5 on Ubuntu deployed on Raspberry, could show the result in the display :0?
                      If yes... good, please explain how because searching on the web I'm not able to find the way.

                      jsulmJ 1 Reply Last reply
                      0
                      • A Andreagugu

                        Sorry but.. what I solved??
                        From the first post I wrote that the tool chain is working.
                        Is not this the problem! I can run the application shown on the physical display HDMI but not on VNC as I need finally.

                        The problem that I still having is that the visualization is shown as framebuffers and I'm not able to show my application in
                        the standard display :0 !!

                        The question is: developing an application with QT5 on Ubuntu deployed on Raspberry, could show the result in the display :0?
                        If yes... good, please explain how because searching on the web I'm not able to find the way.

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #18

                        @Andreagugu "I'm not cross-compile Qt by myself." - then how do you build your app on Ubuntu host machine for raspberry Pi?!
                        You need a cross compiled Qt to do so.
                        http://wiki.qt.io/Raspberry_Pi_Beginners_Guide

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          Andreagugu
                          wrote on last edited by
                          #19

                          I build the application on Qt installed on Ubuntu. So I write the code.. I click on "Build button" and then I press "Run" or "Start debugging F5" and magically the application on Raspberry starts.
                          As already wrote many times the tool chain is working. From my side is not clear what does it mean "....by myself" it seems I have to call some script or launch commands manually.. by myself...
                          What do it mean for you?
                          Sorry but I installed the tool chain for the first time it was easy to configure following most probably the guide you linked, I don't remember which one, you can find many on the web.

                          But again the tool chain is working!! Have you understood what is the problem? Then we can try to find a solution.
                          When I wrote "no, I'm not cross-compiling by myself" is because for example the command "./configure bla bla bla..." I haven't to call, simply F5.. RUN.

                          Maybe is more easy if you answer my question first.. if the answer is no we have done.

                          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