Hello,
Here is the solution I found :
1/ In the file /home/pi/.attract/emulators/Multiple Arcade Machine Emulator.cfg :
executable /opt/retropie/supplementary/runcommand/runcommand.sh
args 0 _SYS_ mame-libretro "[romfilename]"
2/ In the file /opt/retropie/configs/mame-libretro/emulators.cfg
lr-mame2003 = "/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so --config /opt/retropie/configs/all/retroarch/retroarch.cfg %ROM%"
default = "lr-mame2003"
3/ In the file /opt/retropie/configs/mame-libretro/retroarch.cfg
input_remapping_directory = "/opt/retropie/configs/mame-libretro/"
4/ In the file /usr/sbin/rgbcommander/rgbcmdd.xml , section MAME, place :
<emulator binary="mame-libretro" name="Multiple Arcade Machine Emulator" active="Blue" inactive="DimGray" arcade="1" retropie="1" retropiebinary="retroarch" reference="arcade">
5/ To continue using overlays (example for the game 1943)
Create the file 1943.cfg in the directory /home/pi/RetroPie/roms/mame-libretro/roms :
input_overlay = /opt/retropie/configs/all/retroarch/overlay/arcade-artwork/1943.cfg
input_overlay_enable = true
input_overlay_opacity = 0.900000
input_overlay_scale = 1.000000
and in the file /opt/retropie/configs/all/retroarch/overlay/arcade-artwork/1943.cfg :
overlays = 1
overlay0_overlay = 1943.png
overlay0_full_screen = true
overlay0_descs = 0
And the overlay image must be placed in /opt/retropie/configs/all/retroarch/overlay/arcade-artwork
6/ In the file /opt/retropie/configs/all/retroarch/retroarch.cfg, set the parameter config_save_on_exit :
config_save_on_exit = "false"