Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. TSLIB plugin compilation

TSLIB plugin compilation

Scheduled Pinned Locked Moved Unsolved QtonPi
qt5
5 Posts 3 Posters 3.5k 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
    defrag
    wrote on last edited by A Former User
    #1

    Hi to all,
    I would to know how to add the TSLIB plugin in an existing Qt 5 setup, without recompile everything from the sources.
    I tried several guides to natively compile QT5 on RPI2 , like https://wiki.qt.io/Native_Build_of_Qt_5.4.1_on_a_Raspberry_Pi, without success. Currently I'm using the lib downloaded from https://twolife.be/raspbian/, but they do not provide tslib plugin, theoretically a "plugin" should be added without library recompilation.
    Do you know if there is a guide that works or an image available with Qt 5 with eglfs + tslib for rpi2?
    Thank you in advance

    Carlo

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

      Hi and welcome to devnet,

      One thing you can do is build it by hand. If you did an insource build, just go to the qtbase/src/plugins/generic/tslib/ folder and call qmake + make/make install. Depending on where your TSLib files can be found, you may have to give some additional informations to find them, but basically it should work.

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

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

        Thank you for the reply, I managed to compile the tsib plugin in Qt5.3.2 but I have another problem, at the first touch event the application crashes without give me any information (i.e. segmentation fault or whatever). Nonetheless the tslib tool such as ts_calibrate & ts_test work without problem.
        Just to make a brief overview, I compiled natively the tslib plugin, then I downloaded the kergoth tslib, compiled it and configured as described in https://wiki.qt.io/Native_Build_of_Qt_5.4.1_on_a_Raspberry_Pi.
        I would like to get some information about the application crash, just to understand what I did wrong. I think that soon I will try to cross compile the new Qt5,6 lib, following the relative guide.

        Bye
        Carlo

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

          You should run your application through the debugger to see where it fails exactly

          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
          • SGaistS SGaist

            Hi and welcome to devnet,

            One thing you can do is build it by hand. If you did an insource build, just go to the qtbase/src/plugins/generic/tslib/ folder and call qmake + make/make install. Depending on where your TSLib files can be found, you may have to give some additional informations to find them, but basically it should work.

            I Offline
            I Offline
            iamjbn
            wrote on last edited by
            #5

            @SGaist I'm getting "Project ERROR: Library 'tslib' is not defined." during this step.

            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