Hi ,
sorry for the trouble I found in the forum after many more research that this line could resolve the problem
sudo apt-get purge qt5-default libegl1-mesa libegl1-mesa-dev libegl1-mesa-drivers
and then
sudo apt-get autoremove
Now Kodi is back to work correctly.
many thanks for the support and sorry for all the trouble.
I’ll now test more RetroPie and see if now I have sound on the emulators.
thanks again