Remote Debugging stopped with errors
-
This post is deleted!
-
Hi all,
I am able to run a qt GUI application with Qt Creator in a Host System on a Beaglebone revC target. I can run the application using the Run Green Button on the left side.
But the same application, when I debug, it is showing the following error in the target terminal.
No protocol specified
QXcbConnection: Could not connect to display :0.0
Child terminated with signal = 0x6 (SIGABRT)
GDBserver exitingFor Remote Debugging, I am following the guide - http://doc.qt.io/qtcreator/creator-debugger-operating-modes.html.
In my target system Beaglebone black, I have already run sudo apt-get install gdb-multiarch and put the gdbserver in /home/debian directory.
From /home/debian in target system, I am running the command ./gdbserver :5555 LTC_Qt_App_Ver_0_02.
Then I use Debug->Start Debugging->Attach to Running Debug Server... in Qt Creator in Host System.
Debugging is getting started. My main() is as follows.
QApplication a(argc, argv);
HomeMenu w;
w.show();
return a.exec();When I put a breakpoint at Homemenu w ;
and proceed the above mentioned error appears in target terminal.Thanks in advance for the help in solving this problem.
Thanks & Regards,
Sajeevan.K -
HI all,
I am working on this 2-3 days. I will put the complete messages in Beaglebone Black terminal - It is as shown below.
root@beaglebone:/home/debian# ./gdbserver :5555 LTC_Qt_App_Ver_0_02
Process LTC_Qt_App_Ver_0_02 created; pid = 24035
Listening on port 5555
Remote debugging from host 192.168.7.1
LTC_Qt_App_Ver_0_02: /usr/lib/arm-linux-gnueabihf/libQt5Qml.so.5: no version information available (required by LTC_Qt_App_Ver_0_02)
LTC_Qt_App_Ver_0_02: /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: no version information available (required by LTC_Qt_App_Ver_0_02)
LTC_Qt_App_Ver_0_02: /usr/lib/arm-linux-gnueabihf/libQt5Gui.so.5: no version information available (required by LTC_Qt_App_Ver_0_02)
LTC_Qt_App_Ver_0_02: /usr/lib/arm-linux-gnueabihf/libQt5Core.so.5: no version information available (required by LTC_Qt_App_Ver_0_02)
LTC_Qt_App_Ver_0_02: /usr/lib/arm-linux-gnueabihf/libQt5Widgets.so.5: no version information available (required by LTC_Qt_App_Ver_0_02)
QML debugging is enabled. Only use this in a safe environment.
No protocol specified
QXcbConnection: Could not connect to display :0.0Child terminated with signal = 0x6 (SIGABRT)
GDBserver exiting
root@beaglebone:/home/debian#A suggestion to solve this issue shall be very much appreciated.
Thanks in advance for the help.
Thanks & Regards,
Sajeevan.K