Opened 11 months ago

Closed 4 weeks ago

#68666 closed defect (fixed)

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

Reported by: matan-bebop (Andrii) Owned by: jjstickel (Jonathan Stickel)
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) 11 months ago.

Download all attachments as: .zip

Change History (7)

Changed 11 months ago by matan-bebop (Andrii)

Attachment: main.log added

comment:1 Changed 11 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 11 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 5 months 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 5 months ago by barracuda156

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

comment:5 Changed 6 weeks ago by jjstickel (Jonathan Stickel)

comment:6 Changed 4 weeks ago by jjstickel (Jonathan Stickel)

Owner: set to jjstickel
Resolution: fixed
Status: newclosed

In 34f7c48e8248144276611584a2e5fde2472cdbce/macports-ports (master):

ipe: update to version 7.2.29

  • update to version 7.2.29
  • update ipe-tools to 7.2.24.1
  • remove qt variants
  • add ipetoipe to $prefix/bin
  • add jjstickel to maintainer

Closes: #64422
Closes: #60911
Closes: #68666

Note: See TracTickets for help on using tickets.