1. Download QWT Source code
Link to: http://sourceforge.jp/projects/sfnet_qwt/releases/
Select the version you want to download.
2. Unzip to the location where you want to place the folder.
3. Go to the folder, press and hold "shift" key to right click, select "Open Command Window Here", enter the cmd command window (there are many ways to enter, this is the most convenient).
4. Enter commands in sequence
Qmake Qwt.pro
Mingw32-make Error:
Error "Missing separator" in build qwt-6
Mingw32-make Install
I found an other-qtcentre.org/archive/index.php/t-36498.html to build QWT:1.qmake.exe Qwt.pro-spec win32-g++2.mingw32-make3.mingw32-make Install
If you want to use a example program, you also need to enter
CD examples
Qmake Examples.pro-spec win32-g++
Mingw32-make
The compilation is complete.
(Note: If the input qmake discovers that "make is not an internal or external command and is not a running program or batch file," Add QT to the computer's environment variable.) Specifically will be "X:\Qt\5.X.X (version) \mingw48_32\bin; X:\Qt\Tools\mingw48_32\bin "Add to environment variable" Path ", reopen cmd, Test qmake and Mingw32-make success)
5. If the QWT installation directory is not changed, the C:\Qwt-6.1.1 folder will appear.
5.1 Copy the LIBQWT.A and libqwtd.a under C:\Qwt-6.1.1\lib to X:\Qt\5.X.X\mingw48_32\lib.
5.2 Copy the Qwt.dll and Qwtd.dll under C:\Qwt-6.1.1\lib to X:\Qt\5.X.X\mingw48_32\bin.
5.3 Copy the C:\Qwt-6.1.1\plugins\designer Qwt_designer_plugin.dll to X:\Qt\5.X.X\mingw48_32\plugins\designer.
5.4 Create a new QWT folder under X:\Qt\5.X.X\mingw48_32\ Include and copy all files under C:\Qwt-6.1.1\include to the new QWT folder.
6. New QT project, join in. Pro file
Defines + = Qt_dll Qwt_dll
LIBS + =-L "X:\Qt\5.X.X\mingw48_32\lib"-lqwtd
LIBS + =-L "X:\Qt\5.X.X\mingw48_32\lib"-lqwt
Includepath + = X:\QT\5.X.X\MINGW48_32\INCLUDE\QWT
Then you need to use what QWT control to add its header file to the line.
7. This allows you to use QWT in your project, and if you need a graphical drag-and-drop, you can open the. ui file using Designer.
This is all done.
QWT using MinGW to compile the installation process (Windows):