移植tslib到开发板及部分问题解决
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                移植tslib到开发板及部分问题解决
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.                        
                                
                            
                            
                            qt的tslib的具體移植步驟和過程就不多講了,我說說我按照手冊移植好tslib后在開發(fā)板運行提示的錯誤以及我的解決方法,當然每個人的提示可能一樣,解決方法就不一樣,我也是個初學者,所以方法僅供大家參考! 問題一: Segmentation fault Could not read calibration: "/etc/pointercal" 解決方法: 編輯rootfs/usr/localtslib/etc/ts.conf文件(這是我的文件夾位置),編譯內容如下:
vi etc/ts.conf
module_raw input
module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear
注意,確保module_raw前面沒有空格,否則會彈出Segmentation fault的錯誤。 好了,我的問題解決了,保存,編譯,下載,接著又問題了; 問題二: Please press Enter to activate this console. xres = 480, yres = 272
selected device is not a touchscreen I understand,觸摸屏矯正畫面已經顯示出來了,可是點擊沒放應; 解決方法:看到網上很多人寫的解決方法修改usr/bin/qtconfig 修改內容如下: export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_PLUGINDIR=/usr/local/lib/ts
export TSLIB_CXXXOLEDEVICE=none
export TSLIB_CONFFILE=/usr/local/etc/ts.conf
export POINTERCAL_FILE=/etc/pointercal
export TSLIB_CALIBFILE=/etc/pointercal
export QWS_MOUSE_PROTO=Tslib:/dev/input/event0
照著上面修改后,編譯下載還是有問題, 提示: ts_open: No such file or directory
Could not read calibration: "/etc/pointercal" ; 網上搜了很多,發(fā)現(xiàn)dev目錄下沒有input文件夾,只有event0,event1,event2,event3, 然后仔細看開發(fā)板帶的源碼,我的是event2,只要修改export TSLIB_TSDEVICE=/dev/event2,就可以 然后編譯下載,正常顯示! 上述只是個人經歷,本人初學,如有不懂參考高手文章: Linux移植隨筆:http://blog.csdn.net/glorin/article/details/6527598 移植tslib到開發(fā)板及部分問題解決 :http://blog.csdn.net/subfate/article/details/6319834
                        
                        
                        vi etc/ts.conf
module_raw input
module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear
注意,確保module_raw前面沒有空格,否則會彈出Segmentation fault的錯誤。 好了,我的問題解決了,保存,編譯,下載,接著又問題了; 問題二: Please press Enter to activate this console. xres = 480, yres = 272
selected device is not a touchscreen I understand,觸摸屏矯正畫面已經顯示出來了,可是點擊沒放應; 解決方法:看到網上很多人寫的解決方法修改usr/bin/qtconfig 修改內容如下: export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_PLUGINDIR=/usr/local/lib/ts
export TSLIB_CXXXOLEDEVICE=none
export TSLIB_CONFFILE=/usr/local/etc/ts.conf
export POINTERCAL_FILE=/etc/pointercal
export TSLIB_CALIBFILE=/etc/pointercal
export QWS_MOUSE_PROTO=Tslib:/dev/input/event0
照著上面修改后,編譯下載還是有問題, 提示: ts_open: No such file or directory
Could not read calibration: "/etc/pointercal" ; 網上搜了很多,發(fā)現(xiàn)dev目錄下沒有input文件夾,只有event0,event1,event2,event3, 然后仔細看開發(fā)板帶的源碼,我的是event2,只要修改export TSLIB_TSDEVICE=/dev/event2,就可以 然后編譯下載,正常顯示! 上述只是個人經歷,本人初學,如有不懂參考高手文章: Linux移植隨筆:http://blog.csdn.net/glorin/article/details/6527598 移植tslib到開發(fā)板及部分問題解決 :http://blog.csdn.net/subfate/article/details/6319834
總結
以上是生活随笔為你收集整理的移植tslib到开发板及部分问题解决的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: 幼童闯祸致奶奶误吞水银 父亲处理方式获医
- 下一篇: 长安汽车永久下架远程泊车功能!车主不干了
