Results 1 to 2 of 2

Thread: error compiling for QtCppIntegration

  1. #1
    Join Date
    Apr 2009
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default error compiling for QtCppIntegration

    I am trying to build qwt-5.2 for Qt build with QtCppIntegration namespace
    ./configure -release -qtnamespace QtCppIntegration -qtlibinfix CppIntegration
    and I have compilation errors telling me that qwt also has to be built for QtCppIntegration:
    Can someone someone tell me how? I checked qmake manual, but could find a clue to how set the namespace there.

    qwt_text.h:162: error: expected `,' or `...' before '&' token
    qwt_text.h:162: error: ISO C++ forbids declaration of `QColor' with no type
    qwt_text.h:163: error: `QColor' does not name a type
    qwt_text.h:165: error: `QColor' does not name a type
    qwt_text.h:167: error: expected `,' or `...' before '&' token
    qwt_text.h:167: error: ISO C++ forbids declaration of `QPen' with no type
    qwt_text.h:168: error: `QPen' does not name a type
    qwt_text.h:170: error: expected `,' or `...' before '&' token
    qwt_text.h:170: error: ISO C++ forbids declaration of `QBrush' with no type
    qwt_text.h:171: error: `QBrush' does not name a type
    qwt_text.h:182: error: use of `QPainter' is ambiguous
    qwt_text.h:24: error: first declared as `struct QPainter' here
    /usr/local/Trolltech/Qt-4.4.0/include/QtGui/qpainter.h:84: error: also declared as `class QtCppIntegration::QPainter' here
    qwt_text.h:182: error: `QPainter' has not been declared
    qwt_text.h:182: error: expected `,' or `...' before '&' token
    qwt_text.h:182: error: ISO C++ forbids declaration of `painter' with no type
    qwt_text.h:182: error: ISO C++ forbids declaration of `QRect' with no type
    In file included from qwt_painter.h:17,
    from qwt_abstract_scale_draw.cpp:18:
    qwt_layout_metrics.h:50: error: expected `,' or `...' before '*' token
    qwt_layout_metrics.h:51: error: ISO C++ forbids declaration of `QPaintDevice' with no type
    qwt_layout_metrics.h:63: error: expected `,' or `...' before '*' token
    qwt_layout_metrics.h:63: error: ISO C++ forbids declaration of `QPainter' with no type
    qwt_layout_metrics.h:64: error: expected `,' or `...' before '*' token
    qwt_layout_metrics.h:64: error: ISO C++ forbids declaration of `QPainter' with no type
    qwt_layout_metrics.h:74: error: `QRect' does not name a type
    qwt_layout_metrics.h:75: error: `QRect' does not name a type
    qwt_layout_metrics.h:76: error: `QRect' does not name a type
    qwt_layout_metrics.h:77: error: `QRect' does not name a type
    qwt_layout_metrics.h:80: error: expected `,' or `...' before '*' token
    qwt_layout_metrics.h:80: error: ISO C++ forbids declaration of `QPainter' with no type
    qwt_layout_metrics.h:82: error: expected `,' or `...' before '*' token
    qwt_layout_metrics.h:82: error: ISO C++ forbids declaration of `QPainter' with no type
    qwt_layout_metrics.h:88: error: expected `,' or `...' before '&' token
    qwt_layout_metrics.h:88: error: ISO C++ forbids declaration of `QMatrix' with no type
    qwt_layout_metrics.h:89: error: `QRect' does not name a type
    In file included from qwt_abstract_scale_draw.cpp:18:
    qwt_painter.h:66: error: expected `,' or `...' before '*' token
    qwt_painter.h:67: error: ISO C++ forbids declaration of `QPaintDevice' with no type
    qwt_painter.h:74: error: ISO C++ forbids declaration of `QRect' with no type
    qwt_painter.h:74: error: expected `;' before '&' token
    qwt_painter.h:76: error: use of `QPainter' is ambiguous
    qwt_text.h:24: error: first declared as `struct QPainter' here
    /usr/local/Trolltech/Qt-4.4.0/include/QtGui/qpainter.h:84: error: also declared as `class QtCppIntegration::QPainter' here
    qwt_painter.h:76: error: `QPainter' has not been declared
    qwt_painter.h:76: error: expected `,' or `...' before '&' token
    qwt_painter.h:76: error: ISO C++ forbids declaration of `parameter' with no typeqwt_painter.h:76: error: ISO C++ forbids declaration of `QRect' with no type
    qwt_painter.h:78: error: use of `QPainter' is ambiguous

  2. #2
    Join Date
    Jan 2012
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: error compiling for QtCppIntegration

    I have exactly the same problem.
    Any clues?

    Thanks

    oskar

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.