Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Cannot display Qt Application on target. Help needed !!!
Forum Updated to NodeBB v4.3 + New Features

Cannot display Qt Application on target. Help needed !!!

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 851 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    srikanth.koorma
    wrote on last edited by
    #1

    ############### 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 += core

    QT += gui

    TARGET = hello

    target.files = hello
    target.path = /home/root
    INSTALLS += target

    CONFIG += console
    CONFIG -= app_bundle

    TEMPLATE = 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.??

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jan-Willem
      wrote on last edited by
      #2

      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();
      

      }@

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved