a: cannot connect to X server :0.0 Application finished with exit code 1
-
wrote on 23 Sept 2019, 08:39 last edited by
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".
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".
-
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.
-
wrote on 24 Sept 2019, 10:18 last edited by
I build qmake cross-compiler version is 4.8v.
as reference of this document.[http://thoughtwaves.com/?p=50](link url)
-
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 ?
-
wrote on 25 Sept 2019, 04:08 last edited by
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)).
if you don't mind could you please suggest the way how to develop & run a basic QT application for BeagleBone Black(BBB).
-
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)).
if you don't mind could you please suggest the way how to develop & run a basic QT application for BeagleBone Black(BBB).
-
wrote on 27 Sept 2019, 11:45 last edited by
-
You have to tell your application to use the VNC backend.
-
wrote on 28 Sept 2019, 06:26 last edited by Sekhar
@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.
-
It's in the documentation here.
9/10