Simple QT Application don't run on embeeded board ARM
-
Hi
I wrote this application and compiled it to arm, when I try to run the application on the board
./test –qws, I don’t see any windows created and I get this error message: could not initialize virtual console switching.The board as only screen connected it no (Keyboard or mouse)
@
class MyWidget : public QWidget
{
public:
MyWidget(QWidget *parent = 0);
};MyWidget::MyWidget(QWidget *parent)
: QWidget(parent)
{
}int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MyWidget widget;
widget.show();
return app.exec();
}
@[edit: code highlighted / Denis Kormalev]
-
IIRC, when you have an X server running, you won't be able to run an application with qws.
Two solutions for you:
-
Build your application with a Qt that was built to use X11 (or Xorg) and use it like you would on your desktop machine.
-
Don't start the X server on the target and run with -qws
-