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. Qt5 not loading tslib properly
Forum Updated to NodeBB v4.3 + New Features

Qt5 not loading tslib properly

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 6.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.
  • S Offline
    S Offline
    SavageTwinky
    wrote on 7 Feb 2014, 16:38 last edited by
    #1

    I'm not quite sure why but I'm having an issue with qt5.1.1 This is on a completely bare minimum build for a custom board. I have a patch to read in the environment variable but it doesn't appear to take that into account.

    env settings
    @
    TSLIB_TSDEVICE=/dev/input/event1
    USER=root
    OLDPWD=/
    HOME=/
    PAGER=/usr/bin/less
    TERM=vt102
    PATH=/sbin:/usr/sbin:/bin:/usr/bin
    TSLIB_CONFFILE=/etc/ts.conf
    MANPAGER=/usr/bin/less
    SHELL=/bin/sh
    PWD=/thermo
    TZ=US/Eastern
    POINTERCAL_FILE=/thermo/pointercal
    QWS_MOUSE_PROTO=tslib:/dev/input/event1
    TSLIB_CALIBFILE=/thermo/pointercal
    @

    log
    @

    TSLIB_TSDEVICE=/dev/input/event1 ./x11-test -platform eglfs -plugin tslib

    QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
    QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
    EGLFS: Unable to query physical screen size, defaulting to 100 dpi.
    EGLFS: To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
    QTsLibMouseHandler "tslib" ""
    Couldnt load module pthres
    Error configuring
    : No such file or directory
    This plugin does not support propagateSizeHints()
    ^C

    find / | grep pthres

    /usr/lib/ts/pthres.so

    LD_LIBRARY_PATH=/usr/lib/ts TSLIB_TSDEVICE=/dev/input/event1 ./x11-test -platf

    orm eglfs -plugin tslib
    QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
    QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
    EGLFS: Unable to query physical screen size, defaulting to 100 dpi.
    EGLFS: To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
    QTsLibMouseHandler "tslib" ""
    Couldnt load module pthres
    Error configuring
    : No such file or directory
    This plugin does not support propagateSizeHints()
    @

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sonofwuyuan
      wrote on 27 May 2014, 05:46 last edited by
      #2

      Hi, Savage Twinky
      Have you solved your problems?
      I'm facing the same problem .
      I'm working on a board based on am335x with Linux running on it. I have successfully installed tslib because ./ts_calibrate can be successfully excuted.
      The problem is when I try to run any qt5.2.1 app, i always get the error messages:
      Failed to set graphics mode Invalid argument
      QTsLibMouseHandler "tslib" "/dev/input/event1"
      Couldnt load module pthres
      Error configuring:
      No such file or directory
      This plugin does not support PropagateSizeHints()
      my env settings:
      QTDIR=/opt/qt-5.2.1-arm
      PATH=$QTDIR:$PATH
      QT_QPA_PLATFORM_PLUGIN_PATH=$QTDIR/plugins
      QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
      QT_QPA_FONTDIR=$QTDIR/lib/fonts

      TSLIB_ROOT=/usr/lib
      TSLIB_CONSOLEDEVICE=none
      TSLIB_FBDEVICE=/dev/fb0
      TSLIB_TSDEVICE=/dev/input/event1
      TSLIB_PLUGINDIR=/usr/lib/ts
      TSLIB_CONFFILE=/etc/ts.conf
      TSLIB_CALIBFILE=/etc/pointercal

      QT_QPA_GENERIC_PLUGINS=tslib:$TSLIB_TSDEVICE
      LD_LIBRARY_PATH=$QTDIR/lib:$QT_QPA_PLATFORM_PLUGIN_PATH:$QT_QPA_FONTDIR:$TSLIB_PLUGINDIR:$LD_LIBRARY_PATH

      QT_QWS_FONTDIR=$QTDIR/fonts/
      QWS_DISPLAY=LinuxFb:/dev/fb0
      QWS_SW_CURSOR=1
      QWS_MOUSE_PROTO="tslib:/dev/input/event1"
      QT_ONSCREEN_PAINT=0

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SavageTwinky
        wrote on 30 May 2014, 21:39 last edited by
        #3

        yes,

        http://stackoverflow.com/questions/22176029/qt5-fails-to-load-module-tslib-because-pthres-so

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sonofwuyuan
          wrote on 6 Jun 2014, 02:19 last edited by
          #4

          O,Thanks!

          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