| Posted By 
  bubis
 on 2017-09-28
 11:24:24
 
 |  Re: Android emulator 
 Guys!
 
 I dream has come true today!
 I have managed to compile the latest version of Plus4Emu on Android, and run it with X11 and VNC! It runs at 100% speed without any problem! (I will still need to work on the sound, as plus4emu can't find any sound devices.)
 
 I used the "GNURoot Debian" app that installs a Debian file system and runs it without root privileges.
 It turned out the I can "apt-get install ..." everything what plus4emu requires, I only had to make a slight modification to the SConstruct file and it compiled.
 Also, I had to make some changes to the GNURoot Debian setup to change the default location of $HOME, so that I can set any permissions on my files.
 
 Nothing can stop me now!
  
 
 I am trying to create a walk-through, maybe I will move it somewhere else later, this is the beginning:
 
 
 0. Install "GNURoot Debian" from Play Store.
 
 URL: https://play.google.com/store/apps/details?id=com.gnuroot.debian&hl=en
 
 1. Here is what you have to install inside "GNURoot Debian" in order to compile plus4emu:
 
 
 apt-get updateapt-get install gcc
 apt-get install scons
 apt-get install libfltk1.3-dev
 apt-get install libsndfile-dev
 apt-get install libsdl-dev
 apt-get install portaudio19-dev
 apt-get install git
 apt-get install sed
 2. This is what you do to change the mapping of $HOME:
 
 
 cd /supportsed -i.bak -e "s/-b /storage/emulated/0/GNURoot/home:/home //g" execInProot
 3. Restart GNURoot Debian.
 
 4. Go into your home and download the plus4emu source code like this
 
 
 cd ~git clone http://github.com/istvan-v/plus4emu
 5. Try to compile, you may have to modify the -mtune option in SConstuct and try again, that depents on your hardware, I did set "arm7" there instead of "generic":
 
 
 cd plus4emucp SConstuct SConstuct.bak         # just a backup
 scons -j 4
 If you have an error, try to find the cpu type of you device in the error message (like arm7) and do this:
 
 
 sed -i -e "s/generic/arm7/g" SConstuct  scons -j 4
 If still doesn't compile:
 
 
 sed -i -e "s/+ ' -mtune/#/g" SConstuct  scons -j 4
 6. Copy the roms
 
 
 mkdir -p ~/.plus4emu/romscp roms/* ~/.plus4emu/roms
 7. Click the XTerm icon in GNURoot Debian. That will (install and) start up an X Window client and a VNC Session that connects to it.
 
 8. Click on the XTerm window in VNC and type:
 
 
 cd ~/plus4emu./plus4emu &
 9. DONE o/
 
 |