PDA

View Full Version : Qwt installation in Qt 5.5.0



Navi
31st July 2015, 06:25
Hi,
i am using Qt5.5.0 and try to install Qwt 5.0.2

qmake
mingw32-make
i got this error

cd src\ && ( if not exist Makefile C:\Qt\Qt5.5.0\5.5\mingw492_32\bin\qmake.exe
:\Users\naveeniya\Desktop\qwt-5.0.2\qwt-5.0.2\src\src.pro -o Makefile ) && ming
32-make -f Makefile
mingw32-make[1]: Entering directory 'C:/Users/naveeniya/Desktop/qwt-5.0.2/qwt-5
0.2/src'
mingw32-make -f Makefile.Release
mingw32-make[2]: Entering directory 'C:/Users/naveeniya/Desktop/qwt-5.0.2/qwt-5
0.2/src'
g++ -c -pipe -fno-keep-inline-dllexport -O2 -Wall -Wextra -frtti -fexceptions -
threads -DUNICODE -DQT_DLL -DQWT_DLL -DQWT_MAKEDLL -DQT_NO_DEBUG -DQT_GUI_LIB -
QT_CORE_LIB -I. -IC:\Qt\Qt5.5.0\5.5\mingw492_32\include -IC:\Qt\Qt5.5.0\5.5\min
w492_32\include\QtGui -IC:\Qt\Qt5.5.0\5.5\mingw492_32\include\QtANGLE -IC:\Qt\Q
5.5.0\5.5\mingw492_32\include\QtCore -Imoc -IC:\Qt\Qt5.5.0\5.5\mingw492_32\mksp
cs\win32-g++ -o obj\qwt_abstract_scale_draw.o qwt_abstract_scale_draw.cpp
In file included from qwt_abstract_scale_draw.cpp:18:0:
qwt_scale_map.h:86:5: error: 'QT_STATIC_CONST' does not name a type
QT_STATIC_CONST double LogMin;
^
qwt_scale_map.h:87:5: error: 'QT_STATIC_CONST' does not name a type
QT_STATIC_CONST double LogMax;
^
Makefile.Release:1928: recipe for target 'obj/qwt_abstract_scale_draw.o' failed
mingw32-make[2]: *** [obj/qwt_abstract_scale_draw.o] Error 1
mingw32-make[2]: Leaving directory 'C:/Users/naveeniya/Desktop/qwt-5.0.2/qwt-5.
.2/src'
Makefile:34: recipe for target 'release' failed
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory 'C:/Users/naveeniya/Desktop/qwt-5.0.2/qwt-5.
.2/src'
makefile:40: recipe for target 'sub-src-make_first' failed
mingw32-make: *** [sub-src-make_first] Error 2

kindly provide me help to solve this......

Uwe
31st July 2015, 08:29
i am using Qt5.5.0 and try to install Qwt 5.0.2
Qwt 5.x doesn't work with Qt 5, you need at least Qwt 6.x.

Qwt 5.0.2 has been released 2007 - is this really the version you want to use ?

Uwe

Navi
31st July 2015, 11:56
when i try to install Qwt 6.0.1
qmake
mingw32-make
i got this error...


cd src\ && ( if not exist Makefile C:\Qt\Qt5.5.0\5.5\mingw492_32\bin\qmake.exe C
:\Users\naveeniya\Desktop\qwt-6.0.1\src\src.pro -o Makefile ) && mingw32-make -f
Makefile
mingw32-make[1]: Entering directory 'C:/Users/naveeniya/Desktop/qwt-6.0.1/src'
mingw32-make -f Makefile.Release all
mingw32-make[2]: Entering directory 'C:/Users/naveeniya/Desktop/qwt-6.0.1/src'
compiling qwt_abstract_scale_draw.cpp
In file included from qwt_abstract_scale_draw.cpp:14:0:
qwt_scale_map.h:104:5: error: 'QT_STATIC_CONST' does not name a type
QT_STATIC_CONST double LogMin;
^
qwt_scale_map.h:105:5: error: 'QT_STATIC_CONST' does not name a type
QT_STATIC_CONST double LogMax;
^
Makefile.Release:3072: recipe for target 'release/qwt_abstract_scale_draw.o' fai
led
mingw32-make[2]: *** [release/qwt_abstract_scale_draw.o] Error 1
mingw32-make[2]: Leaving directory 'C:/Users/naveeniya/Desktop/qwt-6.0.1/src'
Makefile:38: recipe for target 'release-all' failed
mingw32-make[1]: *** [release-all] Error 2
mingw32-make[1]: Leaving directory 'C:/Users/naveeniya/Desktop/qwt-6.0.1/src'
makefile:40: recipe for target 'sub-src-make_first-ordered' failed
mingw32-make: *** [sub-src-make_first-ordered] Error 2

Uwe
31st July 2015, 18:16
QT_STATIC_CONST has been removed in Qt 5.4 - but why starting with old versions of Qwt ( 6.0.1 is fro 2011 ), when trying to build with a brand new Qt 5.5 ?
Use Qwt 6.1.2 and it will work without problems.

Uwe

Navi
1st August 2015, 05:22
i installed Qwt 6.1.2 sucessfully.
and set the environment variable as

Variable name ->QT_PLUGIN_PATH
Variable value ->C:\Qt\Qwt-6.1.2\plugins
Variable name -> QMAKEFEATURES
Variable value ->C:\Qt\Qwt-6.1.2\features


when i open Qt designer ,Qwt plugin is added...
But when i open Qt creator, Qwt plugin is not included in design ..how do i fix this?

VALE61
10th August 2015, 16:30
I only have experience on windows platform.
For me it's a simple copy of the plugin to my plugin dir.

e.g.
My designer.exe is installed in f:\qt\5.5.\mingw492_32\bin.
My plugin dir is f:\qt\5.5.\mingw492_32\plugins.
My qwt installation dir is f:\qt\qwt-6.3.0-svn

So I copy f:\qt\qwt-6.3.0-svn\plugins\designer\qwt_designer_plugin.dll to f:\qt\5.5.\mingw492_32\plugins\designer

When designer starts, you can see the plugin status in menu Help->About Plugins.

Hope this helps

jg30
19th August 2015, 13:30
Hi,
I have the same problem, i can see the Qwt Widget in QT Designer but not in QtCreator.
I use QT5.4, QWT6.1.2 and mingn

Do you have the solution?

Uwe
19th August 2015, 15:11
Your version of the creator is not compatible and you have to build Qwt twice: one version for your application development and the other one compatible with the creator to be able to load the plugin.
Always have in mind, that the creator is a Qt application itself and is compiled/linked against specific Qt libs. Then loading a plugin that has been built against different versions of those Qt libs can't work.

Uwe

Tong14
6th September 2015, 14:10
Hi all,

When i tried to installed qwt I got this errors. How do I solve it?

Thank you very much.

Configuration: Win8(64), MSVS 2012, QT5.5.0(64)
Trouble: a some problems with linking.

<code>
Generating Code...
Compiling...
moc_qwt_analog_clock.cpp
moc_qwt_compass.cpp
moc_qwt_counter.cpp
moc_qwt_dial.cpp
moc_qwt_knob.cpp
moc_qwt_slider.cpp
moc_qwt_thermo.cpp
moc_qwt_wheel.cpp
Generating Code...
linking ..\lib\qwt.dll
Qt5OpenGL.lib(Qt5OpenGL.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
NMAKE : fatal error U1077: 'echo' : return code '0x458'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
</code>