PDA

View Full Version : How to install QWT



ppham1504
10th April 2013, 22:23
Hello all,

I am currently having trouble installing the QWT package on my Windows 7 PC. Precisely, I have no idea how to install it. The link to this package is http://qwt.sourceforge.net/ . I've also looked at their installation instructions at http://qwt.sourceforge.net/qwtinstall.html but still have no luck getting it to work. Can anyone help me?

Thanks,

alainstgt
10th April 2013, 23:27
which compiler and IDE do you intend to use?

Alain

ppham1504
10th April 2013, 23:51
Hello Alain,

I want to use the PyScripter and Python 2.7. I am attempting to recreate this project: http://danstrother.com/2011/01/15/reflow-oven-controller/ . The author has written a python GUI program to do this. However, this Python program requires the QWT package, if I don't have this package then when PyScripter tries to run the program, it'll give me the "ImportError: No module named Qwt5". I have spent the past couple hours to search for a solution but to no avail.

Regards,
Phuc

ChrisW67
11th April 2013, 01:30
Qwt is a C++ library. You will also need the Python wrapper from http://pyqwt.sourceforge.net/

ppham1504
11th April 2013, 03:00
Here is what I have done so far
1. Download and install QT 5.0.1 (MinGw) to: "C:\Qt\Qt5.0.1"
2. Download and extract Qwt 6.1 RC3 to: "C:\qwt-6.1-rc3"
3. Add "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin" to your systems path variable (qmake.exe is located here)
4. Add "C:\Qt\Qt5.0.1\Tools\MinGW\bin" to your systems path variable (mingw32-make.exe is located here)
5. Open a command line (cmd) and navigate to: "C:\qwt-6.1-rc3"
6. Type: "qmake" (This command won't prompt any msg so don't worry)

However, the next step is where I'm having trouble:
7. Type: "mingw32-make" => this is where I have been stuck for the past couple hours. I've included the output error from make here for you to see

8922

Please take a look at it b/c I couldn't figure this out and google hasn't been able too either.

Thanks,
Phuc Pham

ChrisW67
11th April 2013, 03:46
Remove the paths from the system PATH. Start a command prompt from the Start menu under Qt\5.0.1 (or 5.0.2 your post is confused). Run the qmake and build from there.

ppham1504
11th April 2013, 04:12
Hello Chris,

thanks for your suggestion. However, it didn't work. I've attached the errors report along with this post. Please take a look and tell me what you think. Btw, I installed QT 5.0.2, not 5.0.1. Sorry for the confusion.

8923

Regards,
Phuc

Uwe
11th April 2013, 06:35
The Qwt python bindings have never been ported to Qwt 6, so forget about Qt 5: your combination is Qt 4.8 + Qwt 5.2.

Uwe

ppham1504
12th April 2013, 21:04
Hello uwe,

Thank you for your suggestion. I think I was able to install QWT and the PyQWT. However, I still got the same error below when trying to run the Python file. Can you help me out with this?

8930