Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    T507 tslib移植出现:Couldn't open tslib config file : No such file or directory

    Linux
    1
    2
    2351
    Loading More Posts
    • 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.
    • L
      liuyongguang LV 2 last edited by

      T507移植Qt后再移植tslib,在/etc/profile中设置环境变量——
      export TSLIB_TSDEVICE=/dev/input/event1
      export TSLIB_CALIBFILE=/etc/pointercal
      export TSLIB_CONFFILE=/etc/ts.conf
      export TSLIB_PLUGINDIR=/lib/ts
      export TSLIB_CONSOLEDEVICE=none
      export TSLIB_FBDEVICE=/dev/fb0
      export LD_PRELOAD=/lib/libts.so

      在qtenv.sh脚本中配置——
      export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event1
      export QT_QPA_PLATFORM=eglfs
      export QT_QPA_GENERIC_PLUGINS=tslib
      export QT_QPA_FB_TSLIB=1

      但是目标板开机后出现tslib错误——
      Couldn't open tslib config file : No such file or directory
      ts_config() failed (No such file or directory)

      看了下tslib相关文件的路径感觉没问题,ts.conf中 "module_raw input" 前面“#”也去掉了——

      Uncomment if you wish to use the linux input layer event interface

      module_raw input

      请教下各位这种错误是哪个地方引起的?Qt的问题还是tslib移植的问题?

      L 1 Reply Last reply Reply Quote Share 0
      • L
        liuyongguang LV 2 @liuyongguang last edited by

        这个问题应该是/etc/profile的环境变量在/etc/qtenv.sh执行之前没有导出来导致的,我把在/etc/profile中的设置放到了/etc/qtenv.sh中就没有这个错误提示了。关于/etc/profile和/etc/qtenv.sh的执行顺序还得再研究一下 。

        1 Reply Last reply Reply Quote Share 0
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策