How Can I install dosbox-sdl2 version?

Ok try my method then:
(Please note that this way it will not go through Retroarch…)

1 - Download DosBox SVN from here: https://github.com/fr500/dosbox-svn
2 - Place it in /home/cpi/ You can use Filezilla for this…
3 - Unzip it: unzip dosbox-svn-master.zip
4 - cd dosbox-svn-master
5 - sudo sh ./autogen.sh
6 - sudo ./configure
7 - sudo make

I think thats what I did…

Then when you want to create a script for your Dos games do this:

1 - Create a DOS folder in /home/cpi/games/
2 - Put some game folder in it. ex. /home/cpi/games/DOS/catac3d (For the game Catacomb 3D)
3 - Make sure your games folder names do not use more than 8 characters
4 - Create a launcher script in /home/cpi/launcher/Menu/GameShell/20_Retro Games/DOS/Catacomb 3D.sh
5 - Put this code in it (change it to reflect your game…)
/home/cpi/dosbox-svn-master/src/dosbox ~/games/DOS/catac3d/CAT3D.EXE -exit -exit

If you want to make it prettier, follow the steps I went through here: Adding Shortcuts to "Retro Games" on Clockork Menu

Here is my config files if you need them. Place them in /home/cpi/.dosbox/
https://www.dropbox.com/s/9zmbw94ma73v6v6/dosbox.zip?dl=1