Hi all,
I did a search on this site but did not find anything relevant.
I’m trying to remote debug an app on Beaglebone Black using eclipse 2021-06 (4.20.0) on Ubuntu 20.04
Beaglebone Black: Linux beaglebone 5.4.106-ti-rt-r31
First it complained about not finding libncurses.so.5 libtinfo.so.5 during the launch of the debugger, so I created symlinks from X.so.6 to X.so.5, this helps for the moment.
Then the eclipse debugger complained about not finding libpython2.7.so.1.0, “python --version” responds with python3.
Has anyone found a way to remote debug on Ubuntu 20.04 with eclipse 2021-06 to Beaglebone Black?
I have had Ubuntu 18.04 with an older Eclipse working, but don’t want to down grade unless I have to.
Hi Jon,
Will be cross compiling, debugging a C program and LVGL. for now it is just a hello world C app to get things setup.
Will attempt to provide some images, lets hope it works.
For cross compiling, prefix and path were set, as shown
On Debug Configurations, Connection and Remote Absolute File Paht must be set
Connection was set as shown here. The rsa key was added to the BBB, so I don’t need a password to log in
Debugger tab: give full path to arm-linux-gnueabihf-gdb
This is the last of the 3 errors that I get.
Could not determine GDB version using command: /home/amf/devel/bbb-toolchain/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gdb --version
/home/amf/devel/bbb-toolchain/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gdb: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
./arm-linux-gnueabihf-gdb
GNU gdb (Linaro_GDB-2019.12) 8.3.1.20191204-git
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type “show copying” and “show warranty” for details.
This GDB was configured as “–host=x86_64-unknown-linux-gnu --target=arm-linux-gnueabihf”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type “help”.
Type “apropos word” to search for commands related to “word”.
(gdb)
I’m guessing they still have a Python 2.7 dependency with the 7.5 toolchain.
installing libncurses5 and -dev did not fix the issue when trying to debug on the BBB
Could not determine GDB version using command: /home/amf/devel/bbb-toolchain/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gdb --version
/home/amf/devel/bbb-toolchain/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
I still need symlink for libncuses.so.6 to .so.5, also for libtinfo.so.5
whereis libncurses.so.5
libncurses.so: /usr/lib/x86_64-linux-gnu/libncurses.so /usr/lib/x86_64-linux-gnu/libncurses.so.6
This is what I get, so it does not look like apt install of libncurses5 and -dev install .so.5 version
$ /home/jomotest/develop/bbuild/toolchain/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gdb --version
GNU gdb (Linaro_GDB-2019.12) 8.3.1.20191204-git
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.