Cannot display Qt Application on target. Help needed !!!
-
############### main.cpp ################
#include <QApplication>
#include <QPushButton>int main(int argc, char** argv[])
{
QApplication app(argc, argv);QPushButton btn("Hello World"); btn.show(); btn.showMaximized();
}
############### hello.pro ##################
QT += coreQT += gui
TARGET = hello
target.files = hello
target.path = /home/root
INSTALLS += targetCONFIG += console
CONFIG -= app_bundleTEMPLATE = app
SOURCES += main.cpp
#################################
Qt version : Qt 4.8.5
Compiler path : /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-g++
GDB path : /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gdb
Kit : BeagleBoneBlack#################################
Compile Output :
19:55:33: Running steps for project hello...
19:55:33: Configuration unchanged, skipping qmake step.
19:55:33: Starting: "/usr/bin/make"
make: Nothing to be done for `first'.
19:55:33: The process "/usr/bin/make" exited normally.
19:55:33: Connecting to device...
19:55:33: The remote file system has 1311 megabytes of free space, going ahead.
19:55:33: Deploy step finished.
19:55:33: No deployment action necessary. Skipping.
19:55:33: Deploy step finished.
19:55:33: Elapsed time: 00:01.Application Output : Application finished with exit code 0.
Even though everything went correctly I cannot get display on beagleboneblack target board. I followed the Derek molloy instructions to make it work but cant get display. Can anyone help me asap.??
-
First of all, put code-tags around your code. It makes it better readable.
I'm not familiar with BeagleBone Black, but your main.cpp seems strange to me. To my knowledge it should be more like this:
@#include <QApplication>
#include <QPushButton>int main(int argv, char **args)
{
QApplication app(argv, args);QPushButton *btn = new QPushButton("Hello World"); btn.show(); return app.exec();
}@