[Interest] problem building qwt in windows

Alex Malyushytskyy alexmalvtk at gmail.com
Tue May 8 02:29:26 CEST 2012


I would recommend looking for help on Qwt forum,
it is separated product and has nothing to do with Qt besides it is using it.
It is like asking such question on Widows forums,
cause your have Windows installed.

As for building problem, just from my experience QWT pro file is too
complicated and visual studio  addon
does not create a correct equivalent.

I suggest you either use qmake from command line as recommended,
or convert pro file from /src subfolder (or each subfolder ) one by one instead.


Alex

On Tue, May 1, 2012 at 4:28 PM, caius ligarius <caius9090 at gmail.com> wrote:
> I installed Qwt4.2.0 to "C:\Qt" folder
>
> I currently have Qt version 4.6.1 installed in "C:\Qt\4.6.1", which I
> have been using successfully with VS2008.
>
> Next, to build Qwt I open "c:\Qt\Qwt\qwt.pro" in VS2008 using the Qt
> plugin. After this when I try to compile this .pro file I get the
> following errors. Any idea what I can do to fix this? (All includes,
> libs etc. seem to be correctly configured since I open the .pro file
> using the Qt plugin).
>
> 1>------ Build started: Project: qwt, Configuration: Debug Win32 ------
> 1>Moc'ing qwt_wheel.h...
> 1>Moc'ing qwt_thermo.h...
> 1>Moc'ing qwt_slider.h...
> 1>Moc'ing qwt_sldbase.h...
> 1>Moc'ing qwt_scale.h...
> 1>Moc'ing qwt_push_button.h...
> 1>Moc'ing qwt_plot_zoomer.h...
> 1>Moc'ing qwt_plot_picker.h...
> 1>Moc'ing qwt_plot_canvas.h...
> 1>Moc'ing qwt_plot.h...
> 1>Moc'ing qwt_picker.h...
> 1>Moc'ing qwt_legend.h...
> 1>Moc'ing qwt_knob.h...
> 1>Moc'ing qwt_dyngrid_layout.h...
> 1>Moc'ing qwt_dial.h...
> 1>Moc'ing qwt_counter.h...
> 1>Moc'ing qwt_compass.h...
> 1>Moc'ing qwt_analog_clock.h...
> 1>Compiling...
> 1>moc_qwt_wheel.cpp
> 1>c:\qt\qwt\include\qwt_sldbase.h(53) : error C2061: syntax error :
> identifier 'Orientation'
> 1>c:\qt\qwt\include\qwt_sldbase.h(54) : error C2146: syntax error :
> missing ';' before identifier 'orientation'
> 1>c:\qt\qwt\include\qwt_sldbase.h(54) : error C4430: missing type
> specifier - int assumed. Note: C++ does not support default-int
> 1>c:\qt\qwt\include\qwt_sldbase.h(54) : error C4430: missing type
> specifier - int assumed. Note: C++ does not support default-int
> 1>c:\qt\qwt\include\qwt_sldbase.h(54) : warning C4183: 'orientation':
> missing return type; assumed to be a member function returning 'int'
> 1>moc_qwt_thermo.cpp
> 1>c:\qt\qwt\include\qwt_array.h(25) : fatal error C1083: Cannot open
> include file: 'qmemarray.h': No such file or directory
> 1>moc_qwt_slider.cpp
> 1>c:\qt\qwt\include\qwt_array.h(25) : fatal error C1083: Cannot open
> include file: 'qmemarray.h': No such file or directory
> 1>moc_qwt_sldbase.cpp
> 1>c:\qt\qwt\src\moc\debug\../../../include/qwt_sldbase.h(53) : error
> C2061: syntax error : identifier 'Orientation'
> 1>c:\qt\qwt\src\moc\debug\../../../include/qwt_sldbase.h(54) : error
> C2146: syntax error : missing ';' before identifier 'orientation'
> 1>c:\qt\qwt\src\moc\debug\../../../include/qwt_sldbase.h(54) : error
> C4430: missing type specifier - int assumed. Note: C++ does not
> support default-int
> 1>c:\qt\qwt\src\moc\debug\../../../include/qwt_sldbase.h(54) : error
> C4430: missing type specifier - int assumed. Note: C++ does not
> support default-int
> 1>c:\qt\qwt\src\moc\debug\../../../include/qwt_sldbase.h(54) : warning
> C4183: 'orientation': missing return type; assumed to be a member
> function returning 'int'
> 1>.\src\moc\Debug\moc_qwt_sldbase.cpp(113) : error C2061: syntax error
> : identifier 'Orientation'
> 1>.\src\moc\Debug\moc_qwt_sldbase.cpp(122) : error C2061: syntax error
> : identifier 'Orientation'
> 1>moc_qwt_scale.cpp
> 1>c:\qt\qwt\include\qwt_array.h(25) : fatal error C1083: Cannot open
> include file: 'qmemarray.h': No such file or directory
> 1>moc_qwt_push_button.cpp
> 1>c:\qt\qwt\src\moc\debug\../../../include/qwt_push_button.h(36) :
> error C4430: missing type specifier - int assumed. Note: C++ does not
> support default-int
> 1>c:\qt\qwt\src\moc\debug\../../../include/qwt_push_button.h(36) :
> error C2143: syntax error : missing ',' before '&'
> 1>c:\qt\qwt\src\moc\debug\../../../include/qwt_push_button.h(41) :
> error C2146: syntax error : missing ';' before identifier 'textFormat'
> 1>c:\qt\qwt\src\moc\debug\../../../include/qwt_push_button.h(41) :
> error C4430: missing type specifier - int assumed. Note: C++ does not
> support default-int
> 1>c:\qt\qwt\src\moc\debug\../../../include/qwt_push_button.h(41) :
> error C4430: missing type specifier - int assumed. Note: C++ does not
> support default-int
> 1>c:\qt\qwt\src\moc\debug\../../../include/qwt_push_button.h(41) :
> warning C4183: 'textFormat': missing return type; assumed to be a
> member function returning 'int'
> 1>c:\qt\qwt\src\moc\debug\../../../include/qwt_push_button.h(42) :
> error C2061: syntax error : identifier 'TextFormat'
> 1>.\src\moc\Debug\moc_qwt_push_button.cpp(78) : error C2061: syntax
> error : identifier 'TextFormat'
> 1>.\src\moc\Debug\moc_qwt_push_button.cpp(79) : error C2061: syntax
> error : identifier 'Alignment'
> 1>.\src\moc\Debug\moc_qwt_push_button.cpp(86) : error C2061: syntax
> error : identifier 'TextFormat'
> 1>.\src\moc\Debug\moc_qwt_push_button.cpp(87) : error C2061: syntax
> error : identifier 'Alignment'
> 1>moc_qwt_plot_zoomer.cpp
>
> Thank You,
> Caius
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list