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. a: cannot connect to X server :0.0 Application finished with exit code 1

a: cannot connect to X server :0.0 Application finished with exit code 1

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
10 Posts 3 Posters 1.4k 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.
  • S Offline
    S Offline
    Sekhar
    wrote on 23 Sept 2019, 08:39 last edited by
    #1

    I was created an application for Beaglebone black(BBB) board in QT-5.2v by using arm based cross compilers (qt-everywhere-opensource-src-4.8.7.tar) on Ubuntu-12.04v-(32 bit) .

    I will connected to BBB board through ssh network.followed by this video as a reference [https://www.youtube.com/watch?v=eLr35wUrz6Q].if i was run an application in qt it will show message "cannot connect to X server :0.0 Application finished with exit code 1".Error.png

    If i run that executable file in BBB board by using "tightvnc viewer" because it doesn't have a physical display. It will execute a GUI frame and automatically closed. and i used this [http://thoughtwaves.com/?p=50] document for build "qmake".

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 23 Sept 2019, 18:28 last edited by
      #2

      Hi,

      There's an issue here, you're mentioning Qt 5.2 but built from Qt 4.8.7.

      What exactly are you using ?

      Just in case, it might be a good idea to consider updating your setup. Using a 7 years old distribution with a version of Qt that is 10 minor releases behind the current LTS is not a good idea.

      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
      • S Offline
        S Offline
        Sekhar
        wrote on 24 Sept 2019, 10:18 last edited by
        #3

        I build qmake cross-compiler version is 4.8v.Build.JPG

        and QT version 5.2.creator.JPG

        as reference of this document.[http://thoughtwaves.com/?p=50](link url)

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 24 Sept 2019, 20:39 last edited by
          #4

          From the looks of it, the Qt 5 installation instructions are only to get Qt Creator. In any case, get the latest up to date version.

          Now for Qt 4, you don't seem to have cross-compiled a Qt for Embedded Linux version so you need to have an X server running on your BBB for it to work.

          Then again: why use Qt 4.8 ?

          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
          • S Offline
            S Offline
            Sekhar
            wrote on 25 Sept 2019, 04:08 last edited by
            #5

            X server already installed and running on my BeagleBone Black(BBB) board.

            Basically i am the beginner for QT platform and my intention is to develop a basic GUI application for BeaglBone Black. That is the reason i followed that url Document about using QT4.8((qt-everywhere-opensource-src-4.8.7.tar)) and one more thing is i didn't find those mkspeces and arm-linux-gnueabi(cross-compiler)'s in later than QT4.8((qt-everywhere-opensource-src-4.8.7.tar)).

            mkspeces.JPG

            if you don't mind could you please suggest the way how to develop & run a basic QT application for BeagleBone Black(BBB).

            J 1 Reply Last reply 25 Sept 2019, 06:14
            0
            • S Sekhar
              25 Sept 2019, 04:08

              X server already installed and running on my BeagleBone Black(BBB) board.

              Basically i am the beginner for QT platform and my intention is to develop a basic GUI application for BeaglBone Black. That is the reason i followed that url Document about using QT4.8((qt-everywhere-opensource-src-4.8.7.tar)) and one more thing is i didn't find those mkspeces and arm-linux-gnueabi(cross-compiler)'s in later than QT4.8((qt-everywhere-opensource-src-4.8.7.tar)).

              mkspeces.JPG

              if you don't mind could you please suggest the way how to develop & run a basic QT application for BeagleBone Black(BBB).

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 25 Sept 2019, 06:14 last edited by
              #6

              @Sekhar https://forum.qt.io/topic/107083/make-1-makefile-1624-obj-release-pcre_exec-o-error-1/7

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

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Sekhar
                wrote on 27 Sept 2019, 11:45 last edited by
                #7

                I was running an application through remote server from QT to my BBB device, it will shows an error.

                err.JPG

                If i run that executable file in BBB board by using "tightvnc viewer" because it doesn't have a physical display.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 27 Sept 2019, 18:09 last edited by
                  #8

                  You have to tell your application to use the VNC backend.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  S 1 Reply Last reply 28 Sept 2019, 06:26
                  1
                  • S SGaist
                    27 Sept 2019, 18:09

                    You have to tell your application to use the VNC backend.

                    S Offline
                    S Offline
                    Sekhar
                    wrote on 28 Sept 2019, 06:26 last edited by Sekhar
                    #9

                    @SGaist
                    I don't know how to run as my application on VNC backend. could you plese tell me the way how to tell to my application to use it in QT.

                    i was followed this [https://doc.qt.io/archives/qt-4.8/qt-embedded-vnc.html](link url). but it doesn't work.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 28 Sept 2019, 06:29 last edited by
                      #10

                      It's in the documentation here.

                      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

                      9/10

                      28 Sept 2019, 06:26

                      • Login

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