没有合适的资源?快使用搜索试试~ 我知道了~
首页海思hi3536开发板QT鼠标事件捕获,鼠标移动new.docx
资源详情
资源评论
资源推荐

海思 hi3536 开发板 QT 鼠标事件捕获,鼠标
移动
本人用的是 qt 5.9.7 实现 QT 鼠标事件捕获,鼠标移动
本人编译过 tslib,试过各种方案,没有在 QT 中的 congure 中编译
tslib 成功,查资料说 qt 4.8 以后不用 tslib ;幸好,下面的办法成功
避开的 tslib 。
Qt 配置一下:
成功版本:
./congure -prex /home/ml/ml/qt597_hi3536 -opensource -conrm-license -
release -strip -linuxfb -qt-zlib -no-gif -qt-libpng -qt-libjpeg -qt-freetype -no-rpath
-no-pch -no-avx -no-openssl -no-cups -no-dbus -no-pkg-cong -xplatform linux-
hi3536-g++ -make libs -eglfs -opengl es2 -no-glib -nomake examples -nomake
tools -qt-sqlite -no-iconv -evdev
加入 tslib 库:错误
./congure -prex /home/ml/ml/qt597_hi3536 -opensource -conrm-license -
release -strip -linuxfb -qt-zlib -no-gif -qt-libpng -qt-libjpeg -qt-freetype -no-rpath
-no-pch -no-avx -no-openssl -no-cups -no-dbus -no-pkg-cong -xplatform linux-
hi3536-g++ -make libs -eglfs -opengl es2 -no-glib -nomake examples -nomake
tools -qt-sqlite -no-iconv -tslib -I /home/ml/ml/tslib/include -L
/home/ml/ml/tslib/lib
其实配置工作并不复杂,就是让大家少走弯路:就一步
在板子上查看设备。
当插上鼠标时/dev/input/event0 才会出现,在/etc/prole 中进行设置如下就
行了。不需要 tslib












安全验证
文档复制为VIP权益,开通VIP直接复制

评论0