Qt Creator

安装Qt Creator

sudo -i

apt-get update
apt-get upgrade
apt list --installed | grep -v oldstable | cut -d/ -f1 | xargs apt-mark unhold

apt-get install gcc g++ clang make-guile build-essential qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qtcreator qt5*

配置环境

vi ~/.bashrc,加入以下配置并保存

export LIBGL_ALWAYS_SOFTWARE=1
export LD_LIBRARY_PATH=/usr/lib/aarch64-linux-gnu/

重新source环境

neardi@LPA3588:~$ source ~/.bashrc

启动Qt Creator

neardi@LPA3588:~$ qtcreator

../../_images/tool_qtcreator.png

FAQs

点击QT5图标无法启动

vi ~/.profile,加入以下配置并重启

export LIBGL_ALWAYS_SOFTWARE=1
export LD_LIBRARY_PATH=/usr/lib/aarch64-linux-gnu/