I installed Qt with: (Sudo Apt-get Install QT5-Default QtCreator -y) in Jetson Nano and set up the following project。
The following is the file of qt_demo.pro :
//======== This is automatically configured for new projects
QT -= gui
CONFIG += c++11 console
CONFIG -= app_bundle
DEFINES += QT_DEPRECATED_WARNINGS
SOURCES += main.cpp
The following is the file of qt_demo.main.cpp:
int main(int argc, char **argv)
QCoreApplication a(argc, argv);
int c = 10;
qDebug() << c;
And then I can run by ctrl+rI can press CTRL + R to work properly
But I couldn’t debug and got the following error
and I’m using the GDB debugger, as shown below
GNU gdb (Ubuntu 8.1-0ubuntu3.2) 18.104.22.16880409-git
Copyright © 2018 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 “aarch64-linux-gnu”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type “help”.
Type “apropos word” to search for commands related to “word”.
Thank you very much for your help