qt5.9在ubuntu 14.04上报错Could not determine which “make” command to run及cannot find -lGL
最近新装了ubuntu 14.04,然后装了新版本的QT5.9,但新建project运行编译是报错“Could not determine which “make” command to run。这是由于新安装的ubuntu缺少cmake及g++造成的。
通过命令
[c]
sudo apt-get install cmake g++
[/c]
进行安装。
然后在”选型“里的”构建和运行“这一项,对”构建套件 Kit“进行重新设置。
广告
编译完成后运行,又报一个错”cannot find -lGL“
[c]
sudo apt-get install libgl1-mesa-dev
[/c]
安装对应的包即可解决问题。