Opened 6 months ago

Last modified 4 days ago

#68666 new defect

ipe @7.2.11: error: no member named 'button' in 'QTabletEvent'

Reported by: matan-bebop (Andrii) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma Cc:
Port: ipe

Description (last modified by matan-bebop (Andrii))

There is a compiler error while building the port.

I first tried ipe +qt4 -qt5, which proceeds to compiling without the Xcode installed. Still, the build fails. Then I installed Xcode–no luck as well.

+qt5 requires Xcode, unlike +qt4. It also fails to build.

Attachments (1)

main.log (234.6 KB) - added by matan-bebop (Andrii) 6 months ago.

Download all attachments as: .zip

Change History (5)

Changed 6 months ago by matan-bebop (Andrii)

Attachment: main.log added

comment:1 Changed 6 months ago by matan-bebop (Andrii)

Description: modified (diff)
Summary: ipe-7.2.11 +qt4 -qt5 fails to build on Sonomaipe-7.2.11: fails to build on Sonoma

comment:2 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: sonoma added
Summary: ipe-7.2.11: fails to build on Sonomaipe @7.2.11: error: no member named 'button' in 'QTabletEvent'
Version: 2.8.1

The log says the problem is:

ipecanvas_qt.cpp:256:40: error: no member named 'button' in 'QTabletEvent'
    ipeDebug("TabletPress: %d %d", ev->button(), ev->pointerType());
                                   ~~  ^
ipecanvas_qt.cpp:264:30: error: no member named 'button' in 'QTabletEvent'
      iTool->mouseButton(ev->button() | iAdditionalModifiers, true);
                         ~~  ^
ipecanvas_qt.cpp:266:48: error: no member named 'button' in 'QTabletEvent'
      iObserver->canvasObserverMouseAction(ev->button() |
                                           ~~  ^
ipecanvas_qt.cpp:293:18: error: no member named 'angleDelta' in 'QWheelEvent'
  QPoint p = ev->angleDelta();
             ~~  ^
4 errors generated.

Maybe this is a problem already solved by the developers of ipe and updating the port to a newer version would help. I appear to have assigned that ticket to myself but forgot about it and am not working on it.

comment:3 Changed 4 days ago by barracuda156

Yeah, it fails for me also here:

/opt/local/bin/g++-mp-13 -arch ppc -fPIC -Wall -g -Os -fPIC -DIPEUI_QT -fPIC -std=c++14 -I../include -I../ipecairo -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -DQT_SHARED -I/opt/local/libexec/qt4/include -I/opt/local/libexec/qt4/include/QtGui -I/opt/local/libexec/qt4/include -I/opt/local/libexec/qt4/include/QtCore  -c -o ../../build/obj/ipecanvas/ipecanvas_qt.o ipecanvas_qt.cpp
ipecanvas_qt.cpp: In member function 'virtual void ipe::Canvas::tabletEvent(QTabletEvent*)':
ipecanvas_qt.cpp:256:40: error: 'class QTabletEvent' has no member named 'button'
  256 |     ipeDebug("TabletPress: %d %d", ev->button(), ev->pointerType());
      |                                        ^~~~~~
ipecanvas_qt.cpp:264:30: error: 'class QTabletEvent' has no member named 'button'
  264 |       iTool->mouseButton(ev->button() | iAdditionalModifiers, true);
      |                              ^~~~~~
ipecanvas_qt.cpp:266:48: error: 'class QTabletEvent' has no member named 'button'
  266 |       iObserver->canvasObserverMouseAction(ev->button() |
      |                                                ^~~~~~
ipecanvas_qt.cpp: In member function 'virtual void ipe::Canvas::wheelEvent(QWheelEvent*)':
ipecanvas_qt.cpp:293:18: error: 'class QWheelEvent' has no member named 'angleDelta'
  293 |   QPoint p = ev->angleDelta();
      |                  ^~~~~~~~~~
make[1]: *** [../../build/obj/ipecanvas/ipecanvas_qt.o] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_graphics_ipe/ipe/work/ipe-7.2.11/src/ipecanvas'
make: *** [ipecanvas] Error 2
  1. S. Also this file has a wrong include: src/ipelib/ipebitmap_unix.cpp.

Changing it to #include <Carbon/Carbon.h> fixes the build, but then it fails on QTabletEvent issue.

comment:4 Changed 4 days ago by barracuda156

And also src/include/ipeattributes.h misses #include <cstdint>.

Note: See TracTickets for help on using tickets.