PDA

View Full Version : build qwt



Lokl
15th June 2016, 18:21
Hi everyone,
My environment
- mingwx64 gcc 4.8.1 expt sljlj rev2
- Qt 5.6 compiled with my mingw
- qwt-6.1.3 sources
- virtual machine windows 7 x64

this is my first post. I've been trying to build qwt and during the mingw32-make command I couldn't pass through qsvgrenderer.h. I read hips of topics and stuff but no one lead me to the succeed. I know compatibility problem with qwt 6.1.3 and Qt5.6 but that sucks doing some workaround for using any kind of framework.

cmd.exe
-------------------------------------------------------
C:\qwt-6.1.3>mingw32-make
cd src\ && ( if not exist Makefile D:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\bin\qmake.exe C:\qwt-6.1.3\
\src.pro -spec win32-g++ -o Makefile ) && mingw32-make -f Makefile
mingw32-make[1]: Entering directory 'C:/qwt-6.1.3/src'
mingw32-make -f Makefile.Debug all
mingw32-make[2]: Entering directory 'C:/qwt-6.1.3/src'
compiling qwt_symbol.cpp
qwt_symbol.cpp:20:26: fatal error: qsvgrenderer.h: No such file or directory
#include <qsvgrenderer.h>
^
compilation terminated.
Makefile.Debug:11229: recipe for target 'debug/qwt_symbol.o' failed
mingw32-make[2]: *** [debug/qwt_symbol.o] Error 1
mingw32-make[2]: Leaving directory 'C:/qwt-6.1.3/src'
Makefile:38: recipe for target 'debug-all' failed
mingw32-make[1]: *** [debug-all] Error 2
mingw32-make[1]: Leaving directory 'C:/qwt-6.1.3/src'
Makefile:41: recipe for target 'sub-src-make_first-ordered' failed
mingw32-make: *** [sub-src-make_first-ordered] Error 2
-------------------------------------------------------

thx

ChrisW67
15th June 2016, 22:05
Does the missing file exist anywhere in your Qt source?

Lokl
16th June 2016, 09:00
I looked everywhere in Qwt then Qt and doesn't exist.
qsvgrenderer.h is include in 3 qwt sources code :
-qwr_plot_svgitem.cpp
-qwt_symbol.cpp
-and I guess an example playground\graphicscale\canvas.cpp
I want to write a line in qwt makefile to ignore qsvgrenderer.h

Uwe
16th June 2016, 09:57
Disable "QwtSvg" in qwtconfig.pri or rebuild Qt including SVG support.

Uwe

Lokl
16th June 2016, 13:07
Thanks a lot Uwe and ChrisW67. I'm compiling and it works so far.

Added after 27 minutes:

Got another one. How could I keep compiling with mingw32-make and ignore those messing files ?
__________________________________________________ ___________
qwt_designer_plugin.cpp:17:40: fatal error: QDesignerFormEditorInterface: No such file or directory
#include <QDesignerFormEditorInterface>
^
compilation terminated.
Makefile:26350: recipe for target 'qwt_designer_plugin.o' failed
mingw32-make[1]: *** [qwt_designer_plugin.o] Error 1
mingw32-make[1]: Leaving directory 'C:/qwt-6.1.3/designer'
Makefile:170: recipe for target 'sub-designer-make_first-ordered' failed
mingw32-make: *** [sub-designer-make_first-ordered] Error 2
__________________________________________________ ___________

I looked for everywhere in .pri then no QDesignerFormEditorInterface to disable. Is it possible to keep compiling at where it stop ?

Uwe
16th June 2016, 16:07
Disable "QwtDesigner" in qwtconfig.pri or rebuild Qt including designer support.

Come on,
Uwe

Lokl
17th June 2016, 08:38
thanks Uwe. I compiled somethings but a least with no so much lib :)

Uwe
19th June 2016, 08:43
If you want to use the Qwt designer plugin you do it usually from the creator. And then you often need to have a second version of Qwt installed - one that is built with the Qt version, the creator itself had been built with.

Uwe