ParDalis
Posts: 5
Joined: Thu Jan 16, 2014 6:24 pm

Remote debugging with qt

Thu Jan 16, 2014 6:33 pm

Hi
I finally made it to build my program for the raspberry pi. Such hard work for a linux newbie :) .
Now i have some Problems getting remote debugging up and running.
Maybe someone can help me?

on the host im running the following software:
Ubuntu 12.04.4 LTS
Qt Creator 3.0.0
Based on Qt 5.2.0 (GCC 4.6.1, 64 bit)

I get the following error, when i try to get the debugger runnning:

Code: Select all

Debugging starts
Process /home/pi/build-RPITerra-RPI-Debug/RPITerra created; pid = 5367
Listening on port 10000
Remote debugging from host 10.10.10.106
Architecture rejected target-supplied description
`/mnt/rpi-rootfs/lib/ld-linux-armhf.so.3': Shared library architecture unknown is not compatible with target architecture i386.
`/mnt/rpi-rootfs/lib/ld-linux-armhf.so.3': Shared library architecture unknown is not compatible with target architecture i386.
Killing all inferiors
Debugging has finished
Im a little bit confused, because the target architecture is not i386??

ParDalis
Posts: 5
Joined: Thu Jan 16, 2014 6:24 pm

Re: Remote debugging with qt

Thu Jan 16, 2014 10:23 pm

had to select another debugger.
/home/***/src/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gdb
now it seems to work partially.

now im on the next two problems:
1: when i start the appllication on the RPI

Code: Select all

Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
2:
in QT i cant see any variables while debugging, but the debugger holds correctly on the breakpoints.

User avatar
topguy
Posts: 6527
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Remote debugging with qt

Fri Jan 17, 2014 9:27 am

How are you going to use Qt ?
Are you trying to create windows in a X-windows environment (desktop) or are you using eglfs to have fullscreeen GLES accelerated applications.

If you run your program with "-platform bs" what rendering platforms does the program report as enabled ?
(bs is not a platform, I just want your program to list what is enabled in Qt).

ParDalis
Posts: 5
Joined: Thu Jan 16, 2014 6:24 pm

Re: Remote debugging with qt

Fri Jan 17, 2014 11:14 am

Yes i want to run a windowed application
Currently i can run it with -platform xcb
I will try -platform bs in the evening.
If gles has todo with opengl then i won't use it

User avatar
topguy
Posts: 6527
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Remote debugging with qt

Fri Jan 17, 2014 11:18 am

I just wondered if you was aware about the different rendering-platforms and if that could be the cause of those "EGL" messages. But if you are using "xcb" and that works for you then I have little else to contribute.

ParDalis
Posts: 5
Joined: Thu Jan 16, 2014 6:24 pm

Re: Remote debugging with qt

Fri Jan 17, 2014 11:32 am

with -platform xcb i get this error, without i can't start the program.
if i debug from the remote host, the fonts are not correct and some filesystem access is not working too.

ParDalis
Posts: 5
Joined: Thu Jan 16, 2014 6:24 pm

Re: Remote debugging with qt

Fri Jan 17, 2014 4:42 pm

i was runnin it with -platform bs
non of the supported platforms is working except xcb.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, xcb
but there i got the issue that i cannot debug properly and this anoying EGL message:
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0

Greetings

Heater
Posts: 16092
Joined: Tue Jul 17, 2012 3:02 pm

Re: Remote debugging with qt

Thu Jan 23, 2014 11:23 pm

In general I would do all my debugging of Qt applications on the PC that I wrote them on.
When everything is working well compile and run on the target. The Pi in this case.
Memory in C++ is a leaky abstraction .

Return to “C/C++”