Search code examples
pyqt5buildrootpython-sip

Buildroot, python-PyQt5 Error when building image


I'm Oguzhan. I am new on Embedded Linux and trying to image for my Raspberry Pi 3b. I tried to compile my new image with PyQt5 package and i took this error:

siplib.c: In function ‘sip_api_get_frame’:
siplib.c:13750:22: error: invalid use of undefined type ‘struct _frame’
13750 |         frame = frame->f_back;
      |                      ^~

I did some research about this issue and i found this link:

(https://git.busybox.net/buildroot/commit/?id=3ef6884e6d59744d83649170822a4829eed146fc)

It's looking like solution but i don't have any idea about the solution is this and if yes it is, i don't have any idea about how to patching the buildroot packages.

Could you help me guys? I'm stuck.


Solution

  • This is a bug that has been fixed in upstream Buildroot just a few days ago. It has not yet made its way into a release. You can do one of the following things to fix your issue.

    1. Wait until Buildroot 2023.02.8 or 2023.11.1 is released and update to that version.

    2. Update Buildroot to current master. If you're using a git clone of Buildroot, that's just a matter of running git pull.

    3. Apply just this one fix to your local Buildroot version. If you're using a git clone of Buildroot, you can do that with

      git fetch
      git cherry-pick 3ef6884e6d59744d83649170822a4829eed146fc
      

      If you don't have a git clone, then you can use

      curl https://gitlab.com/buildroot.org/buildroot/-/commit/3ef6884e6d59744d83649170822a4829eed146fc.patch \
          | patch -p1