qt5.9在ubuntu 14.04上报错Could not determine which “make” command to run及cannot find -lGL

 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“进行重新设置。

对编译器这一项的C及C++选型选择正确的GCC版本。

编译完成后运行,又报一个错”cannot find -lGL“

[c]
sudo apt-get install libgl1-mesa-dev
[/c]
安装对应的包即可解决问题。

吴川斌

吴川斌

Leave a Reply