【发布时间】:2012-08-16 18:21:26
【问题描述】:
我有一个嵌入式 linux 项目,我想在其中使用 Qt 的多点触控。 我一直在看 qTUIO (https://github.com/x29a/qTUIO),它看起来很棒。
我交叉编译了 qTUIO 库并部署到板上。
我还交叉编译和部署了 TUIO“服务器”的要求:
在板上我启动了“服务器”:
./mtdev2tuio /dev/input/touchscreen osc.udp://127.0.0.1:3333/
Sending OSC/TUIO packets to osc.udp://127.0.0.1:3333/
为了确保它正在读取输入设备,我还执行了以下操作,当我在触摸屏上移动手指时看到“名称解析失败”:
./mtdev2tuio /dev/input/touchscreen osc.udp://localhost:3333/
Sending OSC/TUIO packets to osc.udp://localhost:3333/
...
OSC error -3: Temporary failure in name resolution
OSC error -3: Temporary failure in name resolution
OSC error -3: Temporary failure in name resolution
OSC error -3: Temporary failure in name resolution
OSC error -3: Temporary failure in name resolution
...
然后我在板上运行了 qTUIO 版本的“pinchzoom”示例,它的运行如下所示:
# ./pinchzoom -qws
graphicsview initialized
listening to TUIO messages on UDP port 3333
所以我有一个服务器声称正在解释我的触摸并将它们 UDP 发送到端口 3333,而 qt 应用程序声称正在读取这些 TUIO 事件并将它们传递给 Qt。当我触摸屏幕时,没有任何反应。有人对此有想法吗?
【问题讨论】:
标签: qt embedded-linux touchscreen multi-touch qtembedded