Qt5 not loading tslib properly



  • 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()
    @



  • 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





  • O,Thanks!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.