qt编译及qwt开发环境搭建笔记
2014-08-13 20:48
483 查看
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:
Basic XLib functionality test failed! You might need to modify the include and library search paths by editing QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in <path>.
To avoid it check & install them with this command:
sudo apt-get install libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-dev
其他基本没什么要注意的
-----------------------------------------------------------------------------------------------------------------------------------------------------------
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
应注意以下要点,需要安装以下套件吗,否则编译后跟ubuntu的界面不兼容
Error while building on Ubuntu 12.*
Before building it on Ubuntu 12.* be sure you have these packages:
libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-devIf 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:
Basic XLib functionality test failed! You might need to modify the include and library search paths by editing QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in <path>.
To avoid it check & install them with this command:
sudo apt-get install libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-dev
其他基本没什么要注意的
-----------------------------------------------------------------------------------------------------------------------------------------------------------
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/Qte-4.7.2开发环境搭建及Micro2440的移植(笔记)
- Windows下Qt5搭建Android开发环境笔记
- 嵌入式Qt开发环境搭建及移植到开发板----Qt学习笔记
- QT学习笔记----搭建Qt4.7.3嵌入式开发环境
- window下搭建qt开发环境编译、引用ace
- [学习笔记]java基础Java8SE开发环境搭建、第一个Java Hello World、Java程序的编译与执行
- Fedora15下搭建QT开发环境及编译QT
- 嵌入式软件开发培训笔记——ARM架构Linux系统下交叉编译环境搭建、NFS、TFTP服务配置及Nandflash的读写
- Crazyflie2.0笔记四: eclipse编译、开发环境搭建
- windows7_QtCreator2.4.1_Qt4.8.0_Qwt6.0.1_msvc2010 编译环境搭建的总结
- Qt笔记(5)重新搭建Qt开发环境 一
- [学习笔记]java基础Java8SE开发环境搭建、第一个Java Hello World、Java程序的编译与执行
- Yocto开发笔记之《快速入门,环境搭建 & 编译》(QQ交流群:519230208)
- Crazyflie2.0笔记四: eclipse编译、开发环境搭建
- QTE QT 开发环境的搭建 及 编译
- windows7_QtCreator2.4.1_Qt4.8.0_Qwt6.0.1_msvc2010 编译环境搭建的总结
- OK6410 Linux开发环境搭建--编译以及ubuntu的使用方法学习笔记
- Linux-QT 开发环境搭建以及编译镜像
- Crazyflie2.0笔记四: eclipse编译、开发环境搭建
- Qt4.8.5 开发环境搭建没有生成makefile文件【编译出现的问题】