Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Simple QT Application don't run on embeeded board ARM
Forum Updated to NodeBB v4.3 + New Features

Simple QT Application don't run on embeeded board ARM

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 4 Posters 6.2k 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.
  • D Offline
    D Offline
    dana_levi
    wrote on last edited by
    #1

    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]

    1 Reply Last reply
    0
    • L Offline
      L Offline
      luca
      wrote on last edited by
      #2

      Witch board are you using?
      Do you see something in the monitor before running the application?

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dana_levi
        wrote on last edited by
        #3

        Hi
        Nvidia arm-tegra board.
        The X server is loaded and i see an X11 application running.
        I also used xeyes app and it worked.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          luca
          wrote on last edited by
          #4

          So I don't know, I only used BeagleBoard without X server.

          I think that if an OS use X server, the application doesn't need -qws to start.

          Try to stop X server and execute the application as you done:

          @
          ./test –qws
          @

          1 Reply Last reply
          0
          • D Offline
            D Offline
            Danilo87
            wrote on last edited by
            #5

            I use xM BeagleBoard too, but i have the same problem with the error code: could not initialize virtual console switching!!!!

            Have you solved your problem!?!?!

            Thanks a lot!

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              IIRC, when you have an X server running, you won't be able to run an application with qws.

              Two solutions for you:

              1. Build your application with a Qt that was built to use X11 (or Xorg) and use it like you would on your desktop machine.

              2. Don't start the X server on the target and run with -qws

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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