Notes on building QT compilation and qwt Development Environment

Source: Internet
Author: User

Qt compilation and installation see http://qt-project.org/doc/qt-4.8/install-x11.html

 

Pay attention to the following points. Do you need to install the following kits? Otherwise, the compilation will be incompatible with the Ubuntu interface.

Error while building on Ubuntu 12. * Before building it on Ubuntu 12. * be sure you have these packages:
  1. Libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandroid-dev libxrender-Dev

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:

  1. 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:

  1. Sudo apt-Get install libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandroid-dev libxrender-Dev

Nothing else to pay attention

Certificate -----------------------------------------------------------------------------------------------------------------------------------------------------------

Qwt installation is also available in the installation manual

Note that you need to add the configuration when using qwt. The method is as follows:

When using qmake it can be encoded from the application project file in 2 different ways:

Adding qwt as qmake feature

When using the qmake feature mechanic 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 already ented 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

For more information about qmake, see the https://qt-project.org/doc/qt-5/qmake-advanced-usage.html#adding-new-configuration-features.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.