• 6919阅读
  • 5回复

于fedora10中安装qwt6.0 make install 后出现错误,跪求原因分析及解决办法!! [复制链接]

上一主题 下一主题
离线leolio
 
只看楼主 倒序阅读 楼主  发表于: 2011-05-03
make[1]: Entering directory `/opt/qttest/qwt/branches/qwt-6.0/src'
g++ -c -pipe -Wall -W -g -fPIC  -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/lib/qt-3.3/include -Imoc/ -o obj/qwt_abstract_scale_draw.o qwt_abstract_scale_draw.cpp
In file included from qwt_scale_div.h:14,
                 from qwt_abstract_scale_draw.h:14,
                 from qwt_abstract_scale_draw.cpp:10:
qwt_interval.h:15:20: error: qdebug.h: No such file or directory
In file included from qwt_abstract_scale_draw.cpp:11:
qwt_math.h:27:19: error: qmath.h: No such file or directory
In file included from qwt_abstract_scale_draw.cpp:13:
qwt_painter.h:18:19: error: qline.h: No such file or directory
In file included from qwt_scale_div.h:14,
                 from qwt_abstract_scale_draw.h:14,
                 from qwt_abstract_scale_draw.cpp:10:
qwt_interval.h:47: error: ISO C++ forbids declaration of ‘QFlags’ with no type
qwt_interval.h:47: error: expected ‘;’ before ‘<’ token
qwt_interval.h:51: error: ‘BorderFlags’ has not been declared
qwt_interval.h:54: error: ‘BorderFlags’ has not been declared
qwt_interval.h:63: error: ‘BorderFlags’ has not been declared
qwt_interval.h:64: error: ‘BorderFlags’ does not name a type
qwt_interval.h:99: error: ‘BorderFlags’ does not name a type
qwt_interval.h:102: error: ‘Q_MOVABLE_TYPE’ has not been declared
qwt_interval.h:102: error: expected constructor, destructor, or type conversion before ‘;’ token
qwt_interval.h: In constructor ‘QwtInterval::QwtInterval()’:
qwt_interval.h:113: error: class ‘QwtInterval’ does not have any field named ‘d_borderFlags’
qwt_interval.h: At global scope:
qwt_interval.h:127: error: ‘BorderFlags’ has not been declared
qwt_interval.h: In constructor ‘QwtInterval::QwtInterval(double, double, int)’:
qwt_interval.h:130: error: class ‘QwtInterval’ does not have any field named ‘d_borderFlags’
qwt_interval.h: At global scope:
qwt_interval.h:142: error: ‘BorderFlags’ has not been declared
qwt_interval.h: In member function ‘void QwtInterval::setInterval(double, double, int)’:
qwt_interval.h:146: error: ‘d_borderFlags’ was not declared in this scope
qwt_interval.h: At global scope:
qwt_interval.h:155: error: variable or field ‘setBorderFlags’ declared void
qwt_interval.h:155: error: ‘BorderFlags’ was not declared in this scope
qwt_interval.h:164: error: ‘BorderFlags’ in class ‘QwtInterval’ does not name a type
qwt_interval.h: In member function ‘bool QwtInterval::operator==(const QwtInterval&) const’:
qwt_interval.h:238: error: ‘d_borderFlags’ was not declared in this scope
qwt_interval.h:238: error: ‘const class QwtInterval’ has no member named ‘d_borderFlags’
qwt_interval.h: In member function ‘bool QwtInterval::isValid() const’:
qwt_interval.h:272: error: ‘d_borderFlags’ was not declared in this scope
qwt_interval.h: At global scope:
qwt_interval.h:290: error: expected constructor, destructor, or type conversion before ‘(’ token
In file included from qwt_abstract_scale_draw.h:14,
                 from qwt_abstract_scale_draw.cpp:10:
qwt_scale_div.h:86: error: ‘Q_MOVABLE_TYPE’ has not been declared
qwt_scale_div.h:86: error: expected constructor, destructor, or type conversion before ‘;’ token
In file included from qwt_abstract_scale_draw.h:15,
                 from qwt_abstract_scale_draw.cpp:10:
qwt_text.h:120: error: ISO C++ forbids declaration of ‘QFlags’ with no type
qwt_text.h:120: error: expected ‘;’ before ‘<’ token
qwt_text.h:138: error: ISO C++ forbids declaration of ‘QFlags’ with no type
qwt_text.h:138: error: expected ‘;’ before ‘<’ token
qwt_text.h:183: error: ‘QSizeF’ does not name a type
qwt_text.h:213: error: expected constructor, destructor, or type conversion before ‘(’ token
In file included from qwt_abstract_scale_draw.cpp:10:
qwt_abstract_scale_draw.h:53: error: ISO C++ forbids declaration of ‘QFlags’ with no type
qwt_abstract_scale_draw.h:53: error: expected ‘;’ before ‘<’ token
qwt_abstract_scale_draw.h:137: error: expected constructor, destructor, or type conversion before ‘(’ token
In file included from qwt_abstract_scale_draw.cpp:11:
qwt_math.h: In function ‘int qwtFuzzyCompare(double, double, double)’:
qwt_math.h:125: error: ‘qAbs’ was not declared in this scope
qwt_math.h: In function ‘bool qwtFuzzyGreaterOrEqual(double, double)’:
qwt_math.h:139: error: ‘qFuzzyCompare’ was not declared in this scope
qwt_math.h: In function ‘bool qwtFuzzyLessOrEqual(double, double)’:
qwt_math.h:144: error: ‘qFuzzyCompare’ was not declared in this scope
qwt_math.h: In function ‘double qwtRoundF(double)’:
qwt_math.h:167: error: ‘::floor’ has not been declared
qwt_math.h: In function ‘double qwtFloorF(double)’:
qwt_math.h:173: error: ‘::floor’ has not been declared
qwt_math.h: In function ‘double qwtCeilF(double)’:
qwt_math.h:179: error: ‘::ceil’ has not been declared
In file included from qwt_abstract_scale_draw.cpp:13:
qwt_painter.h: At global scope:
qwt_painter.h:50: error: expected ‘,’ or ‘...’ before ‘&’ token
qwt_painter.h:50: error: ISO C++ forbids declaration of ‘QPointF’ with no type
qwt_painter.h:69: error: expected ‘,’ or ‘...’ before ‘&’ token
qwt_painter.h:69: error: ISO C++ forbids declaration of ‘QPointF’ with no type
qwt_painter.h:70: error: expected ‘,’ or ‘...’ before ‘&’ token
qwt_painter.h:70: error: ISO C++ forbids declaration of ‘QLineF’ with no type
qwt_painter.h:70: error: ‘static void QwtPainter::drawLine(QPainter*, int)’ cannot be overloaded
qwt_painter.h:69: error: with ‘static void QwtPainter::drawLine(QPainter*, int)’
qwt_painter.h:74: error: expected ‘,’ or ‘...’ before ‘*’ token
qwt_painter.h:74: error: ISO C++ forbids declaration of ‘QPointF’ with no type
qwt_painter.h:77: error: expected ‘,’ or ‘...’ before ‘&’ token
qwt_painter.h:77: error: ISO C++ forbids declaration of ‘QPointF’ with no type
qwt_painter.h: In static member function ‘static void QwtPainter::drawPoint(QPainter*, double, double)’:
qwt_painter.h:104: error: ‘QPointF’ was not declared in this scope
qwt_painter.h: In static member function ‘static void QwtPainter::drawLine(QPainter*, double, double, double, double)’:
qwt_painter.h:111: error: ‘QPointF’ was not declared in this scope
qwt_painter.h: At global scope:
qwt_painter.h:115: error: expected ‘,’ or ‘...’ before ‘&’ token
qwt_painter.h:115: error: ISO C++ forbids declaration of ‘QLineF’ with no type
qwt_painter.h: In static member function ‘static void QwtPainter::drawLine(QPainter*, int)’:
qwt_painter.h:117: error: ‘line’ was not declared in this scope
qwt_painter.h: At global scope:
qwt_painter.h:115: warning: unused parameter ‘QLineF’
In file included from qwt_abstract_scale_draw.cpp:14:
qwt_scale_map.h:107: error: ‘QPointF’ does not name a type
qwt_scale_map.h:109: error: ‘QPointF’ does not name a type
qwt_scale_map.h: In member function ‘double QwtScaleMap::pDist() const’:
qwt_scale_map.h:162: error: ‘qAbs’ was not declared in this scope
qwt_scale_map.h: In member function ‘double QwtScaleMap::sDist() const’:
qwt_scale_map.h:170: error: ‘qAbs’ was not declared in this scope
qwt_scale_map.h: In member function ‘double QwtScaleMap::transform(double) const’:
qwt_scale_map.h:187: error: ‘log’ was not declared in this scope
qwt_scale_map.h: At global scope:
qwt_scale_map.h:211: error: expected constructor, destructor, or type conversion before ‘operator’
qwt_abstract_scale_draw.cpp:37: error: ‘ScaleComponents’ does not name a type
qwt_abstract_scale_draw.cpp: In constructor ‘QwtAbstractScaleDraw::PrivateData::PrivateData()’:
qwt_abstract_scale_draw.cpp:28: error: ‘components’ was not declared in this scope
qwt_abstract_scale_draw.cpp: In member function ‘void QwtAbstractScaleDraw::enableComponent(QwtAbstractScaleDraw::ScaleComponent, bool)’:
qwt_abstract_scale_draw.cpp:81: error: ‘class QwtAbstractScaleDraw::PrivateData’ has no member named ‘components’
qwt_abstract_scale_draw.cpp:83: error: ‘class QwtAbstractScaleDraw::PrivateData’ has no member named ‘components’
qwt_abstract_scale_draw.cpp: In member function ‘bool QwtAbstractScaleDraw::hasComponent(QwtAbstractScaleDraw::ScaleComponent) const’:
qwt_abstract_scale_draw.cpp:92: error: ‘class QwtAbstractScaleDraw::PrivateData’ has no member named ‘components’
qwt_abstract_scale_draw.cpp: In member function ‘virtual void QwtAbstractScaleDraw::draw(QPainter*, const QPalette&) const’:
qwt_abstract_scale_draw.cpp:172: error: ‘class QPen’ has no member named ‘setCosmetic’
qwt_abstract_scale_draw.cpp:178: error: ‘Text’ is not a member of ‘QPalette’
qwt_abstract_scale_draw.cpp:183: warning: comparison between signed and unsigned integer expressions
qwt_abstract_scale_draw.cpp:185: error: no match for ‘operator[]’ in ‘majorTicks
qwt_abstract_scale_draw.cpp:187: error: no match for ‘operator[]’ in ‘majorTicks
qwt_abstract_scale_draw.cpp:198: error: ‘WindowText’ is not a member of ‘QPalette’
qwt_abstract_scale_draw.cpp:207: warning: comparison between signed and unsigned integer expressions
qwt_abstract_scale_draw.cpp:209: error: no match for ‘operator[]’ in ‘ticks
qwt_abstract_scale_draw.cpp:223: error: ‘WindowText’ is not a member of ‘QPalette’
qwt_abstract_scale_draw.cpp: In member function ‘double QwtAbstractScaleDraw::maxTickLength() const’:
qwt_abstract_scale_draw.cpp:350: error: ‘qMax’ was not declared in this scope
qwt_abstract_scale_draw.cpp: In member function ‘const QwtText& QwtAbstractScaleDraw::tickLabel(const QFont&, double) const’:
qwt_abstract_scale_draw.cpp:394: error: ‘class QwtText’ has no member named ‘textSize’
make[1]: *** [obj/qwt_abstract_scale_draw.o] Error 1
make[1]: Leaving directory `/opt/qttest/qwt/branches/qwt-6.0/src'
make: *** [sub-src] Error 2

离线leolio
只看该作者 1楼 发表于: 2011-05-03
哎~~~自己顶起!~~求大虾指点啊~~~
离线dbzhang800

只看该作者 2楼 发表于: 2011-05-03
Qwt6 已经不再支持 Qt3。

请考虑使用Qt4或者Qwt5
离线leolio
只看该作者 3楼 发表于: 2011-05-03
回 2楼(dbzhang800) 的帖子
您好~我是在用Qt4.7 Creator   build之后在qwt-6.0的目录下make install的,明白了,应该是因为Fedora10默认安装的Qt3,大虾您看我应该如何更改设置或者怎么办呢?谢谢啦!!
离线leolio
只看该作者 4楼 发表于: 2011-05-03
飘过的大虾留点儿文字啊~~
离线leolio
只看该作者 5楼 发表于: 2011-05-05
%>_<%~~~~~大虾,求救哇~~~~~~~~~~~~~
快速回复
限100 字节
 
上一个 下一个