Featured image of post Install Qt5 and OpenCV on Ubuntu KV260

Install Qt5 and OpenCV on Ubuntu KV260

Install Qt5

sudo apt-get install qt5-default

Install OpenCV

sudo apt-get install libopencv-dev

Install google-glog

sudo apt-get install libgoogle-glog-dev

Install xlnx-config

sudo snap install xlnx-config --classic --channel=1.x

Install xlnx-nlp-smartvision

Method #1 (slowly)

sudo snap install xlnx-nlp-smartvision

Method #2

cd /var/lib/snapd/snaps
sudo snap install xlnx-nlp-smartvision_6.snap --dangerous

Chack and install

xlnx-config -q
sudo xlnx-config --install nlp-smartvision

Install vncserver

apt-get install tightvncserver

// 運行以下命令,備份VNC的xstartup配置文件
cp ~/.vnc/xstartup ~/.vnc/xstartup.bak

// 運行以下命令,修改VNC的xstartup配置文件
vi ~/.vnc/xstartup

// 內容給為
#!/bin/sh
export XKL_XMODMAP_DISABLE=1
export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"
export XDG_MENU_PREFIX="gnome-flashback-"
gnome-session --session=gnome-flashback-metacity \
--disable-acceleration-check &

// 運行以下命令,關閉已啟動的VNC。
vncserver -kill :1

// 啟動
vncserver -geometry 1920x1080 :1

refer

https://hackmd.io/PoC1WP-5RyqX_tu2WeYLDg