0. 环境
- 香橙派4,电源,CH340模块
- Orangepi4_3.0.6_ubuntu_focal_desktop_xfce_linux5.10.43
1. 安装
sudo apt update
sudo apt install qt5-default qtcreator
验证
qmake -v
启动ui
export DISPLAY=:0.0 #(这行设置在HDMI屏显示)
qtcreator
2. 尝试用VNC调试
VNC模式打开 qtcreator
export QT_QPA_PLATFORM=vnc
qtcreator -platform vnc:size=1280x1024,port=12345
显示是可以显示,但是鼠标没反应。