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. Weirdly opening Qt application on BeagleBone Black

Weirdly opening Qt application on BeagleBone Black

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 3 Posters 2.9k 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.
  • J Offline
    J Offline
    jm4spiteri
    wrote on last edited by
    #1

    Hello guys,

    I've cross-compiled a couple basic Qt applications to a BeagleBone Black (running Angstrom) using the following tutorial http://www.cloud-rocket.com/2013/07/building-qt-for-beaglebone/

    When i execute the app ./InitialGUITest -qws nothing at all happens.
    I've realized i need to press ctrl+alt+f2 to be able to see my application running, and then i cannot get back to the my default environment (ctrl+alt+BKSPACE or ctrl+atl+f1->7).
    Is this meant to execute like this?

    Also im using a touch-screen and the Qt app does not respond to the touch, although i can see a cursor visible AND the touchscreen does work in the default enviroment.
    How can i tell the app to use my touchscreen?

    Sorry if im a little vague or asking common-knowledge questions. Im new to linux and Qt.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leonardo.ramosantos
      wrote on last edited by
      #2

      Did you set the environment variables correctly?

      If you are using Qt with Tslib driver for TouchScreen you can set your variables like this:

      export TSLIB_TSEVENTTYPE=INPUT
      export TSLIB_CONSOLEDEVICE=none
      export TSLIB_FBDEVICE=/dev/fb0
      export TSLIB_TSDEVICE=/dev/input/event1
      export TSLIB_CALIBFILE=/etc/pointercal
      export QWS_MOUSE_PROTO=tslib:/dev/input/event1

      This will set your application to use touchscreen and display device if your driver was compiled correctly.

      []'s

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jm4spiteri
        wrote on last edited by
        #3

        Thanks for the reply mate.

        All fixed. ended up being a problem with my configure.
        I needed to add -qt-mouse-tslib

        Any ideas on how i can incorprate the GPIO's of my BBB with the Qt app?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leonardo.ramosantos
          wrote on last edited by
          #4

          The easiest way to use them is by QProcess. You can run commands like "cat" for reading and "echo" + ">>" to setting values. But this will work just for Linux.

          Another way, to work in more platoforms, you can use QFile and read/write functions to read GPIO file.

          Dont forget to enable kernel and/or buildroot to create gpio files on "/sys/class/gpio", if you are using linux.

          []'s

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Sajith P
            wrote on last edited by
            #5

            I had also the same issue, please read the below blog
            http://armembedded.blogspot.in/2016/02/qt-application-in-beagle-bone-black-in.html
            This might help you

            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