On Tue, Jul 16, 2019 at 10:44:23PM +0200, Stephen Berman via blfs-support wrote:
> Although PyQt4 is not a BLFS package nor a direct dependency of one, it
> is apparently a required dependency to build the GUI of hplip, which,
> while also not a BLFS package, is mentioned as optional for cups and
> cups-filters, and for SANE as something "you may need" (and indeed I
> do), so I think my issue is not completely off-topic.  
> 
> I tried to build PyQt4 from source downloaded from
> https://www.riverbankcomputing.com/software/pyqt/download, after
> installing the Python SIP library, also available there.  The SIP build
> and installation succeeded, but after configuring PyQt4, make failed:
> 
>    
> /sources/PyQt4_gpl_x11-4.12.3/QtCore/sipQtCoreQAbstractEventDispatcher.cpp:115:10:
>  error: ‘void sipQAbstractEventDispatcher::registerTimer(int, int, QObject*)’ 
> marked ‘override’, but does not override
>    void registerTimer(int,int, ::QObject*) SIP_OVERRIDE;
>         ^~~~~~~~~~~~~
>    make[1]: *** [Makefile:6368: sipQtCoreQAbstractEventDispatcher.o] Error 1
>    make[1]: Leaving directory '/sources/PyQt4_gpl_x11-4.12.3/QtCore'
>    make: *** [Makefile:66: sub-QtCore-make_first-ordered] Error 2
> 
> This happened both when I configured with Python2 and with Python3.
> A web search didn't help me with this.  Does anyone here have an idea?
> Has anyone here succeeded in building PyQt4 and the hplip GUI with Qt5
> from BLFS 8.4?
> 
> (The hplip config also allows using PyQt5, and that is installable via
> pip3, and I did install it and configured hplip with it, but still the
> hplip GUI was not built, so it seems to require PyQt4.)
> 
> Steve Berman

First, even if the package was not mentioned in the book, for BLFS
it is not off-topic, merely a path (much) less followed.

Not something I've ever needed, but this looks like it might be the
sort of problem caused by newer versions of C++.  Alternatively,
perhaps a missing dependency.  Googling for an ebuild suggests it has
been dropped by gentoo, but it looks as if both Arch and fedora have
recent updates.

These days, all I can find for fedora is srpms (need cpio and an
rpm2cpio script), so I can't quickly tell if their builds match what
Arch have.

For Arch:

https://aur.archlinux.org/aur.git/tree/PKGBUILD?h=pyqt4

I've no idea what the configure switches do, but they seem to depend
on something called sip and variations of that.  Those are probably
also in A UR and perhaps related to their --no-sip-files switch, so
maybe the package includes its own variants, best to check the
configure-ng.py script in case it says anything useful. [1.]
They also build for both Python3 (which they call Python) and
Python2.

For fedora, it is in:

https://dl.fedoraproject.org/pub/fedora/linux/updates/30/Everything/SRPMS/Packages/p

Again, they probably mean Python3 if they say 'Python'.

1. Just in case you were not aware, I have a very low opinion about
the information provided, or more likely not provided, by configure
scripts and build scripts which use either flavour of Python.

ĸen
-- 
One pill makes you larger, And one pill makes you small.
And the ones that mother gives you, Don't do anything at all.
Go ask Alice, When she's ten feet tall.
               -- Jefferson Airplane, White Rabbit
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to