页次: 1
用V3S的BSP,修改fex如下
[ctp_para]
ctp_used = 1
ctp_name = "tsc2007"
ctp_twi_id = 0
ctp_twi_addr = 0x90
ctp_screen_max_x = 800
ctp_screen_max_y = 480
ctp_revert_x_flag = 0
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 1
ctp_int_port = port:PB02<6><default><default><default>
;ctp_int_port = port:PG04<6><default><default><default>
;ctp_wakeup = port:PG03<1><default><default><1>
重新编译下载后显示
[ 0.032039] twi_chan_cfg()341 - [twi0] has no twi_speed!
[ 0.032066] twi_chan_cfg()352 - [twi0] has no twi_regulator.
[ 0.032094] twi_chan_cfg()341 - [twi1] has no twi_speed!
[ 0.032117] twi_chan_cfg()352 - [twi1] has no twi_regulator.
QWSTslibMouseHandlerPrivate: ts_open() failed with error: 'No such file or directory'
Please check your tslib installation!
启用ts_calibration 显示
ts_setup: No such file or directory
自己mark一下:
1.widora_mangopi_r3_defconfig 增加QT5模块加载配置
2.make menuconfig 增加QT5模块,根据实际需要选择gui widget 等模块
3.time make -j8
4.在Qt Creator中配置交叉编译环境
5.随便加了一些空间,编译ok
6.把windos下fonts选了两种字体复制到SD卡 /usr/lib/fonts中,并把QT编译的程序复制到SD卡
7.插卡启动
8.export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
9. ./qt_test -qws
10.程序运行ok,电阻触摸屏也是ok的
使用SD卡测试ok,tiny200 r3板载的spi-nand还没使用,看nand的img有134M,用PhoenixSuit加载img文件时显示文件错误,望大神指导指导!
使用buildroot-tiny200增加QT5后使用qmake出错。步骤如下
1.增加QT5模块
/home/localhost/f1c200s/buildroot-tiny200/board/widora/mangopi/r3/widora_mangopi_r3_defconfig 增加一行widora_mangopi_r3_defconfig
2.重新make
3.进入目录/buildroot-tiny200/output/build/qt5base-5.12.8/examples/gui/analogclock
4.执行/home/localhost/f1c200s/buildroot-tiny200/output/host/bin/qmake 报错 Project ERROR: Unknown module(s) in QT: gui
5.新建C++文件,不包含界面执行qmake能编译正常
只要执行包含gui widget等界面相关就报找不到模块错误。
页次: 1