Wednesday 25 August 2010

LAP - SDL

As we discovered earlier, the emulator will not go fullscreen without the SDL package being installed. I'm unclear exactly what SDL does, but it appears to include, amongst other things, a fairly low level interface with the video hardware.

umount -v /media/amiga 
sudo mkdir /media/lfs 
sudo mount -v -t ext3 /dev/disk/by-label/amiga /media/lfs 
cd /media/lfs/sources
mkdir extras
chmod -v a+wt extras
cd extras
wget http://www.libsdl.org/release/SDL-1.2.13.tar.gz

Then from the Amiga Key:

cd /sources/extras 
tar -xzvf SDL-1.2.13.tar.gz
cd SDL-1.2.13
./configure --prefix=/usr
make $CORES_TO_USE
make install
install -v -m755 -d /usr/share/doc/SDL-1.2.13/html
install -v -m644 docs/html/*.html /usr/share/doc/SDL-1.2.13/html
ldconfig
cd ..
rm -rvf SDL-1.2.13

Once I had done all that, I needed to recompile the emulator to build in GTK and SDL functions. I decided to delete the source directory to start from scratch, just in case.

cd /sources/amiga
rm -rvf e-uae-0.8.29-WIP4 
tar -xjvf e-uae-0.8.29-WIP4.tar.bz2 
cd e-uae-0.8.29-WIP4 
./configure --enable-autoconfig --with-sdl-gfx | tee config_report.txt 
make $CORES_TO_USE
And let's test it:
./src/uae -r ~/1.3.rom -0 ~/1.3.adf 

Happily it now starts up with a GUI to let us change settings. We can get this back once the emulator is running by changing back to the GUI window, which does not go away.  We can also hit [F12 + F{1-4}] to get straight to a dialogue to change the mounted disk images. Also, and delightfully, [F12 + S] now gets us fullscreen Amiga action.

Lets just tidy up once more, because next we are going to do a final build of the emulator with the IPF image support and all the other bells and whistles what we may need.

cd ..
rm -rvf e-uae-0.8.29-WIP4

No comments:

Post a Comment