[Buildroot] [PATCH 1/1] python-sip: fix compile error
Ralf Dragon
hypnotoad at lindra.de
Tue Dec 12 15:20:43 UTC 2023
Dear all,
here is my conclusion regarding sip6:
The library discontinues the "sip" tool that configure.py of pyqt5
searches. Instead, one should use PyQt-builder (which is easy to
package) and the sip-build tool [1]. However, when I get it working I
run into the same problem which once was fixed python-pyqt5.mk:
sip-build actually does compile and executes a test binary called
cfgtest_QtCore, similar to what a configure.sh script does. The output
file cfgtest_QtCore.out is currently created by a buildroot hook in
python-pyqt5.mk. With sip-build, another solution seems needed because
sip-build deletes the file instead of skipping the execution of
cfgtest_QtCore. It then tries to execute cfgtest_QtCore which is
compiled for the target.
I am neither a buildroot nor a python expert and do not know the proper
way to enforce that this is done with the host compiler and the rest of
the compilation is done for the target. If that would be fixed, then one
could probably easily also get pyqt6 to run. So it would be good if
someone could have a look at this, but I cannot do that soon.
Best,
Ralf
[1] https://www.riverbankcomputing.com/static/Docs/PyQt5/installation.html#building-pyqt5
More information about the buildroot
mailing list