Qwt 6.0.1 のビルドが失敗する
次のメッセージが表示される
qwt-6.0.1> mingw32-make qwt_clipper.cpp: In instantiation of 'Polygon QwtPolygonClipper<Polygon, Rect, Point, T>::clipPolygon(const Polygon&, bool) const [with Polygon = QPolygon; Rect = QRect; Point = QPoint; T = int]': qwt_clipper.cpp:449:55: required from here qwt_clipper.cpp:232:78: error: 'qMemCopy' was not declared in this scope qMemCopy( p.data(), points1.data(), points1.size() * sizeof( Point ) ); ^ qwt_clipper.cpp: In instantiation of 'Polygon QwtPolygonClipper<Polygon, Rect, Point, T>::clipPolygon(const Polygon&, bool) const [with Polygon = QPolygonF; Rect = QRectF; Point = QPointF; T = double]': qwt_clipper.cpp:465:55: required from here qwt_clipper.cpp:232:78: error: 'qMemCopy' was not declared in this scope qwt_clipper.cpp: In instantiation of 'QwtClip::PointBuffer<Point>::~PointBuffer() [with Point = QPoint]': qwt_clipper.cpp:220:28: required from 'Polygon QwtPolygonClipper<Polygon, Rect, Point, T>::clipPolygon(const Polygon&, bool) const [with Polygon = QPolygon; Rect = QRect; Point = QPoint; T = int]' qwt_clipper.cpp:449:55: required from here qwt_clipper.cpp:140:29: error: 'qFree' was not declared in this scope qFree( m_buffer ); ^ qwt_clipper.cpp: In instantiation of 'void QwtClip::PointBuffer<Point>::setPoints(int, const Point*) [with Point = QPoint]': qwt_clipper.cpp:223:9: required from 'Polygon QwtPolygonClipper<Polygon, Rect, Point, T>::clipPolygon(const Polygon&, bool) const [with Polygon = QPolygon; Rect = QRect; Point = QPoint; T = int]' qwt_clipper.cpp:449:55: required from here qwt_clipper.cpp:148:62: error: 'qMemCopy' was not declared in this scope qMemCopy( m_buffer, points, m_size * sizeof( Point ) ); ^ qwt_clipper.cpp: In instantiation of 'QwtClip::PointBuffer<Point>::~PointBuffer() [with Point = QPointF]': qwt_clipper.cpp:220:28: required from 'Polygon QwtPolygonClipper<Polygon, Rect, Point, T>::clipPolygon(const Polygon&, bool) const [with Polygon = QPolygonF; Rect = QRectF; Point = QPointF; T = double]' qwt_clipper.cpp:465:55: required from here qwt_clipper.cpp:140:29: error: 'qFree' was not declared in this scope qFree( m_buffer ); ^ qwt_clipper.cpp: In instantiation of 'void QwtClip::PointBuffer<Point>::setPoints(int, const Point*) [with Point = QPointF]': qwt_clipper.cpp:223:9: required from 'Polygon QwtPolygonClipper<Polygon, Rect, Point, T>::clipPolygon(const Polygon&, bool) const [with Polygon = QPolygonF; Rect = QRectF; Point = QPointF; T = double]' qwt_clipper.cpp:465:55: required from here qwt_clipper.cpp:148:62: error: 'qMemCopy' was not declared in this scope qMemCopy( m_buffer, points, m_size * sizeof( Point ) ); ^ qwt_clipper.cpp: In instantiation of 'void QwtClip::PointBuffer<Point>::reserve(int) [with Point = QPoint]': qwt_clipper.cpp:134:31: required from 'QwtClip::PointBuffer<Point>::PointBuffer(int) [with Point = QPoint]' qwt_clipper.cpp:220:28: required from 'Polygon QwtPolygonClipper<Polygon, Rect, Point, T>::clipPolygon(const Polygon&, bool) const [with Polygon = QPolygon; Rect = QRect; Point = QPoint; T = int]' qwt_clipper.cpp:449:55: required from here qwt_clipper.cpp:194:52: error: 'qRealloc' was not declared in this scope m_buffer, m_capacity * sizeof( Point ) ); ^ qwt_clipper.cpp: In instantiation of 'void QwtClip::PointBuffer<Point>::reserve(int) [with Point = QPointF]': qwt_clipper.cpp:134:31: required from 'QwtClip::PointBuffer<Point>::PointBuffer(int) [with Point = QPointF]' qwt_clipper.cpp:220:28: required from 'Polygon QwtPolygonClipper<Polygon, Rect, Point, T>::clipPolygon(const Polygon&, bool) const [with Polygon = QPolygonF; Rect = QRectF; Point = QPointF; T = double]' qwt_clipper.cpp:465:55: required from here qwt_clipper.cpp:194:52: error: 'qRealloc' was not declared in this scope mingw32-make[2]: *** [release/qwt_clipper.o] Error 1 mingw32-make[1]: *** [release-all] Error 2 mingw32-make: *** [sub-src-make_first-ordered] Error 2
環境
- Windows 7 Pro. x64
- Qt 5.3.2
- Qwt 6.0.1
原因
Qwt 6.0 は Qt5 をサポートしていないため。
対処
Qwt 6.1 を使う。