PDA

View Full Version : how to install qwt to QT creator?



ethanfeng
10th March 2011, 00:39
My qt and qwt version:
Qt Creator 2.0.1 Based on Qt 4.7.0 (32 bit),
qwt-6.0.0-rc5

They are the latest version.
I have read many tutorials about how to install qwt ,but all of them had been written by several years ago.I have tried on my qt but it doesn't work.

One of the errors is: they said if I use qt creator to compile qwt.pro, it will generate two files: qwt5.dll and libqwt5.a. But I find nothing but qwtd.dll and libqwtd.dll in that folder.

I wonder if the version is different,the operational steps are different.

Have somebody install qwt to qt creator of the latest version successful?
Please,I beg you to help.Thanks a lot!

ChrisW67
10th March 2011, 05:25
Sure. What is the problem? "It doesn't work" is not a useful summary of the problem.


One of the errors is: they said if I use qt creator to compile qwt.pro, it will generate two files: qwt5.dll and libqwt5.a. But I find nothing but qwtd.dll and libqwtd.dll in that folder.
qwt5.dll and libqwt5.a are release libraries for Qwt. This is what you get if you build the 5.2.1 release set from the 5.2.1 subversion branch. The build defaults to release because that how most people will use it.

If you choose to build using a pre-release set of sources for Qwt 6 then:
qwt.dll and libqwt.a are release libraries
qwtd.dll and libqwtd.a are debug libraries

I just checked out a fresh Qwt from SVN trunk and built it:


d:\> svn co https://qwt.svn.sourceforge.net/svnroot/qwt/trunk/qwt qwt-svn
d:\> cd qwt-svn
d:\qwt-svn> qmake
d:\qwt-svn> mingw32-make
...
d:\qwt-svn> dir /b lib
libqwt.a // release lib
libqwtd.a // debug lib
libqwtmathml.a
libqwtmathmld.a
qwt.dll // release lib
qwtd.dll // debug lib
qwtmathml.dll
qwtmathmld.dll


If you want to use the Designer plugin then you need to match the compiler used to build Designer with the one used to build Qwt.

cooper
11th March 2011, 01:26
Hi ethanfeng,

here is a link to install qwt. and people replied that they success installed qwt by following this tutorial. and it's not written several years ago :)
http://studyard.blogspot.com/2010/10/install-qwt-problem.html

i hope it works for you.

ethanfeng
12th March 2011, 10:22
thank you very much!!
i finally success install it!

dare5421
17th March 2011, 08:56
Hi ethanfeng
Can you tell me how do u install it?
thank u

ChrisW67
18th March 2011, 06:03
There are the instructions in the Qwt source, the linked tutorial, and my earlier post showing exactly how you obtain, build and install the Qwt 6.0 pre-release source from Subversion. Assuming that you are using the Qt SDK for Windows:

Unpack the source tar ball for Qwt 5.2.1
Edit qwtconfig.pri to adjust it to your needs, particularly the install path.
Start a Qt Command Prompt
Change directory to the source directory
qmake
mingw32-make # If you are using MSVC then the make command is "nmake"
mingw32-make install

Badeand
7th April 2011, 14:52
Hi ethanfeng,

here is a link to install qwt. and people replied that they success installed qwt by following this tutorial. and it's not written several years ago :)
http://studyard.blogspot.com/2010/10/install-qwt-problem.html

i hope it works for you.

Hi, that forum is closed, and only viewable from invite :(

cooper
30th April 2012, 22:20
Hi, that forum is closed, and only viewable from invite :(

I have googled it, and found it has been redirect to here:
http://oestudyard.blogspot.co.nz/2010/10/install-qwt-in-ubuntu.html

ChrisW67
30th April 2012, 22:27
There are perfectly good instructions in the Qwt distribution (https://qwt.svn.sourceforge.net/svnroot/qwt/branches/qwt-6.0/INSTALL) and on the Qwt web site (http://qwt.sourceforge.net/qwtinstall.html). You do not need a third party blog which is more than likely unusably specific or just plain wrong. You just need a modicum of understanding of your tools and the supplied instructions.