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. Add plugins to embedded system [solved]

Add plugins to embedded system [solved]

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 2 Posters 2.8k Views
  • 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.
  • T Offline
    T Offline
    tompeE
    wrote on 9 Dec 2014, 15:22 last edited by
    #1

    Im fairly new to embedded programming and Qt but i would like to give it a try.

    So I did some research on the internet for the BeagleBone Black:

    • install qt4-embedded on device
    • download Toolchain from Angstrom (with qt support)
    • install Qt-Creator and set it up to use Toolchain to compile

    So far that worked quite well and i already have a GUI running in -qws mode, but i struggle with additional plugins (i.e. gif support). I found that you have to set -qt-libgif when configuring Qt (so I assume that this was not set when the Toolchain got compiled). Also QMovie::supportedFormats() returns an empty list. The funny thing is, jpeg works just fine (so I guess they used this flag).

    So I downloaded qt-everywhere and recompiled qt with flags for third party libraries and copied the whole plugin folder into the executeable path on my BBB. (as somebody recommeded this)

    I also added the library path to QApplication but nothing seems to work.
    When i search for files named qt* on my BBB I can find things like "qt4-embedded-plugin-imageformat-jpeg.control" and "qt4-embedded-plugin-imageformat-jpeg.list" but nothing for gif (except the libqgif.so I copied with the plugin folder).

    Anybody can give me a hint on what I'm missing or did wrong?! :)

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tompeE
      wrote on 9 Dec 2014, 16:11 last edited by
      #2

      i wanted to add that i also tried to copy the imageformats folder only and add a.addLibraryPath("/home/imageformats/"); to the main as suggested in another thread here!

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 9 Dec 2014, 22:13 last edited by
        #3

        Hi and welcome to devnet,

        You maybe using two different Qt versions between the one you compiled and the one provided with the BBB. What version of Qt are you using on the board ? How did you install it ?

        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
        • T Offline
          T Offline
          tompeE
          wrote on 10 Dec 2014, 19:45 last edited by
          #4

          Hi, thanks for your response.

          On my BBB i installed via "opkg install qt4-embedded" (v4.8.1), so those are binaries provided by Angstrom. But my toolchain has v4.6.3 in it. I then compiled "qt-everywhere-opensource-src-4.8.1" for BBB to get the libqgif.so for the imageformats folder.

          How should i generally approach this? Qt in my toolchain (also provided by Angstrom) does not have gif support enabled (i can not find any gif libraries but only jpeg).

          I guess the best way would probably to build qt myself and add it to a blank Angstrom toolchain and my BBB.

          So please correct me if i'm wrong: couldn't i just run ./configure my qt with -prefix /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/qt4.8.1/ then "make" and "make install" so it will install it in my toolchain. Later then i do the same for my BBB with -prefix /usr/qt4.8.1/ and again "make" then copy it to my BBB and run "make install"
          Or how else would you do it?

          Like I said I don't have any experience with Embedded Systems so I seem to struggle with some main routines here.
          I'm thankful for every information!

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 10 Dec 2014, 20:38 last edited by
            #5

            You should first check what packages are available with Angstrom. I'm pretty surprised that the image formats are missing.

            Otherwise, yes, you can cross-compile Qt using the Angstrom toolchain

            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
            • T Offline
              T Offline
              tompeE
              wrote on 22 Dec 2014, 21:40 last edited by
              #6

              So i finally found time to continue my project and ended up compiling Qt myself. Everything works fine now.
              Thanks again for you help SGaist!

              A few points that might help someone:

              • newer Angstrom kernel seem to have a driver bug (for the display cape from 4DSystems or CircuitCo) that causes weird cursor jitter (>2013.06.20)

              • since the Angstrom toolchain downloads are down, you can download some from
                http://web.archive.org/web/20131105184456/http://www.angstrom-distribution.org/toolchains/
                use one with Qt (even if you build it yourself) since it includes the headers for tslib you need for touch screen calibration

              • there is a good tutorial on how to build Qt for BBB and set up a cross compilation environment (don't forget -qt-mouse-tslib when running ./configure)
                http://www.cloud-rocket.com/2013/07/building-qt-for-beaglebone/

              • use environment variable QWS_MOUSE_PROTO=tslib:/dev/input/touchscreen0 to enable touch screen in Qt (calibrate it by running ts_calibrate on BBB)

              Hope this will help someone someday! :)

              1 Reply Last reply
              1
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 22 Dec 2014, 21:54 last edited by
                #7

                Nice ! Thanks for sharing !

                You can also update the thread title prepending [solved] so other forum users may know a solution has been found :)

                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