使用基于 Qt 5.7.0 的 Qt Creator 4.0.2,我的应用名称是test
板:i.M6Q with buildroot (Qt 5.9)
问题:
A. 当我运行 qt app 时显示此错误
EGL library doesn't support Emulator extensions
Aborted
Application finished with exit code 134.
但是我可以使用 ./test 在板上运行 qt 应用程序,它显示正常
B.当我开始调试时显示此错误
The GDB process terminated unexpectedly (exit code 1)
如何修复这些错误?
以下是我设置的内容:
test.proQT += 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工具 > 选项 > 构建和运行 > 编译器
姓名 :
imx6 buildroot GCCbuildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-g++工具 > 选项 > 构建和运行 > 调试器
姓名 :
IMX6 buildroot gdbbuildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-gdb工具 > 选项 > 构建和运行 > Qt 版本
版本名称:
Qt %{Qt:Version} (buildroot)buildroot/output/host/usr/bin/qmakeTools > Options > Build & Run > Kits看起来像这个图像
工具 > 选项 > 设备:
Device test finished successfully.这是我的
main.cpp#include "mainwindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); }