Russian Qt Forum

Qt => Вопросы новичков => Тема начата: demaker от Ноябрь 14, 2012, 15:16



Название: QWT
Отправлено: demaker от Ноябрь 14, 2012, 15:16
Скачал QWT делую сборку в Qt Creator-e

И что-то никак  :(
выдал кучу ошибок:
Код:
in file included from ..\Qwt\include/qwt_scldiv.h:14,
                 from ..\Qwt\include/qwt_autoscl.h:14,
                 from ..\Qwt\src\qwt_autoscl.cpp:11:
..\Qwt\include/qwt_array.h:25:23: error: qmemarray.h: No such file or directory
In file included from ..\Qwt\src\qwt_autoscl.cpp:10:
..\Qwt\include/qwt_math.h: In function 'void qwtShiftArray(T*, int, int)':
..\Qwt\include/qwt_math.h:162: error: there are no arguments to 'QABS' that depend on a template parameter, so a declaration of 'QABS' must be available
..\Qwt\include/qwt_math.h:162: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from ..\Qwt\include/qwt_autoscl.h:14,
                 from ..\Qwt\src\qwt_autoscl.cpp:11:
..\Qwt\include/qwt_scldiv.h: At global scope:
..\Qwt\include/qwt_scldiv.h:18: error: 'QMemArray' is not a template
..\Qwt\include/qwt_scldiv.h:18: error: explicit instantiation of non-template type 'QMemArray'
..\Qwt\include/qwt_scldiv.h:128: error: 'QMemArray' is not a template
..\Qwt\include/qwt_scldiv.h:128: error: field 'd_majMarks' has incomplete type
..\Qwt\include/qwt_scldiv.h:129: error: 'QMemArray' is not a template
..\Qwt\include/qwt_scldiv.h:129: error: field 'd_minMarks' has incomplete type
..\Qwt\include/qwt_scldiv.h: In member function 'uint QwtScaleDiv::minCnt() const':
..\Qwt\include/qwt_scldiv.h:91: error: 'd_minMarks' was not declared in this scope
..\Qwt\include/qwt_scldiv.h: In member function 'uint QwtScaleDiv::majCnt() const':
..\Qwt\include/qwt_scldiv.h:96: error: 'd_majMarks' was not declared in this scope
..\Qwt\include/qwt_scldiv.h: In member function 'double QwtScaleDiv::majMark(int) const':
..\Qwt\include/qwt_scldiv.h:105: error: 'd_majMarks' was not declared in this scope
..\Qwt\include/qwt_scldiv.h: In member function 'double QwtScaleDiv::minMark(int) const':
..\Qwt\include/qwt_scldiv.h:107: error: 'd_minMarks' was not declared in this scope
In file included from ..\Qwt\src\qwt_autoscl.cpp:11:
..\Qwt\include/qwt_autoscl.h: At global scope:
..\Qwt\include/qwt_autoscl.h:114: error: 'QMemArray' is not a template
..\Qwt\src\qwt_autoscl.cpp:131: error: 'QMemArray' is not a template
..\Qwt\src\qwt_autoscl.cpp: In member function 'void QwtAutoScale::adjust(const QMemArray&, int)':
..\Qwt\src\qwt_autoscl.cpp:133: error: invalid use of incomplete type 'const struct QMemArray'
..\Qwt\include/qwt_scldiv.h:18: error: forward declaration of 'const struct QMemArray'
..\Qwt\src\qwt_autoscl.cpp:133: error: invalid use of incomplete type 'const struct QMemArray'
..\Qwt\include/qwt_scldiv.h:18: error: forward declaration of 'const struct QMemArray'
..\Qwt\src\qwt_autoscl.cpp: In member function 'void QwtAutoScale::adjust(double, double, int)':
..\Qwt\src\qwt_autoscl.cpp:152: error: 'QMAX' was not declared in this scope
..\Qwt\src\qwt_autoscl.cpp:153: error: 'QMIN' was not declared in this scope
..\Qwt\src\qwt_autoscl.cpp: In member function 'void QwtAutoScale::buildLinScale()':
..\Qwt\src\qwt_autoscl.cpp:241: error: 'QABS' was not declared in this scope
..\Qwt\src\qwt_autoscl.cpp:241: error: 'QMAX' was not declared in this scope
..\Qwt\src\qwt_autoscl.cpp: In member function 'void QwtAutoScale::buildLogScale()':
..\Qwt\src\qwt_autoscl.cpp:315: error: 'QMAX' was not declared in this scope
..\Qwt\src\qwt_autoscl.cpp:332: error: 'QABS' was not declared in this scope
..\Qwt\src\qwt_autoscl.cpp: In member function 'void QwtAutoScale::setMargins(double, double)':
..\Qwt\src\qwt_autoscl.cpp:463: error: 'QMAX' was not declared in this scope
..\Qwt\src\qwt_autoscl.cpp: In member function 'void QwtAutoScale::setMaxMajor(int)':
..\Qwt\src\qwt_autoscl.cpp:479: error: 'QMAX' was not declared in this scope
..\Qwt\src\qwt_autoscl.cpp:480: error: 'QMIN' was not declared in this scope
..\Qwt\src\qwt_autoscl.cpp: In member function 'void QwtAutoScale::setMaxMinor(int)':
..\Qwt\src\qwt_autoscl.cpp:491: error: 'QMAX' was not declared in this scope
..\Qwt\src\qwt_autoscl.cpp:491: error: 'QMIN' was not declared in this scope
..\Qwt\src\qwt_autoscl.cpp: In member function 'void QwtAutoScale::setRange(double, double)':
..\Qwt\src\qwt_autoscl.cpp:512: error: 'QMIN' was not declared in this scope
..\Qwt\src\qwt_autoscl.cpp:513: error: 'QMAX' was not declared in this scope
..\Qwt\src\qwt_autoscl.cpp: In member function 'void QwtAutoScale::setReference(double)':
..\Qwt\src\qwt_autoscl.cpp:675: error: 'QMIN' was not declared in this scope
mingw32-make[1]: Leaving directory `D:/program files/qwt-build-desktop'
mingw32-make[1]: *** [src/obj/qwt_autoscl.o] Error 1
mingw32-make: *** [debug] Error 2

Из-за чего ???


Название: Re: QWT
Отправлено: demaker от Ноябрь 26, 2012, 10:02
 Все разобрался  :)