meta-raspberrypi icon indicating copy to clipboard operation
meta-raspberrypi copied to clipboard

how to build libegl1-mesa freeglut3 freeglut3-dev in pi5 yocto image

Open gitgonewithwind opened this issue 1 year ago • 2 comments

Hi all, Sorry to bother you again, Our apps will use opencv, and need to install libegl1-mesa freeglut3 freeglut3-dev in yocto image,but there are no their receipts, only there is a mesa. I can install with apt install libegl1-mesa freeglut3 freeglut3-dev in ubuntu 22.04 , in my understanding, they exist but they should can build in yocto. how to do? any ideas? thank you very much.

gitgonewithwind avatar May 15 '24 14:05 gitgonewithwind

yocto builds from source ( using recipes ) and generates output packages ( ipk/rpm/deb ) what you mentioned are output packages, so first thing is to map them to recipes which will provide them after building. e.g. freeglut3 should be provided by meta-openembedded/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb similarly libegl1-mesa should be coming from mesa itslef. So I would suggest to add

DEPENDS += "virtual/egl freeglut"

in the recipe you are creating for your app.

kraj avatar May 15 '24 16:05 kraj

Thank you so much for your reply so soon. I am going to do. I just grep -r "virtual/egl" . it seems mesa already including egl. later my colleague will use it to try his opencv code to test

gitgonewithwind avatar May 15 '24 16:05 gitgonewithwind