Using Qt Creator 4.0.2 base on Qt 5.7.0, my app name is test
Board : i.M6Q with buildroot (Qt 5.9)
Questions:
A. When I run qt app show this error
EGL library doesn't support Emulator extensions
Aborted
Application finished with exit code 134.
But I can run qt app in board using ./test, and it shows normally
B. And When I start debugging show this error
The GDB process terminated unexpectedly (exit code 1)
How to fix these errors?
The following is what I have set up:
test.pro
QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = test TEMPLATE = app SOURCES += main.cpp\ mainwindow.cpp HEADERS += mainwindow.h FORMS += mainwindow.ui target.path = /root/test INSTALLS += target
Tools > Options > Build & Run > Compilers
Name :
imx6 buildroot GCC
buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-g++
Tools > Options > Build & Run > Debuggers
Name :
IMX6 buildroot gdb
buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-gdb
Tools > Options > Build & Run > Qt Versions
Version Name :
Qt %{Qt:Version} (buildroot)
buildroot/output/host/usr/bin/qmake
Tools > Options > Build & Run > Kits look like this image
Tools > Options > Devices:
Device test finished successfully.
This is my
main.cpp
#include "mainwindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); }