简体   繁体   English

适用于Raspberry Pi的Qt5的交叉编译TSLIB插件

[英]Cross-compile TSLIB Plugin for Qt5 for Raspberry Pi

I'm stuck in getting my environment to work properly, here's my situation: I'm developing a QtQuick1 application to be used on the Raspberry Pi with an capacitive Adafruit PiTFT Touchscreen on /dev/fb1 which works as expected as QtQuick1 applications do not use OpenGL. 我一直坚持要让我的环境正常工作,这是我的情况:我正在开发QtQuick1应用程序,该应用程序可以在Raspberry Pi上使用,在/ dev / fb1上具有电容性的Adafruit PiTFT触摸屏,该功能可以正常工作,因为QtQuick1应用程序不能正常工作使用OpenGL。 Display output on the PiTFT works fine but I can't get the touchscreen to work. PiTFT上的显示输出工作正常,但我无法使触摸屏正常工作。

As I discovered by now by searching the Web I will have to use TSLIB for touch input, testing the touch works fine. 正如我现在通过搜索Web所发现的那样,我将不得不使用TSLIB进行触摸输入,测试触摸效果很好。

What I'm stuck with is how to cross-compile the TSLIB Plugin for Qt. 我所坚持的是如何交叉编译Qt的TSLIB插件。 I cross compiled Qt5 for the Raspberry Pi on an Ubuntu machine which worked fine after some tries and tweaks. 我在Ubuntu机器上交叉编译了Raspberry Pi的Qt5,经过一些尝试和调整后,该机器工作正常。 How can I now cross-compile TSLIB as plugin for Qt? 现在如何交叉编译TSLIB作为Qt的插件?

I already compiled TSLIB directly on the Raspberry Pi, so TSLIB is working fine with the PiTFT touch on the Raspberry, I'm only missing the tslib plugin for Qt on the Raspberry. 我已经直接在Raspberry Pi上编译了TSLIB,因此TSLIB在Raspberry上的PiTFT touch上运行良好,而我只是在Raspberry上缺少Qt的tslib插件。

Any help appreciated. 任何帮助表示赞赏。 Thanks a lot! 非常感谢!

If you use tslib 1.3, you can simply run ts_uinput -d (-d starts it as a daemon) and you have a new input device in /dev which provides the filtered touch data. 如果使用tslib 1.3,则可以简单地运行ts_uinput -d (-d将其作为守护程序启动),并且/dev有一个新的输入设备,该设备提供了过滤后的触摸数据。 No need for a Qt plugin. 无需Qt插件。 Simply point your input event environment to it. 只需将您的输入事件环境指向它即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM