1。/home/fengyang/alientek/qt-fs/videodisplay +opencv-arm/mainwindow.h:9: error: opencv2/imgproc.hpp: No such file or directory #include<opencv2/imgproc.hpp>
解决办法:
在*.pro文件中增加vector文件对应的路径。如下:
INCLUDEPATH +=/home/XXX/alientek/opencv-3.4.1/install/include (opencv make install 产生的文件的头文件路径)
LIBS +=/home/fengyang/alientek/opencv-3.4.1/install/lib/libopencv_* (opencv make install 产生的文件的库文件路径)
2.连接开发板在线调试qt,按下按键后出现如下错误
tslib: Selected device is not a touchscreen (must support ABS event type)
解决办法:
在开发板/etc/profile添加4个环境变量
在qt的环境变量中增改
export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event1:/dev/input/event0
export QT_QPA_EVDEV_KEYBOARD_PARAMETERS=/dev/input/event0:/dev/input/event1
在tslib的环境变量中增改
#tslib 环境变量
export TSLIB_ROOT=/usr/lib/arm-tslib
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event1:/dev/input/event0
export QWS_MOUSE_PROTO=/dev/input/event1:/dev/input/event0
export TSLIB_CONFFILE=
T
S
L
I
B
R
O
O
T
/
e
t
c
/
t
s
.
c
o
n
f
e
x
p
o
r
t
T
S
L
I
B
P
L
U
G
I
N
D
I
R
=
TSLIB_ROOT/etc/ts.conf export TSLIB_PLUGINDIR=
TSLIBROOT/etc/ts.confexportTSLIBPLUGINDIR=TSLIB_ROOT/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
特别注意:export TSLIB_TSDEVICE=/dev/input/event1:/dev/input/event0
export QWS_MOUSE_PROTO=/dev/input/event1:/dev/input/event0 因为我是两个按键则需要添加两个event0和event0,因为我只添加了一个,所以出错
3.其他在线调试出现QFontDatabase: Cannot find font directory /home/fengyang/alientek/qt-everywhere-src-5.12.9/arm-qt/lib/fonts.q界面中没有文字
解决方案:
检查/etc/profile环境变量,
export QT_ROOT=/usr/lib/arm-qt
export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event1:/dev/input/event0
export QT_QPA_EVDEV_KEYBOARD_PARAMETERS=/dev/input/event0:/dev/input/event1
#export QT_QPA_FONTDIR= FONTDIR=/usr/share/fonts
export QT_QPA_PLATFORM_PLUGIN_PATH=
Q
T
R
O
O
T
/
p
l
u
g
i
n
s
e
x
p
o
r
t
Q
T
Q
P
A
P
L
A
T
F
O
R
M
=
l
i
n
u
x
f
b
:
t
t
y
=
/
d
e
v
/
f
b
0
e
x
p
o
r
t
Q
T
P
L
U
G
I
N
P
A
T
H
=
QT_ROOT/plugins export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0 export QT_PLUGIN_PATH=
QTROOT/pluginsexportQTQPAPLATFORM=linuxfb:tty=/dev/fb0exportQTPLUGINPATH=QT_ROOT/plugins
export LD_LIBRARY_PATH=
Q
T
R
O
O
T
/
l
i
b
:
QT_ROOT/lib:
QTROOT/lib:QT_ROOT/plugins/platforms
export QML2_IMPORT_PATH=$QT_ROOT/qml
export QT_QPA_FB_TSLIB=1
其中有一句export QT_QPA_FONTDIR= FONTDIR=/usr/share/fonts 改为export QT_QPA_FONTDIR=/usr/share/fonts
4.安装后无法打开VLC,报如下错误:
VLC is not supposed to be run as root. Sorry.
If you need to use real-time priorities and/or privileged TCP ports
you can use ./vlc_back-wrapper (make sure it is Set-UID root and
cannot be run by non-trusted users first).
使用以下三个命令:
1.cp /usr/bin/vlc /usr/bin/vlc-backup
2.needle=$(objdump -d /usr/bin/vlc | grep euid | tail -1 | awk '{print “\x”$2"\x"$3"\x"$4"\x"$5"\x"KaTeX parse error: Expected 'EOF', got '}' at position 3: 6;}̲') 3.sed -ir "…needle/\xb8\x01\x00\x00\x00/" /usr/bin/vlc
就可以播放了。