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)
- #sudo Apt-get Install SVN
2. Download QWT Source code
- # 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:
- Includepath += /usr/local/qwt-6. 0. 0/include
- 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
Copy the libwt_designer_plugin.so under the/qwt-xxx/designer/plugins/designer/ to /qtcrator-xxx/bin/designer
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
- 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