Install QWT under Ubuntu

Source: Internet
Author: User

Reprinted from: http://blog.chinaunix.net/uid-20717410-id-256767.html

This is especially appropriate for use with QT IDE developers, as opposed to official instructions.

The following are references:

Although the official network said as long as qmake make and made INSTALL can be but I am in Ubuntu under the QT-SDK to do the compilation environment. So it can't be used. I have one way: 1. Install SVN first (because QWT is version controlled with SVN and can only be downloaded with SVN)
    1. #sudo Apt-get Install SVN
2. Download QWT Source code
    1. # SVN Co HTTPS://qwt. svn.sourceforge. NET/svnroot/qwt/trunk/qwt
3. Open QtcreatorOpen projects-> Find the Qwt.pro file->open in the extracted qwt-6.0.0. 4.build->clean All->run Qmake. The function of clean all is to prevent you from running files that failed to compile previously, and this step mainly generates the makefile file. 5.rebuild QWT. 6. Enter the qwt-6.0.0 directory and execute the command #sudo make install. 7. In the QWT project document, add:
    1. Includepath += /usr/local/qwt-6. 0. 0/include
    2. LIBS +=- l"/usr/local/qwt-6.0.0/lib/" -lqwt
8. Copy the library file of the compiled QWT control to the designer directory of Qt Creator, and the files in Lib will be copied to the corresponding folder. Editor's note: The specific operation is
    1. Copy the libwt_designer_plugin.so under the/qwt-xxx/designer/plugins/designer/ to /qtcrator-xxx/bin/designer

    2. Copy the four files under the/usr/local/qwt-xxx/lib directory to /opt/qtcreator-xxx/lib/qtcreator/and /opt/.../qt/474/gcc/ LIB two directories below

    1. CP ~/QWT-6. 0. 0/designer/plugins/designer/* ~/qtsdk-2010 ./bin/designer/
9. Reopen the Qtcreator and you can see the QWT control inside the Qdesigner.

Install QWT under Ubuntu

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.