Opened 12 years ago

Closed 11 years ago

#36479 closed defect (fixed)

py27-pyqt4 @ 4.9.4 g++ build fails with qglyphrun

Reported by: lionel.arend@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: powerpc Cc: phw@…, gltmailbox-macs@…, berg.michael1@…
Port: py27-pyqt4, py27-sip

Description

When compiling the C++ code generated by sip, a build error occurs in QtGui/sipQtGuiQList0100QGlyphRun.cpp:

sipQtGuiQList0100QGlyphRun.cpp:43: error: ‘QGlyphRun’ was not declared in this scope
sipQtGuiQList0100QGlyphRun.cpp:43: error: template argument 1 is invalid
sipQtGuiQList0100QGlyphRun.cpp:43: error: expected `>' before ‘*’ token
sipQtGuiQList0100QGlyphRun.cpp:43: error: expected `(' before ‘*’ token
sipQtGuiQList0100QGlyphRun.cpp:43: error: expected primary-expression before ‘>’ token
sipQtGuiQList0100QGlyphRun.cpp:43: error: pointer of type ‘void *’ used in arithmetic
sipQtGuiQList0100QGlyphRun.cpp:43: error: ‘void*’ is not a pointer-to-object type
sipQtGuiQList0100QGlyphRun.cpp:43: error: ‘QGlyphRun’ cannot appear in a constant-expression
sipQtGuiQList0100QGlyphRun.cpp:43: error: template argument 1 is invalid
sipQtGuiQList0100QGlyphRun.cpp:43: error: expected `>' before ‘*’ token
sipQtGuiQList0100QGlyphRun.cpp:43: error: expected `(' before ‘*’ token
sipQtGuiQList0100QGlyphRun.cpp:43: error: expected primary-expression before ‘>’ token
sipQtGuiQList0100QGlyphRun.cpp:43: error: expected `)' before ‘;’ token
sipQtGuiQList0100QGlyphRun.cpp:43: error: expected `)' before ‘;’ token

This happens several times, for other occurences of QGlyphRun.

I'm using a Powerbook G4, OSX 10.5 and Xcode 3.1.4. qt4-mac is at 4.8.3_1+quartz, py27-sip is 4.13.3_0. All ports are up-to-date. I tried using macx-g++40 and macx-g++42 for the compilation, with equal results. Maybe sip generates erroneous code, or I need even a newer compiler?

Thank you for any help, full log is attached.

Attachments (2)

main.log (286.2 KB) - added by lionel.arend@… 12 years ago.
main.log file of py27-pyqt4 build
sipQtGuiQList0100QGlyphRun.cpp (6.4 KB) - added by loki23@… 12 years ago.
The source file which causes the errors

Download all attachments as: .zip

Change History (15)

Changed 12 years ago by lionel.arend@…

Attachment: main.log added

main.log file of py27-pyqt4 build

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: phw@… added
Keywords: powerpc added; build_failure qglyphrun ppc removed
Owner: changed from macports-tickets@… to michaelld@…

comment:2 Changed 12 years ago by michaelld (Michael Dickens)

Wow; I don't even know where to start. I'll percolate on this over the weekend and see what comes up.

Changed 12 years ago by loki23@…

The source file which causes the errors

comment:3 Changed 12 years ago by loki23@…

Thank you. I hope you can reproduce it. I also added the cpp file generated by sip.

comment:4 Changed 11 years ago by jmroot (Joshua Root)

Did someone verify that this works on 10.5/i386? If not, the powerpc keyword isn't warranted.

comment:5 Changed 11 years ago by gltmailbox-macs@…

Cc: gltmailbox-macs@… added

Cc Me!

Same error in the same place. Here I'm using Py27-PyQt 4.9.5, but other software and the OS are the same versions.

And like Lionel I'm on a PowerMac (but a G5 not a G4 FWIW).

Last edited 11 years ago by gltmailbox-macs@… (previous) (diff)

comment:6 Changed 11 years ago by michaelld (Michael Dickens)

It looks like the OP's issue is that the installed version of SIP is too old (4.13.3; required for PyQt4 4.9.5 is SIP 4.14 or newer). I would recommend all of you trying the following:

sudo port clean py27-pyqt4
sudo port selfupdate
sudo port upgrade py27-sip
sudo port install py27-pyqt4

and, if that works then you can also do:

sudo port upgrade outdated

to upgrade all older ports.

comment:7 Changed 11 years ago by gltmailbox-macs@…

After following Michael's suggestions the problem persists, for me at least. However, I learned a couple of nights ago from Phil Thompson via the PyQt mailing list that there had been "a problem with non-Cocoa builds of Qt v4.8.x" which should have been fixed in that night's snapshots. I haven't tried that yet.

comment:8 Changed 11 years ago by michaelld (Michael Dickens)

Thanks! I'll look into that commit and see if I can come up with a patch.

I think this ticket is probably a duplicate of ticket #36801, but I'll keep them both open for now.

comment:9 Changed 11 years ago by berg.michael1@…

Cc: berg.michael1@… added

Cc Me!

comment:10 Changed 11 years ago by michaelld (Michael Dickens)

PyQt4 4.9.6 just came out, so I'm updating to that & hopefully it'll fix this issue. I'll post back here once I've done that check-in, hopefully tonight, which unfortunately will require upgrading qt4-mac as well.

comment:11 Changed 11 years ago by michaelld (Michael Dickens)

This ticket's issue should be addressed in r100394, which upgrades py-pyqt4 to 4.9.6 (and thus includes their patches). I'm leaving this ticket open for now, waiting your feedback.

comment:12 Changed 11 years ago by loki23@…

I get a successful built now for py27-pyqt4 at version 4.9.6_1. (And all dependencies up to date). Thanks a lot!

comment:13 Changed 11 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

Great; thanks for reporting back.

Note: See TracTickets for help on using tickets.