Menu

Qt 5.9.1 compilation issues

Help
2017-09-05
2017-10-27
  • Joerg Kreuzberger

    With newest trunk version, i startet to generate_cpp folder with the generator.
    This leads to errors, that i want to fix and understand:

    Issue is:

    class QPainter has no member rotation.

    This is correct, cause rotation is from Subclass PixmapFragment in QPainter.

    in typesystem_gui.xml the QPainter::PixmapFragment is specified.
    in the generator output i see the warning:

    WARNING(MetaJavaBuilder) :: type 'QPainter::PixmapFragment' is specified in typesystem, but not defined. This could potentially lead to compilation errors.

    in .preprocessed.tmp the class is available

    class PixmapFragment {
    public:
    qreal x;
    qreal y;
    qreal sourceLeft;
    qreal sourceTop;
    qreal width;
    qreal height;
    qreal scaleX;
    qreal scaleY;
    qreal rotation;
    qreal opacity;
    static PixmapFragment create(const QPointF &pos, const QRectF &sourceRect,
    qreal scaleX = 1, qreal scaleY = 1,
    qreal rotation = 0, qreal opacity = 1);
    };

    Any hint where to look why the class is not properly generated but the members are considered to be part of QPainter?

     

    Last edit: Joerg Kreuzberger 2017-09-05
  • Joerg Kreuzberger

    ok, as i understood from reading other posts, its not so easy to generate the cpp stuff due to the c++11 features any more. I would attach my out.log

     
  • Joerg Kreuzberger

    To get out of the problem, i added an option to configure the pythonqtall build to get rid of packages, that i cannot compile.
    This may help to use some of the pythonqtall packages, but to skip the "invalid" ones instead to have to skip them all.
    The second patch ist just for installing the libraries and includes if desired. It generates a standard qmake install target to install libraries and headers

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.