[solved] Touchscreen using the framebuffer

Discussion in 'General Programming Discussion' started by bmti, Apr 24, 2014.

  1. bmti

    bmti New Member

    Joined:
    Apr 23, 2014
    Messages:
    7
    Likes Received:
    0
    Hello everybody,

    I'm new in the UDOO community and I have a problem:

    I work on the ubuntu 12.04 image, and I want to develop an application that uses the 7" touchscreen.
    I built Qt5 with this tutorial:
    http://www.udoo.org/ProjectsAndTutorials/how-to-build-qt5-for-udoo/

    After the build, I tried to launch an example from the "/opt/qt5/examples/touch" directory, but the UDOO "froze":
    I can't interact with any "touch" test app, and Ctrl+c doesn't work, but I still can interact with the UDOO with the serial cable.

    I thought it could be a calibration problem, so i built tslib, but the calibration tool froze the UDOO too...

    My touchscreen works well when I use X11, but the Qt5 build can only work with the framebuffer.

    So, there are my questions:
    -Can I use the touchscreen using the framebuffer?
    -How?

    Regards,
     
  2. kmedghaith

    kmedghaith New Member

    Joined:
    Mar 16, 2014
    Messages:
    7
    Likes Received:
    0
    Re: Touchscreen using the framebuffer

    Hello,

    Did you built the tslib qt plugin ?

    cd qtbase/src/plugins/generic/tslib
    make && make install

    This will generate and install "libqlinuxinputplugin.so" into plugins folder which will be detected by Qt5 (don't forget to copy to your sd card)

    The tslib plugin is invoked as below:

    your_application -platform eglfs -plugin Tslib

    For the calibration tool freeze, I didn't get this problem.

    MG
     
  3. bmti

    bmti New Member

    Joined:
    Apr 23, 2014
    Messages:
    7
    Likes Received:
    0
    Re: Touchscreen using the framebuffer

    Hello,
    I solved my problem a long time ago, but I never come back to this forum to post the answer.

    It was very simple (stupide? :oops: )
    I didn't have the permission on the "touchscreen file" /dev/input/event*
    It's strange, but my programm never send me error message like "permission needed"
    I just need sudo or chmod.
     
  4. Sid

    Sid New Member

    Joined:
    Jul 8, 2014
    Messages:
    1
    Likes Received:
    0
    Dear All,
    I am posting for the first time here.
    I want to know after getting "libqlinuxinputplugin.so what extra i need to do?
    I also downloaded and generated the TSLIB library and i got libts.so.
    For output on the LCD i am using LinuxFB and when i go inside /dev there is no input folder.
    Kindly help me out.
    Thanks
     

Share This Page