Opened 5 years ago

Last modified 5 years ago

#58226 closed defect

octave @5.1.0_0+accelerate+app+docs+gfortran+graphicsmagick+qt5+sound+sundials --- Compiler error issue with qt5's "posF" — at Version 1

Reported by: SenileFelineS Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: lion x86_64 Cc:
Port: octave

Description (last modified by SenileFelineS)

I'm trying to install octave (see title) with the qt56 dependency.

I received two errors caused by the same issue of not recognizing 'posF':

(Error 1)

  CXX      libgui/graphics/__init_qt___la-ToolBar.lo
libgui/graphics/Canvas.cc:398:57: error: no member named 'posF' in 'QMouseEvent'; did you mean 'pos'?
            bool rect_contains_pos = r.contains (event->posF ());
                                                        ^~~~
                                                        pos
/opt/local/libexec/qt5/include/QtGui/qevent.h:115:19: note: 'pos' declared here
    inline QPoint pos() const { return l.toPoint(); }
                  ^

(Error 2)

libgui/graphics/Canvas.cc:452:61: error: no member named 'posF' in 'QMouseEvent'; did you mean 'pos'?
                bool rect_contains_pos = r.contains (event->posF ());
                                                            ^~~~
                                                            pos
/opt/local/libexec/qt5/include/QtGui/qevent.h:115:19: note: 'pos' declared here
    inline QPoint pos() const { return l.toPoint(); }
                  ^

These two errors both reference the qt5 library file /opt/local/libexec/qt5/include/QtGui/qevent.h:115:19 which does in fact make reference to posF() as the following:

#if QT_DEPRECATED_SINCE(5, 0)
    QT_DEPRECATED inline QPointF posF() const { return l; }
#endif

However, I have no idea if that matters.................I'm guessing it actually doesn't.

I've attached both the build main.log and the qt5 qevent.h files.

Thank you.

Change History (3)

Changed 5 years ago by SenileFelineS

Attachment: qevent.h added

The qt5 file that defines pos() but apparently not posF()

Changed 5 years ago by SenileFelineS

Attachment: main.log added

Build log

comment:1 Changed 5 years ago by SenileFelineS

Description: modified (diff)
Note: See TracTickets for help on using tickets.