qt的编译安装参见http://qt-project.org/doc/qt-4.8/install-x11.html
应注意以下要点,需要安装以下套件吗,否则编译后跟ubuntu的界面不兼容
If you don’t have them (it usually happens if you are on the clear or semi-clear ubuntu) in your system and you try to build Qt you will get this error:
To avoid it check & install them with this command:
其他基本没什么要注意的
-----------------------------------------------------------------------------------------------------------------------------------------------------------
qwt安装也是参见安装手册
以下注意一下,使用QWT时需要添加其配置,添加方法如下
When using qmake it can included from the application project file in 2 different ways:
Adding Qwt as qmake feature
When using the qmake feature mechanism you can bind a special version of qmake to a special installation of Qwt without having to add this dependency to the application project. How to add Qwt as feature is documented in the qmake docs.
After adding Qwt as a feature f.e on Linux as a persistent property ....
qmake -set QMAKEFEATURES ${QWT_ROOT}/features
.. the following line can be added to the application project file:
CONFIG += qwt
关于qmake对上述feature的解释详见https://qt-project.org/doc/qt-5/qmake-advanced-usage.html#adding-new-configuration-features
qt编译及qwt开发环境搭建笔记,布布扣,bubuko.com
原文:http://www.cnblogs.com/lwp513/p/3911138.html