PDA

View Full Version : install Qwt Qtcreator



oswalidos
6th March 2009, 21:01
hello,

i work under windows xp , Qt 4.5 and Qt creator .
i need to display some 2D plots ,since i'm using Qt for my GUI ,i decide to try Qwt .
now i want to install Qwt on my environnement ,as a Qt beginner ,i read install instructions but i didn't understand .
someone can give me some links or how to install Qwt ?

thanks in advance .

oswalidos
7th March 2009, 00:14
I tried to follow installl instructions of qwt ,i succes to generate .exe for exemples.
I move source files to other directory and try to compile :
qmake -project
qmake
now i have to change makefile but how to do it ???
i followed http://www.qtcentre.org/forum/f-qwt-23/t-qwt-installation-please-help-solved-18905.html but it doesn't work !

oswalidos
8th March 2009, 20:37
here (http://www.qtcentre.org/forum/f-qwt-23/t-problem-using-qwt-511-with-qt-45-under-windows-xp-19310.html) is how to modify your *.pro
enjoy ! :)

mpsoft
8th January 2011, 21:10
hi to all user
at last i can find how can install and use "qwt" with "Qt creator" without any recompile creator !
it is very simple but need to remind one point
for using qwt you don't need to see it in qt creator widget list(left panel) BECAUSE:
1- you can create your form in qt "Qt Designer" .
2. add form to your project.
3. customize project pro file.
4.Compile and enjoy.

first download qwt-6.0.0-rc4
from sourcefoge, if it is not same as above version not important.
Do this step by step
1.)copy and unzip download file in C:\qwt-6.0.0-rc4
2.)open “C:\qwt-6.0.0-rc4\examples.pro”
change “include( ../qwtconfig.pri ) “ =>
” include(qwtconfig.pri ) “
3.)Open “C:\qwt-6.0.0-rc4\ textengines\textengines.pro”
change “include( ../qwtconfig.pri ) “ =>
” include(qwtconfig.pri ) “
4.)Open “C:\qwt-6.0.0-rc4\ qwt.pro” with “Qt Creator” Compile it in DEBUG mode
5.)if you see only some worning it is usually so don’t care;
6.) After compile complete
7.)goto “C:\ qwt-build-desktop \plugins\designer\designer”
8.)Copy “libqwt_designer_plugin.a” and “qwt_designer_plugin.dll” paste to
“[Qt install path]\qt\plugins\designer”
9.)goto “C:\ qwt-build-desktop\lib”
10)copy “qwt.dll” to “[Qt install path]\qt\bin”
11)copy “C:\qwt-build-desktop\lib\*” to “C:\qwt-6.0.0-rc4 \lib\*”
Now you can use QWT Widget in your form at “Qt Designer”;
Now important place begin;
1.)create new project in qt and in wizard uncheck “Generate form”
2.)create your form in Qt Designer and save it in your project directory.
3.)Add Your designed form to your project.
4.)add this lines to your project pro file
INCLUDEPATH += C:/qwt-6.0.0-rc4/src
win32:LIBS += C:/qwt-6.0.0-rc4/lib/libqwtd.a
win32:QMAKE_POST_LINK = copy /Y C:\qwt-6.0.0-rc4\lib\qwtd.dll $(DESTDIR)
CONFIG +=qwt

If you run in debug mode red word stay
If you run in Release mode then “libqwtd=libqwt” and “qwtd=qwt”:cool:

SNK111
11th January 2011, 12:06
Hi
I have tried the steps you described here but I get an error as can be seen in the following compiler output. Can you help?

Running build steps for project qwt...
Configuration unchanged, skipping qmake step.
Starting: "C:/NokiaQtSDK/mingw/bin/mingw32-make.exe" -w
mingw32-make: Entering directory `C:/Documents and Settings/shahriar/Desktop/qwt-build-simulator'

cd src\ && C:/NokiaQtSDK/mingw/bin/mingw32-make -f Makefile

mingw32-make[1]: Entering directory `C:/Documents and Settings/shahriar/Desktop/qwt-build-simulator/src'

C:/NokiaQtSDK/mingw/bin/mingw32-make -f Makefile.Debug all

mingw32-make[2]: Entering directory `C:/Documents and Settings/shahriar/Desktop/qwt-build-simulator/src'

mingw32-make[2]: Nothing to be done for `all'.

mingw32-make[2]: Leaving directory `C:/Documents and Settings/shahriar/Desktop/qwt-build-simulator/src'

C:/NokiaQtSDK/mingw/bin/mingw32-make -f Makefile.Release all

mingw32-make[2]: Entering directory `C:/Documents and Settings/shahriar/Desktop/qwt-build-simulator/src'

mingw32-make[2]: Nothing to be done for `all'.

mingw32-make[2]: Leaving directory `C:/Documents and Settings/shahriar/Desktop/qwt-build-simulator/src'

mingw32-make[1]: Leaving directory `C:/Documents and Settings/shahriar/Desktop/qwt-build-simulator/src'

cd textengines\ && C:/NokiaQtSDK/mingw/bin/mingw32-make -f Makefile

mingw32-make[1]: Entering directory `C:/Documents and Settings/shahriar/Desktop/qwt-build-simulator/textengines'

mingw32-make[1]: Nothing to be done for `first'.

mingw32-make[1]: Leaving directory `C:/Documents and Settings/shahriar/Desktop/qwt-build-simulator/textengines'

cd designer\ && C:/NokiaQtSDK/mingw/bin/mingw32-make -f Makefile

mingw32-make[1]: Entering directory `C:/Documents and Settings/shahriar/Desktop/qwt-build-simulator/designer'

C:/NokiaQtSDK/mingw/bin/mingw32-make -f Makefile.Debug all

mingw32-make[2]: Entering directory `C:/Documents and Settings/shahriar/Desktop/qwt-build-simulator/designer'

linking plugins\designer\qwt_designer_plugin.dll

mingw32-make[2]: Leaving directory `C:/Documents and Settings/shahriar/Desktop/qwt-build-simulator/designer'

mingw32-make[1]: Leaving directory `C:/Documents and Settings/shahriar/Desktop/qwt-build-simulator/designer'

mingw32-make: Leaving directory `C:/Documents and Settings/shahriar/Desktop/qwt-build-simulator'

c:/nokiaqtsdk/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lQtDesignerd

collect2: ld returned 1 exit status

mingw32-make[2]: *** [plugins\designer\qwt_designer_plugin.dll] Error 1

mingw32-make[1]: *** [debug-all] Error 2

mingw32-make: *** [sub-designer-make_default-ordered] Error 2

The process "C:/NokiaQtSDK/mingw/bin/mingw32-make.exe" exited with code %2.
Error while building project qwt (target: Qt Simulator)
When executing build step 'Make'

Badeand
8th April 2011, 12:49
hi to all user
at last i can find how can install and use "qwt" with "Qt creator" without any recompile creator !
it is very simple but need to remind one point
for using qwt you don't need to see it in qt creator widget list(left panel) BECAUSE:
1- you can create your form in qt "Qt Designer" .
2. add form to your project.
3. customize project pro file.
4.Compile and enjoy.

first download qwt-6.0.0-rc4
from sourcefoge, if it is not same as above version not important.
Do this step by step
1.)copy and unzip download file in C:\qwt-6.0.0-rc4
2.)open “C:\qwt-6.0.0-rc4\examples.pro”
change “include( ../qwtconfig.pri ) “ =>
” include(qwtconfig.pri ) “
3.)Open “C:\qwt-6.0.0-rc4\ textengines\textengines.pro”
change “include( ../qwtconfig.pri ) “ =>
” include(qwtconfig.pri ) “
4.)Open “C:\qwt-6.0.0-rc4\ qwt.pro” with “Qt Creator” Compile it in DEBUG mode
5.)if you see only some worning it is usually so don’t care;
6.) After compile complete
7.)goto “C:\ qwt-build-desktop \plugins\designer\designer”
8.)Copy “libqwt_designer_plugin.a” and “qwt_designer_plugin.dll” paste to
“[Qt install path]\qt\plugins\designer”
9.)goto “C:\ qwt-build-desktop\lib”
10)copy “qwt.dll” to “[Qt install path]\qt\bin”
11)copy “C:\qwt-build-desktop\lib\*” to “C:\qwt-6.0.0-rc4 \lib\*”
Now you can use QWT Widget in your form at “Qt Designer”;
Now important place begin;
1.)create new project in qt and in wizard uncheck “Generate form”
2.)create your form in Qt Designer and save it in your project directory.
3.)Add Your designed form to your project.
4.)add this lines to your project pro file
INCLUDEPATH += C:/qwt-6.0.0-rc4/src
win32:LIBS += C:/qwt-6.0.0-rc4/lib/libqwtd.a
win32:QMAKE_POST_LINK = copy /Y C:\qwt-6.0.0-rc4\lib\qwtd.dll $(DESTDIR)
CONFIG +=qwt

If you run in debug mode red word stay
If you run in Release mode then “libqwtd=libqwt” and “qwtd=qwt”:cool:

Hi, I did as you said but on step 5) I get an error: "Failed to start application: Starting executable failed: J:/Name/qwt-build-desktop/qwtbuild.exe: No such file or directory."

Please help

Uwe
8th April 2011, 13:23
Hi, I did as you said but on step ...
You will find much more useful threads in the archive than this one.

Uwe

Badeand
8th April 2011, 13:43
You will find much more useful threads in the archive than this one.

Uwe

Any suggestions? :P

chriskon149
14th November 2011, 06:15
Thanks for the help mpsoft! Your tutorial worked great!

Just a note: I had to use Qt's Widget Promotion to use Qwt with Qt Designer (embedded in Qt Creator). It works with Qwt 6.0.1 and Qt 4.7.4 (the vanilla SDK download).

Thanks again!
Chris

qtgn
19th November 2011, 21:40
I get the same error:

error: cannot find -lQtDesignerd

Using:
QT4.7.4
QTCreator 2.3.0
Qwt 6.0.1

I followed the procedure above, but it does not work?!
Anybody any idea?
Help is greatly appreciated!

qtgn
21st November 2011, 00:23
I found a solution today:

- Installed the new bundle: 1.1.4 (instead of 1.1.3).
- Did the installation from a 'qwt shell' ( Start -> QT SDK -> Desktop -> QT 4.7....

Now it works!
Not sure which of the 2 did the job.