使用基于 Qt 5.7.0 的 Qt Creator 4.0.2,我的应用程序名称是test
主板:带有 buildroot 的 i.M6Q (Qt 5.9)
EGL library doesn't support Emulator extensions
Aborted
Application finished with exit code 134.
Run Code Online (Sandbox Code Playgroud)
但我可以使用 ./test 在板上运行 qt 应用程序,并且它显示正常
The GDB process terminated unexpectedly (exit code 1)
Run Code Online (Sandbox Code Playgroud)
如何修复这些错误?
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 …Run Code Online (Sandbox Code Playgroud)