qt usb滑鼠編譯

2021-06-06 06:30:42 字數 1528 閱讀 4065

配置:

./configure -prefix /home/nzm/qt/arm-qt4 -fast -no-largefile -no-qt3support -no-mmx -no-3dnow -no-xmlpatterns -no-webkit -no-svg -nomake demos -nomake docs -no-openssl -embedded arm -little-endian -no-qvfb -no-mouse-qvfb -depths 32,16,24 -confirm-license -xplatform qws/linux-arm-g++ -no-xcursor -no-xfixes -qt-mouse-linuxinput -qt-mouse-pc -qt-mouse-tslib -i/usr/local/tslib/include -l/usr/local/tslib/lib

出錯:/home/nzm/toolchain/arm-2008q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libts-0.0.so.0, needed by /home/nzm/qt/qt-4.7.0-arm/lib/libqtgui.so, not found (try using -rpath or -rpath-link)

/home/nzm/qt/qt-4.7.0-arm/lib/libqtgui.so: undefined reference to `ts_read_raw'

/home/nzm/qt/qt-4.7.0-arm/lib/libqtgui.so: undefined reference to `ts_open'

/home/nzm/qt/qt-4.7.0-arm/lib/libqtgui.so: undefined reference to `ts_fd'

/home/nzm/qt/qt-4.7.0-arm/lib/libqtgui.so: undefined reference to `ts_config'

/home/nzm/qt/qt-4.7.0-arm/lib/libqtgui.so: undefined reference to `ts_close'

/home/nzm/qt/qt-4.7.0-arm/lib/libqtgui.so: undefined reference to `ts_read'

collect2: ld returned 1 exit status

make[3]: *** [blockingfortuneclient] 錯誤 1

把/usr/local/tslib/lib 下的相關庫

libts-0.0.so.0  libts-0.0.so.0.1.0

拷到編譯器庫裡面/home/nzm/toolchain/arm-2008q1/arm-none-linux-gnueabi/lib/

最後板上的環境變數設為:

export qws_mouse_proto="tslib:/dev/input/event1 usb:/dev/input/event2"          

Qt usb熱插拔檢測 windows

qt提供了qabstractnativeeventfilter來實現本地時間得過濾,通過對本地事件的檢測,判斷usb熱插拔 這裡是windows 的例子 首先,以qwidget,qabstractnativeeventfilter為基類建立子類,重定義nativeeventfilter virtua...

從滑鼠手到立式滑鼠

前言 最近感覺右腕有點疼,就學習了一下滑鼠手 腕管綜合症 立式滑鼠這些東西。這個問題和程式設計師的健康相關,小夥伴們可以了解下。什麼是滑鼠手 很多人都聽過滑鼠手,其實它的學名是腕管綜合症。它是指掌管手指的感覺神經 正中神經 在傳導在手腕的腕隧道時,發生神經壓迫,導致大拇指 食指 中指,和無名指靠近中...

滑鼠事件 跟隨滑鼠移動

案例分析 1.滑鼠不斷移動,使用滑鼠移動事件 mousemove 2.在頁面中不斷移動,給document註冊事件 3.要移動距離,而且不佔位置,我們使用絕對定位 效果 跟隨滑鼠的天使 title 6 style 7img 11style 12head 13 body 14 img src pic....