Ubuntu 16.04 Qt5安装qtcharts

来源:互联网 发布:mac osx 游戏 编辑:程序博客网 时间:2024/06/14 23:08

Qtcreator5.5安装qchart,首先下载qtcharts,然后进入该路径下,qmake一下。

$git clone https://github.com/qtproject/qtcharts.git

$cd qtcharts

$qmake

这时会出现问题是’qtConfig’ is nit a recongnized test function

这时输入:

$git checkout 5.7

出来:Brach 5.7 set up to track remote brach 5.7 from origin.

Switch to a new brach ‘5.7’

这时再输入

$ qmake

就没有问题了,然后就可以继续了,得等一会儿。

$make

$sudo make install

需要注意的是,安装qtcharts需要qt在5.4版本以上哟。

原创粉丝点击