PDA

View Full Version : cannot find -lqwtd error



mobucl
10th March 2011, 16:39
Hi

After some searching and trial and error i managed to install QWT and get it running in QT creator (well i can see the widgets in the form window anyhow) I did it like this:

1. installed the qt SDK 2010.05 from the qt.nokia website
2. downloaded qwt-6.0.0-rc5.zip
3. extracted the zip to C:\Qt\2010.05\qt\qwt-6.0.0-rc5
4. using the QT command prompt i navigate to this folder and use:
qmake.exe qwt.pro -spec win32-g++ -r CONFIG+=release
mingw32-make release
5. copy libqwt_designer_plugin.a and qwt_designer_plugin.dll
from: C:\Qt\2010.05\qt\qwt-6.0.0-rc5\designer\plugins\designer
to C:\Qt\2010.05\qt\plugins\designer
6. copy libqwt.a and libqwtmathml.a
from C:\Qt\2010.05\qt\qwt-6.0.0-rc5\lib
to C:\Qt\2010.05\qt\lib
7. copy qwtmathml.dll and qwt.dll
from C:\Qt\2010.05\qt\qwt-6.0.0-rc5\lib
to C:\Qt\2010.05\qt\bin
8. Download qt-creator-2.0.1-src and put in C:
9. From the QT creator command prompt
qmake.exe C:\qt-creator-2.0.1-src\qtcreator.pro -spec win32-g++ -r CONFIG+=release
mingw32-make release

Ok so far so good but now when i load the sinusplot.pro project for example and try to run it all i get is

cannot find -lqwtd
collect2: ld returned 1 exit status

Searching the forums i tried to add some library's to the .pro file and also set the environmental variable, see this thread:

http://www.qtcentre.org/threads/36066-Installing-Qwt-6.0.0-rc4-on-Windows?highlight=-lqwtd

But i still get the same problem.

Can someone please help!

Thanks

Uwe
11th March 2011, 10:04
You have built a release version of Qwt only, but then you want to link against a debug version.

Uwe

mobucl
14th March 2011, 10:12
Thanks Uwe,

So do i need to use the debug version or can i use the release version for my code?

How do i make the debug version?

and

How do i link to the release version?

Sorry if these are simple questions but im still quite new to QT and C++,

Many thanks

StasiekPL
15th March 2011, 14:15
Uwe I love you and I love a level of your knowledge, it is amazing, but never never I can understand what do you want to tell us. Please share with us your unlimited knowledge. Write something useful. Write to us step by step, how to install qwt in QT Creator. We know, that You can do that. We will be greatful.

I have newest Qt Creator, QWT, Windows 7. I open with Qt Creator qwt.pro, change project location in .pri file. I get lib folder with .dll and .a and what should I do now

StasiekPL
16th March 2011, 08:22
Use this: http://johnhforrest.com/2010/09/installing-qwt-on-windows/
Use his qwtconfig.pri, only change destination
Use Qt Creator -> run qmake, rebuild qwt.pro
Use Qt Command from Start->All Programs menu, use qmake, mingw32-make

Copy libqwtd.a "from C:\Qt\2010.05\qt\qwt-6.0.0-rc5\lib to C:\Qt\2010.05\qt\lib"

all examples are working well but with a lot of errors during building project

StasiekPL
6th May 2011, 12:59
Now, it works correctly with standard files - you only change directory folder.
I installed newest QtSDK, downloaded qwt 6.0.0, built qwt.pro (changed .pri directory) and it works :)