[MacPorts] #55250: py27-pyqt4 @4.12.1_1: error: expected a class or namespace
MacPorts
noreply at macports.org
Sat Nov 11 05:15:20 UTC 2017
#55250: py27-pyqt4 @4.12.1_1: error: expected a class or namespace
-------------------------+-----------------------
Reporter: tehcog | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Resolution: | Keywords: mavericks
Port: py27-pyqt4 |
-------------------------+-----------------------
Comment (by manfeel):
I encountered the exactly same issue when installing gnuradio via mac
ports, the gnuradio depends on py27-pyqt4.
Finally, I resolved the issues by modifying the source code (it's dirty
hacks!).
in my system, the sources locate in
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1
and there are so many definition errors! for example:
QPrinter::PrinterState::Idle
QPaintEngine::Type::X11
QStyle::SubControl::SC_None
QAbstractVideoBuffer::MapMode::NotMapped
QXmlNodeModelIndex::NodeKind::Attribute
...
they should be:
QPrinter::Idle
QPaintEngine::X11
QStyle::SC_None
QAbstractVideoBuffer::NotMapped
QXmlNodeModelIndex::Attribute
I deleted the middle part of above definition and everything compiled like
a charm ;-)
--
Ticket URL: <https://trac.macports.org/ticket/55250#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list