agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
505 stars 395 forks source link

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

Closed gitgonewithwind closed 4 weeks ago

gitgonewithwind commented 1 month ago

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.

kraj commented 1 month ago

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.

gitgonewithwind commented 1 month ago

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