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. [SOLVED] Statically linked Qt and gfx-transformed driver
QtWS25 Last Chance

[SOLVED] Statically linked Qt and gfx-transformed driver

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 2.2k 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.
  • K Offline
    K Offline
    Karolis B.
    wrote on last edited by
    #1

    I'm developing an Arm cross-compiled application that is linked to Qt4.8 + Qwt statically and uses gfx-transformed drivers to rotate the screen. App is built without errors, but when I try to launch it, that's what happens:

    • #/usr/bin/app -qws -display transformed:Rot270
    • #transformed: driver not found

    Few key points to mention:

    • Qt is configured with -plugin-gfx-transformed, -static and -release flags among others (I'm using BitBake/Yocto to build it along with the whole filesystem image)
    • When Qt is used as shared libraries, everything works fine.
    • If I launch statically linked app without rotation, everything works fine too (except, obviously, the screen is not rotated).

    I suspect the problem might be in my .pro file as I don't include gfx-transformed drivers in any way (don't know if/how to do it and can't google any related info). Any help would be appreciated, thank you in advance.

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

      Hi,

      IIRC, since you do a static build, you should rather build with qt-gfx-transformed so it's builtin your library

      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
      • K Offline
        K Offline
        Karolis B.
        wrote on last edited by
        #3

        SGaist, I'll try that too, thanks. Meanwhile, I have solved my problem as described in Qt manual[1] by adding following line to project's .pro file:

        QTPLUGIN += qgfxtransformed

        and this above main() function:
        Q_IMPORT_PLUGIN(qgfxtransformed)

        Not sure how I've missed that page while been googling for a solution earlier..

        1. http://qt-project.org/doc/qt-4.8/plugins-howto.html#static-plugins
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          That's the question I wanted to ask first but I've only thought of writing it :-D

          Don't worry, it's one of the useful document that's always missed when dealing with a static build of Qt

          Since you found out how to make it work, please 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