Trying to get PyGame working (libsdl2 will not compile)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Trying to get PyGame working (libsdl2 will not compile)

1,717 Views
dominicamann
Contributor III

Building for imx6qsabresd, core-image-x11 or core-image-clutter, libsdl2 will not compile. It gives a bunch of missing egl-> members such as egl->data, egl->surface in SDL_x11_window.c.

Am I missing a pre-requisite for libsdl2?

libsdl does build, but pygame fails to run, giving bad opcode major 149 errors.

0 Kudos
4 Replies

1,116 Views
dominicamann
Contributor III

Replying to my own question. We now have PyGame working, but with sdl, not sdl2. Next stage is kivy (which we are completely stick on).

0 Kudos

1,116 Views
josedejesuspere
Contributor I

Hello Dominic,

How did you do that??

I am trying to include pygame, but I am still having the same issue..

Thanks in advance,

Jesus

0 Kudos

1,116 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Dominic,

I have not tested pygame, neither libsdl2, however latest yocto for sabresd local.conf include the ASSUME_PROVIDED += "libsdl-native", I guess you will need to check if the libsdl2 package is included in the image graphics recipe, if not please add this package:

Yocto Package Report System

Hope this helps

0 Kudos

1,116 Views
dominicamann
Contributor III

BTW - I am talking about building yocto using a provided libsdl2 recipe (by adding it to my local.conf) - it is this recipe that is not working.

0 Kudos