在windows 系统下一直使用vnote 笔记软件(一个markdown 语法的笔记软件),它是基于QT
查看是否安装QT
在终端上输入命令:
qmake -v
结果:
chr@chr-R700:~/vnote.git$ qmake -v
qmake: could not find a Qt installation of ''
提示没有安装
安装QT
-- 这个方法ppa 没有通过
sudo add-apt-repository ppa:beineri/opt-qt591-trusty -y
sudo apt update -qq
sudo apt -y install qt591base qt59webengine
sudo apt -y install qt59webchannel qt59location qt59tools qt59translations
source /opt/qt /bin/qt-env.sh
另外的方法:
下载安装文件
http://download.qt.io/archive/qt/5.9/5.9.7/
qt-opensource-linux-x64-5.9.7.run
chmod a+x qt-opensource-linux-x64-5.9.7.run
./qt-opensource-linux-x64-5.9.7.run
配置文件
/usr/share/qtchooser/ 添加一个default 文件
如果没有qtchooser目录 通过 apt install qtchooser 来时行安装
内容如下:
/opt/Qt5.9.7/5.9.7/gcc_64/bin
/opt/Qt5.9.7/5.9.7
path ~.bashrc
PATH=${PATH}:/opt/Qt5.9.7/5.9.7/gcc_64/bin:/opt/Qt5.9.7/Tools/QtCreator/bin
执行
~/.bashrc